Today to introduce a non-intrusive UI Automation test method, is to let people write the script at the same time can also see other jade
For the engineer to do automatic test, when the test object, the first time to think that the system/software has some built-in test methods. For Android, for example, we can cite a number of Android-based developments
- API-based automated testing
- Depending on the function module that is being tested, some SDKs are called to write some apps to test whether these functions work. For example, the test for video will be to write a simple app (or call system intent) to open the specified media file, according to the instructions of TCD, set the parameters. Such tests are more appropriate for integration or development testing, and for simple validation of the availability of functionality. The disadvantage is that the user's behavior cannot be simulated and many user scenarios are missed.
- UI-based automated testing
- For example, if there are many test methods available for the Android,google itself. Along the way, Google offers monkey, Monkeyrunner, Instrumentationtest, Robotium (variant of instrumentation Test, tripartite), Uiautomator. Where UI Automator is already a very powerful automated method for simulating human behavior. The author of the department from the birth of Android to follow the pace of Google frequently change a variety of testing tools (very toss). When the test is for running, sometimes it is difficult to locate the problem. For example, the activity of the instrumentation test, it runs and the test app is in the same process, this is a hook mechanism, for more complex errors, it is often not easy to say whether the problem is the app or the script itself. Include Uiautomator, because this is an intrusive test in itself.
This is to introduce the meaning of the title, the following test method is non-invasive (non-intrustive), the process of automation is really simulating human behavior. was developed by a group of people in Finland, the key technology is to use the camera in real-time to shoot the current phone picture, and then use the image recognition technology to find the target icon, and then with a mechanical finger to click, this is the test field of the robot.
Here you can see how this test device works, it is cool, the benefits here are not the words to say more. Optofidelity
___ But ___
- It's too expensive, it's hard for a small company to buy this premium item.
- When the system (APP) UI changes, you will still encounter scenarios where script needs to update maintenance
Automated testing of non-intrusive UI