Blog QA Touch

How to Integrate Jenkins Devops With QA Touch

June 30, 2020
QA Touch Jenkins Integration

We are pleased to announce the ‘Jenkins Integration’ to our community. Now QA Touch is integrated with Jenkins.

Jenkins is a popular open-source CI/CD tool. It enables the user to automate the software development process related to building, testing and deploying, facilitating continuous integration and continuous delivery. CI/CD Pipeline implementation or CI/CD software is the backbone of the modern DevOps environment.

QA Touch has a suite of other integrations JIRA, JIRA Server, Slack, GitHub, GitLab, Bitbucket, Trello, Assembla, Bugzilla, QA Touch API, Youtrack, Redmine, Lighthouse

QA Touch offers seamless integration with Jenkins presenting the best way to do all the CI/CD activities in Jenkins.
QA Touch
QA Touch Jenkin Integration Process

The steps to integrate with Jenkins are as follows:

  1. Configuring the Jenkins credential in QA Touch
  2. Jenkins global configuration
  3. Mapping Jenkins project to test run

Configuring the Jenkins credential in QA Touch

How to generate API token in Jenkins? The steps are as below to create an API token:

  1. Click the profile menu in the top section
  2. Click the configure link in the left section
  3. In the API token section, click on the ‘Add New Token’ button
  4. Then give a name for the token and click the generate button
  5. Finally, copy the generated token since it will be shown only at the time of the creation

The below snapshots shows the steps to access the API token.

Dashboard_Jenkins_

dckap_team_Jenkins_

The API access key is generated now.

Jenkins Global Configuration

Here’s the step-by-step guide one should be following for a successful and seamless Jenkins Integration with QA Touch:

  1. Login to QA Touch as an administrator
  2. Click the administration → integration settings
  3. Enter Jenkins username, URL and permanent token
  4. Click the submit button
  5. After a successful configuration, the status becomes connected as shown in the below snapshot.

Administration → Integration Settings

After a successful configuration, the status becomes connected.

Jenkins Navigation and Usage

  1. Click on the Jenkins menu from the sidebar
  2. Jenkins ‘Job List’ page will list all the freestyle projects available in the mapped Jenkins instance
  3. Click on any listed projects, it will redirect to the corresponding ‘Build Listing’ page
  1. Here you can see the number of builds that have been built in Jenkins
  2. Download option available for all the build console outputs and also it can be seen as plain text in the browser
  3. From this page, users are able to start a build from QA Touch using the ‘Start Build’ button. The ‘Build Stats’ button will show the stats for the corresponding project

Mapping Jenkins Project To Test Run

Important Note: To map the Jenkins test run with the QA Touch test run, you have to configure one of the following test result plugins in Jenkins.

  1. TestNG
  2. JUnit

To add more results plugin in QA Touch, kindly suggest here at QA Touch community or email us at support@qatouch.com

  1. In the Jenkins ‘Build List’ page, the ‘Map Test Run’ button will be available.
  2. On clicking the button, it will prompt a popup to select the QA Touch project, corresponding test run in the project, and Jenkins result plugin.
  3. From now onwards, whenever a build is triggered in the QA Touch using the build now button, the test case in the mapped test run will be automatically mapped as passed or failed using the result from Jenkins.

Test Case Structure In Jenkins

To map the automation test script test cases with QA Touch test run cases, the following steps need to be followed:

  • In the selenium automation scripts, for every test method, we need to prepend The QA Touch test run case code with a double underscore. For Example:
    • If QA Touch has a test run case code as TR002 – Verify the logo is clickable.
    • Then in your automation test script, we have to write the method name as TR002__VerifyTheLogoIsClickable (Case code followed by a double underscore and then the name).

A sample script would be like this:

Samplescript

By following this structure, the method’s result will automatically get mapped with the QA Touch ‘Test Run’ result.

We hope this blog helped you to understand the process better on how the integration should be done between QA Touch and Jenkins.

This integration is just the beginning of a lot more platforms that we are planning to collaborate in the near future to make testing accessible for all.

Register here and be the master of your application testing. Get a chance to use Jenkins integration and many more integrations we offer.

Leave a Reply