Run Mobile App Tests

Sprinter's integration with HPE Mobile Center lets you run your mobile app tests on a variety of devices.

You create your mobile test in Plan mode. For details, see Create a Test for Mobile Apps .

Connect to Mobile Center

Make sure you have access to a Mobile Center sever.

Upon startup, Sprinter prompts you to connect with ALM, Octane, Mobile Center, or a UFT license. For details, see Logging in to Sprinter.

  • If you log in with Octane or a UFT license, provide the Mobile Center credentials using the Settings .
  • If you connect via Mobile Center, enter the server details and credentials in the Mobile Center dialog box.
  • If you log in with ALM, then:

    • If the ALM project has the Mobile Center extension enabled, Sprinter automatically retrieves the Mobile Center server credentials from the project. You will not be able to modify them in Sprinter.
    • If the ALM project does not have the Mobile Center extension enabled, Sprinter will not retrieve the credentials from the ALM Site Administration. In this case, provide the Mobile Center credentials using the Settings dialog box:
  1. Click Settings .

  2. If the Mobile Center server was installed with secure access (https), you will need to select Use SSL. If you did not enable this option, and the Test Connection failed, try selecting this option. When working with Mobile Center through SSL, client machines must have an SSL certificate installed in the Trusted Root Certification Authorities category.

  3. If your connection to Mobile Center is through a proxy server, click Proxy Settings to provide its details.

Run a Manual Mobile Test from Sprinter

To run a manual mobile test:

  1. In Run mode, enable Power Mode and open your test.
  2. Click on Application in the lower pane. In the Application window, select a mobile app from the drop down list or click Add to add a new one. The Add Application dialog box opens.

  3. Enter a name for the application.
  4. To test a native app, system app, or the home screen, click Select App. The Mobile Center wizard opens. Follow the three wizard screens to select a device, app, and test options. For details, see the Mobile Center wizard.

    Note: If you selected the packaged version of an application for recording, you need to select the packaged version for replay.

  5. To test a web application, click Select Browser. The Mobile Center wizard opens. Follow the three wizard screens to select a device, browser, and device metrics. For details, see Mobile Center wizard.
  6. Click Save and Close at the top right corner of the wizard window.
  7. If you are working with SAPUI5 technology in mobile applications, select SAPUI5 technology. Sprinter will launch the application with the SAP UFT agent in order to record all controls.
  8. Back in the main window, open a test for execution and click the Run button.
  9. The Mobile remote view window opens with the Control Panel. Interact with your device and enter simulations. For information, see Control Panel.
  10. End your test run, and proceed as you would with any other test.

Back to top

How to Run Mobile Tests from ALM

To run a mobile test from ALM:

  1. Make sure you have enabled the MC extension in ALM. For details, see Logging in to Sprinter.
  2. Click on the Mobile Center icon in ALM's Execution Grid or Test Instance Details dialog box. The Mobile Center dialog box opens.
  3. In the Mobile Center dialog box, select a test type, Mobile or Web, and click Open Wizard. Follow the wizard screens to select a device, app or browser, and device metrics. For details, see Mobile Center wizard.
  4. Save your choices and run the test.

When you run a test, Sprinter creates an Application entry for the app used by your test, for each test instance.

Back to top

See also: