UFT Jenkins Integration

0
608
UFT Jenkins Integration

In our earlier post, we got to know the easy integration of UFT with GIT. This post focuses on integration of UFT and Jenkins. I have also tried to list down all the benefits you are likely to get with UFT Jenkins Integration. Jenkins is the most popular tool which is being used for Continuous Integration. Lets first understand some basics before we get into UFT Jenkins integration details.

Continuous Integration

Continuous Integration (CI) is a development practice which enables periodic code integration verification and detect any related issues as early as possible in Software Development Life Cycle. Agile teams typically configure CI to include automated compilation, unit test execution, and source control integration. Sometimes CI also includes automatically running automated acceptance tests such as those developed using FitNesse. In effect, CI means that the build is nearly always clean.

A CI Server like Jenkins monitors the repository and checks out changes by developers when they occur. As soon a new change is detected the CI server builds the system and runs unit and integration tests. After deployment and testing, the CI server informs the team of the successful build. If the build or tests fail, the CI server alerts the team. The team fixes the issue at the earliest opportunity and Continue to continually integrate and test throughout the project.

Know more about Continuous Integration

What is Jenkins?

Image result for Jenkins You must have got it by now, Jenkins is a Continuous Integration (CI) server or tool, which helps to automate different aspects of Software Development Life Cycle. It is an open source automation server written in Java. The project was forked from Hudson after a dispute with Oracle. Jenkins helps to automate the non-human part of software development process, with continuous integration and facilitating technical aspects of continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat. It supports version control tools, including AccuRevCVSSubversionGitMercurialPerforceClearCase and RTC, and can execute Apache AntApache Maven and sbt based projects as well as arbitrary shell scripts and Windows batch commands. The creator of Jenkins is Kohsuke Kawaguchi.

Know more about Jenkins

UFT Jenkins Integration

In order to ensure the new builds did not introduce any new issues, automated functional and regression tests should be executed. Jenkins can trigger the executions once the tests are integrated. HPE provides HP Application Automation Tools Plugin to integrate with different CI server. HP Application Automation Tools plugin integrates HPE products with Jenkins. Using the plugin, you can create and use virtual services, run Performance Center or LoadRunner performance tests, run UFT functional tests, run tests in your lab, and run tests on mobile devices. This plugin also lets you upload test results to ALM. In addition, ALM Octane users can track and trigger Jenkins pipelines from within the ALM Octane user interface.

Download latest HP Application Automation Tools Plugin

UFT Jenkins Setup

Setup Jenkins Server – I assume you have already Jenkins server setup. If not, you can find all necessary details here.

Download Jenkins

Install HP Application Automation Tools Plugin

  1. Login to Jenkins.
  2. Click the link “Manage Jenkins” -> “Manage Plugins”, then click “Advanced” tab.
  3. Enter the Server “web-proxy.rose.hp.com” and Port “8088”, then click “Submit”.

  1. Click “Available” tab.
  2. Filter the name “HP Application Automation Tools”.
  3. Click on the Install checkbox and click on the “Download Now and Install After Restart“ button.

Configure Jenkins

Set up a job

  1. Click on the “Jenkins> “New Item“ menu option. 
  2. Enter a Job Name as “UFT Integration Test” and click on the ”Free Style Project. 

  1. Configuration Screen will Open. Select Build Tab and click on the “Add build step“ and Select “Execute HPE tests from file system“ option.

Enter the required details in the next screen about the UFT test

Set up the Post Build Actions

Select Post-build Actions Tab and click on the Add Post-build action

Select the Archive Option of your choice and click on ”Apply” and ”Save” your settings

Run Job

Open Your Jenkins Project and click on “Build Now” options from the left

Check Result

You will see the job links in the Build history Section as above. Click on the link and select Console Output.

You can always check your UFT test result from UFT Run Result Viewer.

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.