Versions Compared

Key

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

You need to install Jenkins in order to execute offline package using Jenkins.

Table of Contents
maxLevel2
minLevel2

Jenkins Installation

Follow the below-mentioned steps to install Jenkins.

...

  1. Navigate to URL:http://localhost:8080.
    This launches Jenkins homepage.
  2. Go to Jenkins > Manage Jenkins > Manage Plugins.
  3. Install HTML Publisher Plugin, Email-Ext Plugin, and EnvInject Plugin.
  4. On Jenkins home page, go to New Job.
  5. Enter the job name as per user understanding.
  6. Select the Build a free-style software project option. 
  7. Click OK.
    The user will be directed to New Job configuration page.
  8. Scroll down to Buildsection and select the first option.
  9. Click the Add Build Step button and select Execute Windows batch command.
    The below screen appears.
    Image Added
  10. Update the commands that lead to the location and execution of QualitiaOffline.exe.
    For example: <drive name where offline package is saved>:\cd <location where the offline package is saved>\Offline package QualitiaOffline.exe.
  11. From Add Build Stepbutton, selectInject Environment Variables.
    (warning) 
    This step has to be followed by step 10, otherwise Qualitia Reports will not be visible through Jenkins.
  12. Update the path for the file qer.properties along with the filename.
    This file is generated and saved where offline package is saved during execution of the test cases. For example; <Offline Package location>\qer.properties

    Image Added
  13. Go to Post-build Actionssection.
  14. Click Add Post-build actionand select Publish HTML Report.
    Below screen appears.
  15. Update the values under respective columns as shown below.
    Image Added
  16. Select Jenkins > Manage Jenkins > Configure System.
    Image Added
  17. Scroll down to the Email Notificationsection.
  18. Click the Advancedtab.
  19. Enter valid values for the respective fields.
    Below is the screenshot for example.
    Image Added
  20. Select the Test Configuration by sending test e-mail check boxand enter the valid email address.
  21. Click Test Configurationbutton.
    You would be notified on the successful execution of step 21.
  22. If there is any error message, recheck the setting values.
  23. To enable this email notification for a Project/Job, navigate to Project Configuration.
  24. Scroll down to Post Build Actionssection.
  25. Click Add post-build action and select Email Notification.
  26. Provide recipient details.
  27. Click Save.

Execution and Reports

Once the configuration settings are done successfully, you are now ready for test case executions.

  1. Navigate to the home page of Jenkins.
  2. Click the Job name.
  3. Click Build Now.
  4. Under Build History section user can see the progress of the build.
    The user will also see the execution of the Test Cases involved in Offline Package.
  5. Once the build is successfully generated, click Qualitia Report.
    Qualitia Offline Package execution report will be displayed in the browser.

The user can view earlier reports by selecting the respective Build and going to Qualitia Report of that build.

The user can click the zip link to download the zip of the Qualitia Reports.