This tutorial illustrates each of the steps that are required to record a test case using an iOS simulator.
In this tutorial, you perform the following tasks:
Follow these steps:
The Set DevTest Registry dialog opens.
The project that you create holds all the test case example files that are required for the mobile tutorials.
Note: If you created the MyMobileTutorials project in a previous tutorial, skip to Step 3, Create a Config File for an Android Simulator.
Follow these steps:
The Create New Project dialog appears.
The MyMobileTutorials project is created.
The default configuration is named project.config, and is created automatically for a new project. The project.config file is located in the Configs folder in the Project panel. You can create a configuration file that contains asset information specific to using an iOS simulator.
Follow these steps:
The MobileiOSSimulator config file opens in the properties editor.
A Simulator Session asset that is associated with a specific config lets you specify the mobile simulator that is used for testing.
Follow these steps:
The Mobile Session dialog displays.
Note: If you have already defined values for any of these fields, you can select the value from the list for that field. To add or remove values from the list, select Maintain List.
Enter iOSSimulator.
Enter iOS Simulator for use with Mobile Tutorial 1.
Select iOS from the drop-down menu.
Navigate to and select the UICatalog.app file that you downloaded.
Select iPhone only from the drop-down menu.
Select Simulator from the drop-down menu.
Navigate to and select the iOS simulator on your machine.
Select 6.1.
The new iOS Simulator asset appears in the Asset Browser.
Follow these steps:
The mobile test recorder and the mobile simulator windows open.
You are now recording.
Note: Do not perform these actions in the mobile simulator directly. All actions that are performed in the recorder window are sent to the simulator automatically.
The recorder window and the mobile simulator close. Your new test case is populated with test steps that represent the mobile actions that are captured during the recording. Each test step represents the actions that you performed on a specific screen in the application.
The Mobile Testing Step tab opens and shows a screenshot of the test application. The Actions section at the top of the tab shows the individual actions that are performed in the test step.
For more information about modifying a recorded test step, see Modify Mobile Test Steps.
For more information about adding assertions to your test step, see Add an Assertion to a Mobile Test Step.
Follow these steps:
Note: Select whether to start a new ITR run or open a previous ITR run (if you have run the ITR before).
The Interactive Test Run window opens.
The mobile simulator window opens and DevTest runs the test steps. The mobile application is visible on the simulator while the test is running.
When the test is complete, a message opens indicating the test is complete. The simulator window closes.
For more information about using the ITR, see Running Test Cases and Suites.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|