Selenium UI automated testing selenium automatic testing

https://www.cnblogs.com/sunada2005/archive/2013/12/22/3486314.html

UI Automatic Testing

1. What projects are suitable for automated testing? 2. Introduction to common automatic test tools 3 Selenium Introduction 4 How selenium works

1. What projects are suitable for automated testing?

Definition: a process that transforms human driven testing into machine execution, focusing on the concept of continuous integration; Advantages: saving manpower and time cost;

As shown in the figure above, the above conditions cannot be met in real work, so trade-offs need to be made. Generally speaking, only the following points need to be met, Automated testing of the project can be carried out (options marked in the red box in the figure): ① the requirements are stable and will not change frequently. The biggest challenge of automated testing is the change of requirements, and the automated script itself needs to be modified, expanded and debugged to adapt to new functions. If the input-output ratio is too low, the automated testing will lose its value and significance; the compromise is to choose relatively stable modules and functions Automatic testing can be carried out, and the parts with large changes and frequent demand changes can be tested manually;

② Multi platform operation, combined traversal type, a large number of repeated task test data, test cases and automatic scripts have strong reusability and portability, reduce cost and improve efficiency and value;

③ The software maintenance cycle is long, and it takes time to meet the requirements of stability, automation framework design, script development and debugging of viable automated testing. In fact, this is also a software development process. If the project cycle is short and there is not enough time to support this process, automated testing is not required;

④ The development of the tested system is relatively standardized and testable, mainly due to the following considerations: the architecture difference of the tested system, the adaptability of testing technology and tools, and the ability of testers, whether they can design and develop an automatic testing framework to adapt to the difference;

UFT (unified functional testing) is the original QTP (quick test professional software) and St (service test), developed by HP, is an enterprise level commercial automated test tool, which provides powerful and easy-to-use recording and playback functions, is compatible with object recognition mode and image recognition mode, and supports software testing of B / s and C / s architectures; robot framework is an automated test framework tool written in Python language with good expansion It supports keyword driven, supports various types of clients and interfaces, and can conduct distributed testing; Selenium is an automatic testing tool applied to the web. It supports multi platform, multi browser and multi language to realize automation. Its advantages are as follows: ① open source and free; ② Multi browser support: chrome, Firefox, ie, edge, etc; ③ Multi platform support: Linux, windows, MAC; ④ Multilingual support: Java, python, ruby, c#, JavaScript, C + +; ⑤ Good support for web interface; ⑥ Simple (API simple), flexible (development language driven); ⑦ support distributed test case execution;

3. Selenium introduction

SeleniumIDE,Selenium 1. XX era is an extension of Firefox and chrome, which supports user recording and return visit testing. Recording / revisiting mode has limitations and is not well compatible with a variety of browsers;

Selenium webdriver, selenium 1.0 + webdirver, provides APIs in various language environments to support more control rights and write applications in line with standard software development practices.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>