Recording mobile tests for iOS applications
You can record a mobile test to capture the actions that you perform on iOS applications. The actions are captured as test steps to a mobile test recording.
Before you begin
- Read and completed the prerequiste tasks listed in Prerequisite tasks for recording iOS tests.
- Run the Appium server on the default port to connect to your mobile devices or simulators.
- Installed the application under test on your mobile device or simulator.
About this task
After you install the Xcode and the command line tools for Xcode, you can connect the iOS device or simulator to your computer, you can then record the user interface and hardware actions in the iOS application that you want to test.
- Insert user actions.
- Insert navigation actions.
- Assign variables.
- Insert verification points.
- Substitute data by using custom code or datasets.
Generally, when you record actions on the iOS application, the controls on the application are identified by using one of the control properties which is a unique identifier for that control. The input fields on the iOS applications are identified by using the Label property also.
- Click tab.
- Select the Appium server host check box.
- Enter the port number in the Port field.
You can then perform the following steps to record a mobile test on the iOS application.
Procedure
- Go to the Web UI Test perspective in Rational® Functional Tester.
-
Click the New Test from Recording icon in the
toolbar and select Mobile Test.
The New Mobile Test From Recording dialog box is displayed.
- Select a directory to save the test.
-
Enter the name of the test in the Test name field, and
click Next.
The Select mobile application page displays the list of all iOS and Android applications that you configured in the Application Configuration window.
-
Select the iOS application that you want to test.
The iOS devices that are connected to the local computer are displayed in the Select mobile list.
- Select the mobile device from the Select mobile device list.
-
Click Finish.
The application is displayed in a virtual client of the selected mobile device in the browser window, and the recording is started.
You can perform the actions on the selected mobile application through the virtual client of the actual device or simulator. The actions that you perform on the selected mobile application are displayed live in the virtual client. The test steps are displayed on the Test Steps pane of the virtual client window.
The following table lists the options of the actions that you can perform in the virtual client of the mobile device or simulator:Option Action when clicked Stop recording Stops the recording and generates the mobile test recording Screen lock Performs the lock screen action on the mobile device or simulator Refresh Refreshes the virtual client if the actions that you perform on the virtual client is not synchronized with the mobile device Volume up Increases the volume on the mobile device or simulator Volume down Decreases the volume on the mobile device or simulator Home Navigates to the home screen -
Click Stop recording.
The test recording stops and the browser window is closed. The Test Generation dialog box is displayed in the Web UI Test perspective.