Recording of the UIAutomation script in iOS

Source: Internet
Author: User

The script in the automated test for iOS has the ability to record, which gives us a lot of convenience in testing. We can create the code by recording, and then through the changes to the generated band can be changed to automatically test the code, generally we can add the delay function.

Or is it using recipes (Apple's official test project) This project as a test project, and then add the selection uiautomation, into the scripting interface,

1, click the Red button under the script, and then enter the simulator to operate the phone application, you can generate a total of JS code. Then click on the "Stop" button.

Generate the corresponding code as follows:


On the real machine and the simulator is the same test, as long as the developer to verify it.








2, there may be a lot of code will not see, we are because of the color problem, we can copy to the outside of the editor to tidy up and then to copy it in.

After finishing the code:


Then click the Run button. Can be tested by displaying the appropriate operating conditions.



You can see that there are still some errors, we need to modify the correct knowledge, and the results of testing in this process is consistent, feedback to the development engineer and so on, so that it is conducive to development.


After the test succeeds, the error red flag will not appear.




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Recording of the UIAutomation script in iOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.