Leapwork and ALM Octane Integration
Leapwork and ALM Octane Integration
Leapwork Test Automation is often used in conjunction with Test Management products. This document describes the integration between Leapwork Test Automation and ALM Octane Test Management.
Leapwork
Leadwork’s no-code Test Automation technology makes it quicker and easier for regular business users and IT teams to adopt, so that they can scale automation faster - ultimately empowering quality assurance teams, leading to shorter test cycles and immediate return on investment. This means that enterprises can continue to grow and optimize their performance because they can rely on their business software to work as it should, with test automation as an integral part of their software development lifecycle.
ALM Octane
The role of software testing is becoming increasingly important in the software development lifecycle to ensure that software is released with the highest possible quality. With an increased amount of testing, more advanced test plans and strategies, it is evident that a proper test management tool is needed. ALM Octane is a web-based application lifecycle management platform that enables teams to collaborate easily, manage the product delivery pipeline, and visualize the impact of changes.
Integration
CI-CD Pipeline implementation of the Continuous Integration/Continuous Deployment software is the backbone of the modern DevOps environment. Most organizations using DevOps practices use Jenkins. Jenkins is an open source CI tool which can be used to execute the Leapwork tests. Jenkins is a Continuous Integration tool which does this verification periodically or whenever the developer pushes the code to the repository.
Both Leapwork and ALM Octane integrate natively with Jenkins, and so with each other.
Installation
Both the ALM Octane and Leapwork plugins are installed from within the Jenkins “Plugin” store.
Open Manage Jenkins -> Manage Plugins
Leapwork plugin for Jenkins: Leapwork Integration
ALM Octane integration: Micro Focus Application Automation Tools/OpenText Application Automation Tools
Configuration
This section will describe the configuration of the different components in Leapwork, Octane, and Jenkins.
ALM Octane configuration
Before configuring the Jenkins pipe, few things need to be configured in ALM Octane:
To set up CI/CD integration, use the ALM Octane CI Plugin:
- In Settings > Spaces, select a workspace > API Access, obtain an access key and secret key that are assigned the CI/CD integration role in the relevant workspaces.
- The space admin can obtain the Client ID and Client secret in ALM Octane Settings. The access keys must be assigned the CI/CD Integration role in all relevant workspaces. For details, see Set up API access.
- In the plugin configuration, enter the access key and secret key for accessing ALM Octane.
Jenkins Configuration
First step in Jenkins is to configure the ALM Octane server instance. In Jenkins goto:
Manage Jenkins -> Configure System
When the ALM Octane plugin is configured correctly you will find an "ALM Octane CI Configuration" section. Configure the server details. For credentials press “add” and use the ALM Octane Client ID and API key created previously. Use the “test connection” button to test the configuration, click on the save button once the connection is successfully tested.
NOTE: For the Location in ALM Octane configuration, you can get it from the ALM Octane Workspace URL.
Then press “New Item” button in Jenkins. A logical name could be similar to the Runlist/Test plan names. Next to optional other configuration, press the “Add build step” button and select “Leapwork integration”. The Leapwork plugin will appear. Configure the following steps:
After configuring the Leapwork Plugin you may configure the ALM Octane plugin. Press the button “Add post-build action” and select “Publish JUnit test result report Task”. Configure the following steps:
Adding ALM Octane Pipeline in Jenkins
After creating a new project (described above), open it and select ALM Octane Pipeline from the left pane.
Configure the following steps and click on Apply:
Add CI servers on ALM Octane
For ALM Octane to integrate with a CI server, the servers and their URLs must be added in ALM Octane. Before adding CI server, please make sure you have ALM Octane plugin configured correctly in the “ALM Octane CI Configuration section” in Jenkins.
In Settings > Spaces, select a workspace.
Click the DevOps tab. On the left side of the pane, select CI Servers.
Click + to add a CI server and enter a name for the server.
Select a URL from the list of CI servers.
The list displays all servers that meet the following conditions:
- The server has the ALM Octane CI plugin installed and configured to access your ALM Octane.
- The API Access keys that the plugin is using are assigned the CI/CD Integration role in the current workspace.
You can now create pipelines in ALM Octane that reflect the ones running on the CI server.
For more information on setting up CI Server, please click here.
NOTE: The ALM Octane API keys are not the same as Jenkins Instance ID!
Leapwork Configuration
The Leapwork configuration is limited to:
- Creating an API key. (Settings-> API access Keys). Make a note of the key.
- A Runlist. Create a runlist with required test (flows).
- A Schedule. Create an “on Demand” schedule and make a note of the name.
Executing the Project
- After configuring the Jenkins for Leapwork and ALM Octane and adding Pipeline for ALM Octane.
- Click on Build Now option.
- As soon as the build is executed, a pipeline with the same name will be created in ALM Octane.
In order to see the pipeline created in ALM Octane,
- Go to Settings on the top right.
- Click on Pipelines under Quality Management section.
Note: Opentext and Oct are the same ALM Octane application.
Execute the pipeline from within ALM Octane
You may want to start the Automated Tests manually from within the ALM Octane Test Plan. In order to do this, in ALM Octane Dashboard browse to Pipelines and follow these steps:
Click three vertical dots adjacent to the Pipeline name.
Select “Run”
Read the full documentation on the Leapwork Third Party Integration.
For any clarification, please contact our Priority Support.