Wednesday, May 1, 2019

Katalon 08: Integration of HP ALM with Katalon Studio

In this post, this post we discuss about integration of  HP ALM with Katalon Studio. If we can integrate HP ALM with Katalon we can update the test case results automatically, which reduces lot of manual efforts.

Katalon has in built support for tools like Git, JIRA and etc. It doesn't has it for HP ALM tool. So I have used ALM Service Wrapper to integrate ALM. AutomationTestingUtilities has developed this library for integrating any selenium-java project with HP ALM.

So when I was doing my R & D for  ALM integration with Katalon, I found wonderful library and able to integrate HP ALM with Katalon Studio successfully.

Setup and Creating utility class:

Step 1: Open CMD prompt. Change your directory to C:\Windows\System32

OTAClient.dll is typically located in C drive.  C:\Users\<username>\AppData\Local\HP\ALM-Client\localhost\

If you are unable to see the AppData folder, enable viewing of Hidden files as AppData is a Hidden Folder.

For registering the dll file, use the below command.

C:\Windows\System32>regsvr32.exe C:\Users\Administrator\AppData\Local\HP\ALM-Client\localhost\OTAClient.dll

Then you should see “DLL Register succeeded” message.

Step 2: Download the ALM Service Wrapper “Version 2.0” library file from https://drive.google.com/drive/folders/0B7rZvkq9tkwPN1hFeHc0ZTdKNmc

And place this jar file in the lib folder of Katalon tool. Example: C:\Tools\Katalon_Studio_Windows_32-5.4.2\configuration\resources\lib

Step 3: Download JACOB library file from https://sourceforge.net/projects/jacob-project/

Step 4: Add above two jar files in lib folder of Katalon studio you are using.

Step 5: Also download below jar files and place in the same location

  • automaton-1.11-8.jar
  • commons-lang3-3.5.jar
  • generex-1.0.2.jar
  • snakeyaml-1.20.jar 


Step 6: First load and place it in any local directory and load it at run time using below code (you can put this in TestHook).

Step 7:  Under TestListeners in I have created NewTestListener class. And in

@BeforeTestSuite method - we have  JACOB library is loaded and ALM connection is established using the ALM url, userid and credentials.

@BeforeTestCase method - we have gathered TestSetFolderName, TestSetName, TestSetID, TestCaseName using testContext.

One more important point here is I have given the names of TestCase folders and TestCase names in Katalon Studio same as testSetName, testCaseName in ALM so that we can easily update the results.

TestSetID,  I couldn't get directly from testCaseContext because this is something you have to read it from ALM. And have maintained one config.properties file to maintain test set IDs of each test set and read at run time. I am hard coding it here but you can do it from your end.

Step 8: The test listener class would look like below

Hope this post gives you basic idea about integrating the HP ALM with Katalon Studio. Thanks!!

#HappyLearning #HappyTesting #qababu

2 comments:

DevOps 01: What is DevOps and How it benefits organizations?

DevOps is a culture in an organization, where the development team and operations team help each other by sharing information, process and t...