Create a Test for Mobile Apps
Sprinter's integration with HPE Mobile Center lets you create manual tests on mobile devices running mobile apps.
To allow the integration between Mobile Center and Sprinter, make sue you have access to a Mobile Center server. For details, see the Mobile Center Help Center.
Upon startup, Sprinter prompts you to connect with ALM, a UFT license, or Mobile Center.
If you connect via Mobile Center, enter the server details and credentials.
If you connect with ALM, Octane, or a UFT license, then after you login, you enter the Mobile Center credentials through the Settings dialog box:
- In the Mobile pane, enter the address of your Mobile Lab server and the credentials.
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.
You create your mobile test from Plan mode.
In Plan mode, create or open a test. Select Steps Capture > Select Application. The Select Application dialog box opens. Select an app from the dropdown or Click . The Add Application dialog box opens.
- Enter a name for the application.
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 Mobile Center wizard.
- 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.
- Click Save and Close at the top right corner of the wizard window.
(Optional) Select SAPUI5 technology if you are working with SAPUI5 technology in mobile applications. Sprinter will launch the application with the SAP UFT agent in order to record all of the controls.
- Click OK in the Add Application dialog box and Close in the Select Application dialog box.
Select Steps Capture > Capture Steps. The Mobile Center remote view opens. After it loads, and installs the apps, begin performing actions on your device.
Tip: The actions are captured in the step. Create a new step for each group of actions using the New Step button in the Captured Steps sidebar.
- The Mobile remote view window opens with the Control Panel. Interact with your device and enter simulations. For information, see Control Panel.
Use the Capture Sidebar to save snapshots for your step.
Note: The snapshot shows the image before the execution of the action.
- End your capture session and proceed as you would with any other test. For details, see Author a Test or Component.
The Control Panel Provides the following capabilities and information:
The General information section is located at the bottom of the Control Panel.
|Zoom level. You can zoom in and out using the plus and minus signs.|
|Network Latency. The latency is considered good if it is less than 100 ms (green), mediocre if it ranges between 100 and 200 ms (yellow), poor if it ranges between 200 and 300 ms (red), and bad if it exceeds 300 ms (gray).|
|Device Information. The device properties such as the device type, name, and ID.|
This section lets you interact with the device during the capture or replay session.
|Change the orientation. Toggles the orientation of the device|
|Take a screenshot. Saves a screenshot of the current screen as a *.png file to your default download folder. (Not supported for Safari)|
|Download device logs. Downloads the device logs as a text file to your default download folder. (Not supported for Safari)|
|Install an app. Opens the Applications window page and lets you select an app to install and launch.|
The Simulations section lets you perform common event simulations.
|Simulate incoming call. The dialog box that opens lets you indicate the number calling, and how to handle the call.|
|Simulate incoming SMS. The dialog box that opens lets you indicate the number sending the message and the message text.|
|Simulate sending app to background. The dialog box that opens, lets you indicate the duration for which the app should be sent to the background.|
|Simulate GPS relocation. The dialog box that opens lets you specify the latitude and longitude for the simulation.|
|Simulate photo. Allows you to replace the photo taken by the device's camera. The dialog box that opens lets you specify a image files. For details, see Sensor Simulation.|
|Simulate video. Allows you to replace the video taken by the device's camera. The dialog box that opens lets you specify a video file. For details, see Sensor Simulation.|
In this section, you can mark the device metrics that you want to collect during the test.
- CPU. CPU usage during the test run.
- Memory. The amount of memory used during the test run.
- Free Memory. The amount of free memory on the device, during the test run.