As
selenium is open source and not having any inbuilt integration with any test
management tool. It is very important and handy to integrate selenium with well-established
test management tool (HP-ALM)
Steps:
1. Register
'OTAClient.dll' with registry
a. open command prompt by typing cmd in run
command
b. copy below command and press enter
regsvr32 ” complete path of OTAClient.dll file in your
local system”
ex: regsvr32 "C:\Users\user1\AppData\Local\HP\ALM-Client\10\OTAClient.dll"
2.
Convert
the DLL file into Jar
c. Download ‘com4j.jar file’, downloaded file
will be in zip format, extract the zip file in some folder.
d. Navigate to extracted folder in command prompt
e. Enter the below command
java
-jar tlbimp.jar -o alm -p com.qc ” complete path of OTAClient.dll file in your
local system”
f. All java files will be available in alm folder
under parent folder( where you extracted the zip file)
3.
Export
these java files as jar filefrom eclipse.
g. Copy com folder ,created under alm folder , and copy it in src folder of
eclipse
h. You will get com.qc and com.qc.events folder
in created under src folder in eclipse
i.
Select the folder
and export as jar file, save as ‘otaclient.jar’
Add these two jar files (‘com4j.jar’
and ‘otaclient.jar’) and you are good to go with ALM-integrated selenium run.