Run useMango™ tests via Jenkins

To create a project in Jenkins to run useMango™ tests

  1. Click New item on the left-hand side panel of Jenkins.
  2. Enter a name for the project.
  3. Select Freestyle Project and click OK.
  4. Once the project is created, Jenkins will direct you to the Project Configuration page. If not, click on the project in the Jenkins and then select Configure option on the left-hand panel of the page.
  5. In the Configure page, navigate to the Build section.
  6. Click on ADD BUILT STEP and select the option Run useMango tests.

If useMango Runner has successfully established a connection with the useMango™ server, then the projects in the server will be accessible through Jenkins. To add tests in useMango™ to the Jenkins job:

  1. Check the Execute tests on labelled nodes checkbox and enter the label usemango that we assigned to the agent earlier.
  2. Click on Project and select the ID of the Project from the drop-down list.
  3. Enter the tags assigned to the test(s) to add them to the Jenkins job (Optional). If this field is left empty, all the tests irrespective of the tags will be displayed.
  4. Enter the name of the test you wish you add in the Test name field (Optional). If the field is left empty, all the tests will be displayed.
  5. Select the test status - Design, Review, Ready, Revalidate or Repair , if you want to add only tests belonging to a given status in useMango™ (Optional). If the field is left empty, all the tests irrespective of their statuses will be displayed.
  6. Enter the name of the Assignee in useMango™ if you are trying to run tests assigned to a specific user (Optional). If the field is left empty, all the tests irrespective of the user to whom the tests are assigned to will be displayed.
  7. Select the environment from the dropdown. (Note: The project’s default environment is preselected)
  8. Click on Validate and the plugin will communicate with the useMango™ server and validate the form information. All the tests which were added to the project will be displayed on the page.
  9. Click on Post-build Actions button in the Post-build Actions section in the page and select Publish JUnit test result report.
  10. Enter ‘results/*.xml’ in the Test report XMLs field.
  11. Click Apply and Save.
  12. Click on the project name and click on Build Now option in the left-hand side panel of the page to start the execution.