In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article Xiaobian for you to introduce in detail "what are the problems in the implementation of UI automated testing", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what are the problems in realizing UI automated testing" can help you solve your doubts? let's follow the editor's ideas to learn new knowledge.
1. First of all, let's talk about the misunderstanding of UI automated testing.
Myth 1: UI automation is useless
The reason for this misunderstanding is also very simple. Technology and business disassembly capacity is insufficient, so directly engage in automation. So naturally it doesn't work well, and then comes to the conclusion that UI automation is useless.
Myth 2: UI automation is very simple.
The reason for such a misunderstanding is also very simple. UI automation, whether it is selenium, rf, or TestWriter. There is not much API in common use, so it is easy to learn. People with a little code base can get started quickly, and even zero coding in TestWriter can be used, so I think it's really easy. But in fact, there is still a lot to learn if you want to develop in the longer term.
2. Automated test layering
Test Pyramid:
Unit automated testing (data processing layer): refers to the inspection and verification of the smallest testable unit in the software, generally with the help of unit testing frameworks, such as java's Junit, TestNG,python 's unittest, the common means are code review, etc.
Interface automation testing (business logic layer): mainly check the return of calls between verification modules and the data exchange between different systems and services. Common interface testing tools include postman, jmeter, loadrunner and so on.
UI automated testing (GUI interface layer): UI layer is the entrance for users to use the product. All functions are provided to users through this layer. Most of the testing work is concentrated in this layer. Common testing tools include UFT, Robot Framework, Selenium, Appium and so on.
Performance-to-price ratio: according to the test pyramid model and input / output ratio, the lower the rate of return, the higher the rate of return.
Percentage of automated tiering investment in Google:
Quiz (Unit): 70%
Medium Test (Service): 20%
Big test (UI): 10%
The challenge of automated testing: the biggest challenge is change, because the change will lead to test case failure, so it is necessary to constantly debug automated scripts. How to control costs and reduce costs is a challenge to automated testing tools and the ability of personnel.
3. What kind of project is suitable for automated testing
As shown in the figure above, all of the above conditions cannot be met in real work, so you need to make a tradeoff. In general, you only need to meet the following points to automate the testing of the project (the option marked in the red box in the figure):
① 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, extended and debug to adapt to the new functions. If the input-output ratio is too low, then automated testing also loses its value and significance.
The compromise is to select relatively stable modules and functions for automated testing, and manual testing for parts with large changes and frequent changes in requirements.
② runs on multiple platforms, combining ergodic and repetitive tasks
Test data, test cases and automated scripts have strong reusability and portability, reduce cost and improve efficiency and value.
③ software has long maintenance cycle and vitality.
The requirement stability of automated testing, the design of automation framework, script development and debugging all take time, which is actually a software development process. If the project cycle is short and there is not enough time to support this process, then automated testing is not needed.
The development of the ④ tested system is relatively standardized and has strong testability.
It is mainly based on the following considerations: the architectural differences of the system under test, the adaptability of testing techniques and tools, and the ability of testers to design and develop an automated testing framework that adapts to the differences.
4. Brief introduction of common automated testing tools
UFT
That is, the merger of the original QTP and ST, developed by HP, is an enterprise-class commercial automation testing tool that provides powerful and easy-to-use recording and playback functions
It is compatible with object recognition mode and image recognition mode at the same time, and supports software testing of two architectures: Bhammer S and Cmax S.
Robot Framework
An automated testing framework tool based on python language, which has good expansibility, supports keyword drive, supports many types of clients and interfaces, and can be used for distributed testing.
Selenium
The automated testing tool applied to web supports multi-platform, multi-browser and multi-language automation. The advantages are as follows:
① is 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++
⑤ has good support for web interface.
⑥ simple (API simple), flexible (development language driven)
⑦ supports distributed test case execution
5. What skills do you need to do UI automated testing
Related technologies of ① front-end
HTML, XML, JavaScript, TCP/IP protocols, etc.
② is a programming language
As mentioned earlier, selenium supports multiple languages, depending on individual circumstances and the development language of the project.
Selection of appropriate tools for ③
Such as selenium, such as UTF, etc.
④ requirement analysis
Project type, characteristics, life cycle, whether it is suitable for automated testing, etc.
After reading this, the article "what are the problems in implementing UI automated testing" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.