Review the initial steps of a mobile web test. After these initial steps, test creation follows the same principles as in the iOS app test example and general web test creation.
Preparations
To create a mobile web test, make the following preparations:
Device settings
- Apply the required device settings to your iOS device and install the Ranorex Service App.
Connect mobile device
- Connect your mobile device to your computer, preferably via USB, and add it as an endpoint in Ranorex Studio.
Install the Ranorex Web Browser app for iOS
- Ranorex provides a pre-instrumented web browser that is required for creating and executing iOS web tests.
Create a solution for mobile testing
-
Create a new solution for mobile testing using the RocketStart wizard.
-
Open the Endpoints pad.
-
Open the recording module Recording1.rxrec.
Ranorex Studio should now look as follows:
-
Empty action table in the recording module
-
Empty repository
-
Your device in the Endpoints pad
-
Ranorex Service App running on the mobile device, showing the pre-instrumented web browser app.
Create the test
-
Click RECORD.
-
The dialog for selecting the mobile device and instrumented app appears.
-
Select your iOS device, select the app (Ranorex Web Browser), specify the URL, and click Create.
Setup
Ranorex Studio now executes the following processes to set up mobile test building:
In Ranorex Studio
Ranorex Studio starts the selected app on your mobile device and adds the respective actions in the action table.
-
The RUN button changes to reflect that it now runs the test on the current automation root, i.e. the active endpoint/mobile devices, not the computer.
-
An action that starts the app on the mobile device has been added to the action table.
-
An action that navigates to the specified URL in the web browser app has also been added.
On the mobile device
Ranorex Studio starts the pre-instrumented web browser and navigates to the specified URL on the mobile device.
Ranorex Spy
Ranorex Spy starts in live tracking mode for all UI elements of the instrumented mobile app.
-
Element browser in Spy shows all the UI elements of the instrumented app.
-
Live view of the instrumented app on the mobile device.
Build the test
From here on out, test building follows the same principles as in the iOS app test example and general web test creation.