Welcome to the Ranorex Support Portal

Android mobile web test example

In this chapter, we’ll cover the initial steps of a mobile web test on an Android device. After these initial steps, test creation follows the same principles as in the ⇢ Android app test example and ⇢ general web test creation.

In this chapter

Preparations


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

Install the Ranorex Web Browser app for Android

Choose a mobile browser


Ranorex provides a preinstrumented web browser. You need to use this browser to automate Android web tests.

Download

Reference


Installing this app is explained in

Web and mobile testing > Mobile testing > ⇢ Instrument apps

Create a solution for mobile testing


  1. ⇢ Create a new solution for mobile testing using the RocketStart wizard.

  2. Open the Endpoints pad.

  3. Open the recording module Recording1.rxrec.

Ranorex Studio should now look as follows:

  1. Empty action table in the recording module

  2. Empty repository

  3. Your device in the endpoints pad

  4. 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


  1. Click RECORD.

  2. The dialog for selecting the mobile device and instrumented app appears.

  1. Select your Android device app (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.

  1. 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.

  2. An action that starts the app on the mobile device has been added to the action table.

  3. An action that navigates to the specified URL in the selected browser app has also been added.

On the mobile device

Ranorex Studio starts the selected 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.

  1. Element browser in Spy showing all the UI elements of the instrumented app.

  2. Live view of the instrumented app on the mobile device.

Build the test


From this point forward, test building follows the same principles as in the ⇢ Android app test example and ⇢ general web test creation.

USERS LOVE US

SUBSCRIBE TO OUR NEWSLETTER

Get the latest test automation information right in your mailbox.

FOLLOW US

© 2024 Ranorex GmbH. All Rights Reserved