DLL to Jar file conversion

Steps to get OTIClient.jar file to perform operations within QC

1) Open the HP Quality Center in IE browser and navigate to QC Login page

2) Navigate to the local path of the HP folder to get the OTAClient.dll (Mostly the Path would be “C:\Users\<UserName>\AppData\Local\HP\ALM-Client\172\OTAClient.dll”)

3) In order to work with OTA, we need to register that DLL with the system by using below command in the run prompt

regsvr32 "C:\Users\<UserName>\AppData\Local\HP\ALM-Client\172\OTAClient.dll"

4) Convert the DLL file into Jar format to support the script integration with QC.

      a. Download ‘com4j.jar file’, downloaded file will be in zip format, so please extract that zip file in some folder. 
      b. Navigate to the extracted folder in command prompt 
      c. Enter the following command

java -jar tlbimp.jar -o alm -p com.qc "C:\Users\<UserName>\AppData\Local\HP\ALM-Client\172\OTAClient.dll" 
or
java -jar tlbimp.jar -o hpqc -p com.qc "C:\Users\<UserName>\AppData\Local\HP\ALM-Client\172\OTAClient.dll"

After converting, export the java files as jar with the name “otiClient.jar” using Eclipse IDE tool

Popular posts from this blog

Selenium Webdriver Interview Questions with Answer

Selenium IDE Interview Questions with Answer