UI Automation Testing in Ios

Source: Internet
Author: User

Preparation of the test code for the automated CE Test in iOS:

1, the relevant test code is SH using the official Apple test code, is a simple de example for testing.

The name is: Iphonecoredatarecipes. This can be found in the Internet between the name of the basic can be searched for this code download.


2. Open the downloaded test code. Open instruments, can be opened in a variety of ways, the shortcut is: Command+i, can display the corresponding interface.


3. After you find the Automation option, click Profile or double-click the automation icon.


4, in the left side of the setup status bar can create a script document, you can select and click the "Create" command, you can create an interface.


5. Create a basic test code:

The code is:

var Targer = Uiatarget.localtarget (); Target.logelementtree ();

6 Click to start the test, and clicking the Run button of the script below, you will see the interface to display the log.


You can view the following diagram:


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

UI Automation Testing 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.