Recording mobile tests
You can record a mobile test to capture the actions that you perform on Android applications. The actions are captured as test steps to a mobile test recording.
Before you begin
- Run the Appium server on the default port to connect to your mobile devices or emulators.
- Set the Android SDK path in Preferences and point to the directory where the Android SDK is installed.
Procedure
- Go to the Web UI Test perspective in HCL OneTest™ UI.
-
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 Android applications that you created from the Mobile and Web UI applications view.
- Select the required Android application.
- Select the mobile device from the Select mobile device list and click Next.
-
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 by using the virtual client of the actual device or emulator. The actions are imitated on the actual mobile device and are captured as test steps in the test. The test steps are also 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 emulator: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 emulator 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 emulator Volume down Decreases the volume on the mobile device or emulator Mute Mutes the mobile device or emulator Send SMS Sends an SMS to the phone number that you specify in the Send SMS dialog box Make call Calls to the phone number that you specify in the Make a call dialog box Overview Displays the previously opened applications Home Navigates to the home screen Back Navigates to the previous page or window in the mobile application -
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.