Friday, 27 December 2013

ALM Service Wrapper Part 1

The ATU ALM Service Wrapper is written in Java (using JACOB library) which is wrapped around the OTA API. For the wrapper to work correctly, the OTAClient.dll must be registered in your machine by the following approach.

 With the help of regsvr32.exe tool, we will register the OTAClient.dll

On a 32-Bit OS:

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, use the below command.


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




Press Enter Key, once it is done, you will get a Message as "DLL Register succeeded".

-----------------------------------------------------------------------------------------------------
On a 64-Bit OS:


NOTE:  Many users are experiencing issues with combination of 64bit JDK+ JACOB 32bit dll.To avoid this issue, use JDK 32bit on a 64bit machine.



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, use the below command.

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





Press Enter Key, once it is done, you will get a Message as "DLL Register succeeded".

----------------------------------------------------------------------------------------------------
Once the above operation is done, we are ready to use the ALM Service Wrapper. with just four lines of code you can update the results into QC/ALM.

Go To: ALM ServiceWrapper Part 2  - Contains Details regarding The usage along with Examples

11 comments:

  1. Hello Team,

    I am using the above procedure to integrate QC with Selenium.

    I dont see the 'localhost' folder in this path C:\Users\\AppData\Local\HP\ALM-Client.

    Could you help me on this please. Thanks.

    Warm Regards,
    Ganesh A

    ReplyDelete
    Replies
    1. Hi, i am facing the same issue. How did you resolve this?

      Delete
    2. Ganesha,
      Localhost is referring to your QC server name. It could be a dns name of your QC server

      Delete
    3. HI,

      How do i find DNS name in QC. I searchd and found a folder with all the DLL files in it but when i give that path, it shows me error.

      kindly help

      Delete
  2. Hi Team,

    I folloed your steps for configuration, later during run i am getting the below error
    "Exception in thread "main" java.lang.NoSuchFieldError: m_pDispatch"

    Could you please help me here.

    Thanks,

    Manohara.KS

    ReplyDelete
  3. 'Unable to Establish connection' Please help. getting that error

    ReplyDelete
  4. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.
    Selenium

    ReplyDelete
  5. I have registered OTAClient.dll, but after executing the code still i see register dll error in IDE console

    ReplyDelete
  6. Well explained. Got to learn new things from your Blog on Appium.Appium training in chennai

    ReplyDelete