Jenkins integration

The Application Automation Tools plugin is an open source plugin for the Jenkins CI (Continuous Integration) tool. It allows you to trigger Micro Focus tests such as Mobile Center tests, ALM (Application Lifecycle Management) test sets, UFT (Unified Functional Testing) tests, or LoadRunner scenarios.


Install the plugin

To obtain the plugin, go to the Jenkins plugin site, and search for the Application Automation Tools plugin. Click the GitHub link to download the latest version of the plugin. Alternatively, use a direct link to select the appropriate version.

Once you obtain the plugin, select Manage Jenkins > Manage Plugins from the main Jenkins page to install it.

Back to top

Configure Mobile Center settings in Jenkins

Before using Jenkins with Mobile Center, you need to configure Jenkins to recognize the Mobile Center server.

On the Jenkins Server home page, click Manage Jenkins > Configure System.

  1. Go to the Mobile Center section, and click Add MC server.
  2. Enter a name for the Mobile Center server that you will be using, and its URL.
  3. Repeat the last two steps for each of the Mobile Center servers that you will be accessing.
  4. For running functional tests where UFT and Jenkins are hosted on separate machines, you need to create an execution node for the functional test:

    1. Select Manage Jenkins > Manage Nodes > New Node.
    2. Give the node a name, and select the Permanent Agent option.
    3. Enter the details for the UFT machine.
    4. Save your changes.

Back to top

Upload Apps to Mobile Center

The Application Automation Tools Jenkins plugin provides a standalone builder for uploading apps to Mobile Center. If you want to create a job that runs a UFT functional test with Mobile devices, see the UFT Help Center.

  1. Make sure you have added your Mobile Center server to the Jenkins configuration as described in Configure Mobile Center settings in Jenkins.
  2. Copy your application package file, with .apk or .ipa extensions, to the Jenkins machine.
  3. On the Jenkins Server home page, click New Item.
  4. Enter an item name for the project.
  5. Select Free style project and click OK in the bottom left corner.
  6. In the General tab, scroll down to the Build section.
  7. Expand the Add build step drop-down and select Upload app to Mobile Center.
  8. Select your Mobile Center server from the drop-down list of servers.
  9. Provide your login credentials. If your server has the multiple projects feature enabled (see Early access features), you must also include the nine-digit project ID in the Tenant ID field. If the feature is not enabled, you must leave this field empty.
  10. If you are connecting to a Mobile Center server through a proxy, select Use proxy settings and provide the relevant information.
  11. Click Add Application and enter the full path of the .apk or .ipa package file of the app you want to upload to the Mobile Center server. Repeat this step for each app you want to upload.
  12. Click Apply to save your changes and continue with more build steps.
  13. Click Save when you are finished adding build steps.
  14. Run or trigger the job as you would with any standard Jenkins job.
  15. To troubleshoot, check the log file on the Mobile Center server for issues such as connectivity and security.

Back to top

See also: