Integrate mobile tests and Bamboo

Integrate your server builds with Mobile Center to access devices and apps residing on the Mobile Center server.

Integration is supported for Mobile Center versions 1.50 and later. Integrations with the Mobile Center wizard, as described below, is supported for Mobile Center version 2.0 and later.

Configure the Mobile Center server settings

  1. Create an UFT File System Execution task. For details, see Run UFT tests in a Bamboo server build.

  2. In the tasks configuration page, select Mobile Center Settings.

  3. Enter the following:

    Mobile Center URL

    The URL of your Mobile Center server.

    This information is also saved in the Mobile pane of the UFT Options dialog (Tools > Options > GUI Testing tab > Mobile node).

    Mobile Center User Name and Password

    The user name and password used to access Mobile Center.

    This information is also saved in the Mobile pane of the UFT Options dialog (Tools > Options > GUI Testing tab > Mobile node).

  4. If your connection to the Mobile Center server is secure, enable the Use SSL option.

  5. If your connection to the Mobile Center server is through a proxy, select Use Proxy and provide the proxy information.

Back to top

Run the Mobile Center wizard

  1. Set up your Bamboo build for Mobile Center integration. For details, see Configure the Mobile Center server settings.

  2. On the configuration page, click the Open Wizard button. The Mobile Center windows opens, as long as you have provided the correct server credentials in the previous step.

  3. When prompted, enter your credentials and click Login. The wizard opens to the Device tab.

  4. Do one of the following:

    Select a specific device

    If you want to run your test on a specific device, select Choose Specific Device in the left panel, to view the filter.

    Select a device by capabilities

    If you do not need to test a specific device, create a rule that finds devices that meet your criteria.

    For example, if you need to test Android version 4.1 and higher, on any device, create a rule that only requires 4.1 and higher. Mobile Center shows only the devices that match the criteria.

    In the left panel, select Choose Capabilities to access the Create Rule page. Choose the desired capabilities. Use a wildcard (*) to specify an OS subversion, when using the "Equals" enumerator, for example, 4.*.

    Click the More information button in a device's row to access the auto-fill option, create a reservation, or see device information.

    For more details, see View and Manage Devices in the Mobile Center Help.

  5. Click the Apps tab to view the available apps. Select one or more apps. If the app you want to test is not visible, make sure your filter is not hiding it. You can also add new apps with the Upload app button.

    Tip: We recommend uploading at least one app manually, as described in Upload Mobile Center apps.

  6. Click the Test Options tab to set up the behavior of the apps and the device metrics that you want to generate during the test. For details, see Wizard - Test Options in the Mobile Center Help.

  7. Click Save and Close in the Mobile Center wizard's top right corner.

  8. Save the configuration.

  9. Run and view the test. For details, see Run UFT tests in a Bamboo server build.

Back to top

Upload Mobile Center apps

To select apps to run during your test, you can upload the app package files directly to the Mobile Center server, instead of using the wizard.

  1. Copy the app package files, for example a file with an .apk extension, to the Bamboo server machine.

  2. Set up your Bamboo build for Mobile Center integration as described in Configure the Mobile Center server settings.

  3. On the Tests pane of the Tasks type page, click the MC Application Upload task.

  4. For each application you want to add, specify the full path of the app package file on the Bamboo server.

  5. Save the configuration.

Back to top

See also: