In this article, learn how to start a mobile web test on an iOS device in Ranorex Studio, up to the point where recording and test building follow the same principles as standard web testing and the iOS app test example.
Before you start
To create a mobile web test, make the following preparations:
- Device settings: Prepare your iOS device and install the Ranorex Service App (RxServiceApp)
- 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 required to create and execute iOS web tests.
Create a solution for mobile testing
- Create a new solution for mobile testing using the Solution wizard.
- Open the Endpoints pad.
- Open the recording module Recording1.rxrec.
Ranorex Studio should now look similar to this:
- Empty action table in the recording module
- Empty repository
- Your device listed in the Endpoints pad
- Ranorex Service App running on the mobile device, showing the pre-instrumented web browser app.
Create the test
- Click RECORD.
-
In the device/app selection dialog:
- Select your iOS device
- Select Ranorex Web Browser
- Enter the URL you want to test
- Click Create.
What Ranorex Studio sets up for you
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 iOS device
Ranorex Studio launches the pre-instrumented browser and opens your URL on the device.
Ranorex Spy
Ranorex Spy opens in live tracking mode, showing the UI elements of the instrumented mobile browser.
- 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, continue building your test using the same principles as: