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