当前位置:网站首页>Ten years' experience of byte test engineer directly hits the pain point of UI automation test

Ten years' experience of byte test engineer directly hits the pain point of UI automation test

2022-07-04 20:47:00 Xiaowu knock code

When looking for a job, we need to have experience in automated testing , From this point of view, testers will not be embarrassed to say that they are doing software testing . Most testers also use automated testing tools 、 Recording and playback 、 The test script 、 Development of automated testing for gadgets , Then slowly contact UI automation 、 Interface automation 、 Continuous integration , Finally, build an automated testing framework system . Insert picture description here
Most beginners of testing are probably most exposed to automated testing UI It's automated , Have also used mobile terminals Uiautomator、Appium UI Automation framework 、PC Internet interface related Selenium、Robot Framework UI Automation framework , Subconsciously, I think UI Automated testing is simple . But after using it for a period of time, there are mixed emotions , Especially when it is really used in work, it is immediately acclimatized , The time of developing and maintaining scripts is much longer than that of manual testing , Do more harm than good , Finally, from regression to manual testing .

If you want to UI Automation can be used in practical work , The following pain points must be solved , otherwise UI Automated testing still has a long way to go .

1、 Demand is unstable , Frequently changed items

UI The biggest challenge of automated testing is the change of requirements , If the interface changes frequently , The script needs to be rewritten , The frequent changes of interface requirements lead to the script writing speed can not catch up with the changes of requirements , that UI Automation exists in name only , therefore UI Automated testing is especially suitable for stable requirements 、 Projects that will not change frequently . The project requirements of agile development are unstable , Changes in requirements often lead to changes in the interface , At the same time, the project cycle of agile development is short , Therefore, agile development projects are not suitable for UI automation .

2、 Develop projects with short maintenance cycles

For one-time development 、 Short cycle projects , in consideration of UI Input output ratio of automation , Not suitable for UI automated testing .UI The benefits of automation are mainly reflected in multiple rounds of testing , Imagine that a project with a short maintenance cycle has fewer test rounds , Such as interface test 1 To 2 Just turn , In this way, manual testing can be used . At the same time, the development and debugging of automated scripts itself requires a certain amount of time , If the project cycle is short , There is not enough time to support script development , There is no need for automated testing .

3、 The development of the tested system is not standardized , Testability requirements are not clear

UI Automated testing is actually simulating manual clicking , Unlike the human eye can directly find the control that needs to be clicked , The program is different , We need to find the control to click in advance , Then let the program click to complete the simulated manual operation . This requires defining some columns of specifications for automated testing before project development , Development engineers follow the specifications when developing ,UI Automation can go on . For example, there is no unique... Defined for the button control id Or text description , The control cannot be found when the automation script is written . If the development often changes the definition of the control casually before different versions , The script that can be executed before will not run correctly later , Need real-time maintenance , Bring high labor costs and become inefficient . Similarly, there are interface parameters in the process of interface automation testing .

What kind of project is suitable for UI Automated testing ? The following list can be used for reference : Demand is stable and changes infrequently ; Frequent regression validation is required ;UI Interface stability 、 The interface control definition specification is testable ; Develop projects with long maintenance cycles ; The project schedule pressure is small ; Large companies and platforms ; Most testers in the testing department have script development ability .

At present ,UI Testing is the testing link that consumes the most manpower of the testing team , Most testers' daily work is UI test . therefore UI Automation is very suitable for solving simple 、 mechanical 、 Repetitive tasks , Increase test coverage .

UI Automated testing is more than just writing test scripts , Design is also required , It is not only necessary to consider the execution efficiency of hundreds of use cases , Maintenance costs also need to be considered , Correctness of execution results . We need to understand ,UI Automated testing cannot replace manual testing , It is also difficult to reduce the number of testers , We should not blindly advocate and pursue UI automated testing .

At the end :

No winter will pass , No spring will not come , In the past 2022 It's an extraordinary year for people all over the world , Everyone is fighting a strong and brave war against the epidemic , Let's clap our hands together here ,2023 Years have come as promised , Set goals and keep growing .

Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !

 Insert picture description here

These materials , For those who want to change careers 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful ……

If you don't want to grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card below to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .

Click the small card at the end of the document to receive it

Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .

Self study recommendation B Stop video :

Zero basis transition software testing :25 Days from zero basis to software testing post , I finished today , Employment tomorrow .【 Include features / Interface / automation /python automated testing / performance / Test Development 】

Advanced automation testing :2022B The first station is super detailed python Practical course of automated software testing , Prepare for the golden, silver and four job hopping season , After advanced learning, it soared 20K

原网站

版权声明
本文为[Xiaowu knock code]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041905523623.html