Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can integrate Qualitia to execute test cases through Jenkins. In order to do so, you must configure your offline package accordingly.

📚Prerequisites

  1. In order to push results, the machine which you are using to trigger the test case execution must have access to the machine where Qualitia Server is installed.

  2. You must have access to port 8887 from the machine where Qualitia Server is installed.

  3. Qualitia must be installed.

  4. Projects, Testcases, and Suites must be created in QAS - client.

  5. Testcases must be in Published state.

Jenkins Installation

Jenkins can be installed using following two methods. However, Qualitia recommends installing Jenkins using the war file.

Installing Jenkins using war File

  1. Download Jenkins JDK 1.6, 1.7.

  2. Install JDK 1.6, 1.7.

  3. Do one of the following:

    1. If Java_Path is not added as Enviornment Variable: Open the Command Prompt window, navigate to the folder where you have downloaded JDK 1.6, 1.7,  and then navigate to the folder where you have downloaded Jenkins. 

    2. If Java_Path is added as Enviornment Variable: Open the Command Prompt window and navigate to the folder where you have downloaded Jenkins. 

  4. Execute the following command:
     java -Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self';img-src 'self'; style-src 'self' 'unsafe-inline'; child-src 'self'; frame-src 'self'; script-src 'self' 'unsafe-inline'; frame-ancestors 'self';" -jar jenkins.war.
    Default port is 8080.

Installing Jenkins as a Service

  1. Install JDK 1.6, 1.7.

  2. Download and Install Jenkins following the onscreen instructions.

  3. Once the installation process is completed, open the location where Jenkins is installed. 

  4. Open the jenkins.xml.

  5. Code Block
    Update the argument for %Base%\jre\bin\java as follows:
    -Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self';img-src 'self'; style-src 'self' 'unsafe-inline'; 
    child-src 'self'; frame-src 'self'; script-src 'self' 'unsafe-inline'; frame-ancestors 'self';"
     Do not remove the existing value. Just add to the existing value as displayed in the image above.
  6. Save and close the file.
    (info) Restart the Jenkins service once you update the XML values from the Services.msc console.

Jenkins Configuration

Once you have installed Jenkins, you can proceed for Jenkins configurations.

...