Friday 17 July 2015

Selenium Web driver integration with HP-ALM

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.

4 comments:

  1. Thanks you for the awesome information in your blog on  Selenium training in Chennai

    ReplyDelete
  2. Thanks for sharing this information. It was very nice blog to learn about SAP FICO.
    http://thecreatingexperts.com/sap-fico-training-in-chennai/

    ReplyDelete

  3. Advanced Selenium Framework Training in Chennai by Vishwa

    Hi, Reach Mr.Vishwa for Best Selenium and Coded UI Training in Chennai with real time project assistance. This people will teach everything from the basics up to advanced level scenarios from frameworks.

    I learned from Mr.Vishwa and Raj they are very good automation people for Selenium Frameworks. After joined with them I learned many things and now I am writing automation scripts in own project. Vishwa 9003085882
    selenium training in chennai

    ReplyDelete