Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Qualitia supports Jenkins, an open source automation server written in Java. It is a cross-platform, continuous integration, and continuous delivery application that increases your productivity. 

...

Expand
titleInstalling Jenkins Using war File (Recommended)
  1. Download Jenkins and JRE 6, 7/JDK 1.6, 1.7.

  2. Install JRE 6, 7/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 JRE 6, 7/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.

    Image RemovedImage Added


    After successful execution of command, a message is displayed confirming Jenkins installations in the Command Prompt window.

  5. Open URL: http://localhost:8080.
    This launches Jenkins' dashboard.

...

  1. Launch Jenkins (http://localhost:8080).

  2. Enter the Administrator password.
    Take the Administrator password from the initialAdminPassword file located in the .jenkins\secrets folder.

  3. Click Continue.

  4. Jenkins asks to install plugins. Skip to install plugins for now clicking the X icon from the top right corner of the window and click Start using Jenkins button.

  5. Go to Jenkins > Manage Jenkins > Manage Plugins.

    Image RemovedImage Added
  6. Access the Available tab.
    A list of available plugins is displayed to select and install.

  7. Select HTML Publisher, Email Extension, Environment File, and Environment Injector plugins.

  8. Select Subversion plugin, if your test execution XML exists in subversion server. 

  9. Click Install without Restart.
    Post successful installation; go to the Jenkins' dashboard.

  10. Click New Item.

  11. Enter the item name, select Freestyle project, and then click OK.
    You are navigated to new job configuration page.

  12. In the Build section, click Add build step and then select Execute windows batch command.

  13. In the Command text box, enter the command to execute qualitia-offline.xxxx.jar.
    For example: If your offline package is stored in the D > OfflinePackage, enter the command to navigate to the D drive and then command to execute the offline package.

    Code Block
    languagecpp
    d:
    cd "D:\OfflinePackage"
    java -jar qualitia-offline.xxxx.jar
    Code Block

  14. Click Add Build Step and select Inject environment variables.
    Note: This step has to be followed by step 12; otherwise Qualitia Reports will not be visible through Jenkins.

  15. Update Properties File Path for the file qer.properties along with the file name.
    This file is located in the Offline Package. For example: <Offline Package location>\qer.properties.
    Note: The qer.properties file is generated after running the first Jenkins job only.

  16. In the Post-build Actions section, click the Add Post build action button and select Publish HTML reports.

  17. In the Publish HTML reports section, enter the values as mentioned below:

    1. HTML directory to archive: $qualitiareportpath

    2. Index page[s]: $reportfilename

    3. Report title: Qualitia Report

    4. Select the Keep past HTML reports check box.

  18. Click Save.

  19. On the top left corner of the screen, click Jenkins > Manage Jenkins > Configure System.

  20. In the E-mail Notification section, click the Advanced button and fill up the information that includes;

...