In this article, learn how to start a mobile web test on an Android device in Ranorex Studio, up to the point where recording and test building works the same as standard web testing and the Android app example.
Before you start
To create a mobile web test, you need to make the following preparations:
- Device settings: Apply the required device settings to your Android 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 Android: Ranorex provides a preinstrumented web browser that is required for creating and executing Android web tests.
Ranorex provides a preinstrumented web browser. You need to use this browser to automate Android 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 as follows:
- Empty action table in the recording module
- Empty repository
- Your device is in the endpoints pad
- Ranorex Service App running on the mobile device, showing the preinstrumented web browser app. If you chose a different web browser and instrumented it correctly, it will also appear here.
Create the test
- Click RECORD.
- In the device/app selection dialog:
- Select your Android device
- Select the instrumented browser app
- Enter the URL you want to test
- Click Create.
What Ranorex Studio sets up for you
In Ranorex Studio
After you click Create, Ranorex Studio:
- Starts the selected browser on the device
- Adds actions to the action table to:
- Start the app
- Navigate to the provided URL
- 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 selected browser app has also been added.
On the Android device
Ranorex Studio launches the selected browser and opens the 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 showing 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: