Selenium Integration with QC, ALM



Hello User ,

Integrating Selenium with HP Test Management Tool : This has been one of the important requirement for all of us. We have come up with an OpenSource Project (ALM Service Wrapper)that will help in acheiving this.

The below article will guide you on how to use the ALM Service Wrapper for Integrating with HP QC/ALM.

ALM Service Wrapper, a Java API using which you can Integrate Selenium and also any other automation tool supporting Java as scripting language. Tools like IBM RFT, OpenScript from Oracle OATS etc can use this library for updating the results into HP ALM.

The HP Quality Center (QC), Application Lifecyle Management (ALM) provides an Open Test Architecture API which is a COM library that enables you to integrate external applications.

Using this API, we will be able to communicate with QC or ALM. For this, we will use JACOB (Java Com Bridge) library.

Jacob is a Java library that lets Java applications communicate with Microsoft Windows DLLs or COM libraries. It does this through the use of a custom DLL that the Jacob Java classes communicate with via JNI. The library and dll isolate the Java developer from the underlying windows libraries so that the Java developer does not have to write custom JNI code.

This Post is organized into following parts:

Go To: ALM ServiceWrapper Part 1  - Contains Details regarding Registering the DLL
Go To: ALM ServiceWrapper Part 2  - Contains Details regarding The usage along with Examples
Go To: ALM ServiceWrapper Part 3  - Contains Details regarding Upcoming Releases and Features



Download Links: Stable Version 2.0

Download the ALM Service Wrapper Project + Sample Project


LinkedIn Group:

you can join our LinkedIn group here for more collaborative discussions: ATU LinkedIn Group

Give our tools a Feedback:

 We are constantly working on several projects, we would like to have a feedback on all the tools so that we can prioritize, introduce new features, enhancing them etc. This will also help us in understanding the usage of these tools and lift us to develop further more utilities.

 Feedback page : ATU Utilities User Feedback


We love Automation; we love to keep its utilities Open Source. 
                                                                                                – Automation Testing Utilities

181 comments:

  1. Hi Piotr,

    It's almost done. The project will be available in a couple of days.

    ReplyDelete
    Replies
    1. I'm also writing ALM library, but I'm using Rest Api. Could you contact me?

      Delete
    2. Hi,

      Good to hear, I would like you to know that we are in development stage for the same using REST API too :)

      Delete
    3. Hi,
      How is the rest api part? I can see all examples are using dll. I plan to write own Java rest client for alm, but looking for some alternatives first.

      Delete
  2. wonderful, looking forward for availability of the project

    ReplyDelete
  3. Hi Nix,

    You can now download the project's first release. Download links are provided at the end of the page.

    ReplyDelete
  4. Hi,

    i tried to get this code running against a QC10 and stucking with:

    java.lang.UnsupportedClassVersionError: atu/alm/wrapper/exceptions/ALMServiceException : Unsupported major.minor version 51.0

    Googleing did not solve my problem.

    ReplyDelete
  5. Using java 1.7 solves the prvious problem.
    Now i have an other problem, where to get the testSetID?

    wrapper.updateResult(pathToTestSetFolder, testSetName, testSetID, testCaseName, result);

    ReplyDelete
  6. Hi Roland,

    The project was developed using Java 1.7, since you tried to use it using 1.6 you have faced this error "Unsupported major.minor version 51.0". We would recompile it using 1.6. :)

    How to get Test Set ID: I have added an additional info with screenshot to the above post, you can refer to it. :)

    ReplyDelete
  7. Hi Roland,

    Re-Complied with JDK 1.6, let me know if it works. you can download the new library. :)

    ReplyDelete
  8. Hi,

    where do i find the new library?

    ReplyDelete
  9. Working with java 1.7 is easyer than recompiling ;-}
    The Test Set ID in our QC10 is called "Cycle ID", if i use this, the testcase i expect is updated.
    Two more/new questions:
    -Why do i need testSetID and testCaseName as parameter for wrapper.updateResult? Both point to the same thing in my opinion.
    -is it possible to set the status and the actual result of a test step?

    ReplyDelete
  10. Hi,

    The link provided in the post points to the new download location.

    TestSet ID refers to a particular TestSet. The Testcase name is different, they do not point to same entity.

    Currently the library only updates the Test Case Result. Yes it is possible to upload the test steps and their results, this is something that is planned out for the next release.

    ReplyDelete
  11. Hi,

    do you have a scedule for this next release ;-}

    ReplyDelete
    Replies
    1. Hi Roland,

      We have launched a new version of the ALM Service Wrapper with many new features :)

      Regards AT

      Delete
  12. Currently we are working on another project (ATU Windows Handler) for handling windows dialogs using Selenium Java.

    After releasing the intial version, we would get back to ALM Service Wrapper.


    We wish to complete it as soon as possible :)

    ReplyDelete
  13. I am getting following error with "ALM Service Wrapper Project":

    Exception in thread "main" java.lang.NullPointerException
    at atu.alm.wrapper.ALMServiceWrapper.close(ALMServiceWrapper.java:127)
    at gmail_example.main(gmail_example.java:66)

    ReplyDelete
    Replies
    1. Hi Sravan,

      Could you check if you are able to connect to project ?

      Delete
    2. This comment has been removed by the author.

      Delete
    3. I am a beginner at Java.
      I think I am not able to connect to the Project.
      Anyways, now I am getting below error:

      Exception in catch block is ALM Service Wrapper Exception Details: Unable to Establish connection for the Given URL:
      Exception in thread "main" com.jacob.com.ComFailException: Invoke of: disconnectProject
      Source:
      Description: OTA server is not connected.

      at com.jacob.com.Dispatch.invokev(Native Method)
      at com.jacob.com.Dispatch.invokev(Dispatch.java:625)
      at com.jacob.com.Dispatch.callN(Dispatch.java:453)
      at com.jacob.com.Dispatch.call(Dispatch.java:529)
      at atu.alm.wrapper.classes.TDConnection.disconnect(TDConnection.java:114)
      at atu.alm.wrapper.ALMServiceWrapper.close(ALMServiceWrapper.java:127)
      at CSM_login.main(CSM_login.java:39)

      Delete
    4. Hi Sravan,

      The URL which you are using is "http://rtpalmas.rtp.netapp.com/qcbin/start_a.jsp"

      Give the input URL as "http://rtpalmas.rtp.netapp.com/qcbin/" this should connect to the ALM Server. Let me know if the problem still persist.

      Regards
      Automation Tester

      Delete
    5. Thanks, that solved the issue.
      But I have one more question, testsetID is mandatory to provide? I dont have testsetID but I gave some random number(25) and tried

      wrapper.updateResult("sra1test", "test1", 25, "TC1", StatusAs.PASSED);
      The Given Test Set Name "test1" Not Found
      But I have testset created and its present.

      Delete
    6. Hi Sravan,

      yes, Test Set ID is mandatory. you must enter a valid ID for a given TestSet, else you will get an error. if you are using ALM you can get the Test Set ID as explained in the post. if you are using QC then Cycle ID must be used for Test Set ID.

      Regards
      AT

      Delete
  14. hi i am trying to run the example but i get an exception:
    ''ALM Service Wrapper Exception Details: Please Register the OTAClient.dll with your system'' The dll is registered on my machine. I cannot figure out the problem. I even tried to find the source for the jar in order to debug further but with no success. Could you help?

    ReplyDelete
    Replies
    1. Hi Giannis,

      If the DLL is registered in the right manner, you will be connected successfully.

      Could you let me know if you have registered the DLL after copying the DLL to other drive ? or you are registering the DLL which is available in "C:\Users\\AppData\Local\HP\ALM-Client\localhost\" ?

      Delete
    2. i am registering the DLL contained in the path of another drive "D:\Users\\AppData\Local\HP\ALM-Client\localhost\" not C:

      Delete
    3. Sorry the correct path for OTAClient is this:
      "C:\Users\PI000003\AppData\Local\HP\ALM-Client\qualitycentersrv"

      Delete
    4. Hi Giannis,

      if this "C:\Users\PI000003\AppData\Local\HP\ALM-Client\qualitycentersrv" is your folder where the OTAClient.dll resides. register the dll from this location as explained in the post. you should get a success message. Upon Registering you use the example code to test.

      Regards
      AT

      Delete
    5. Hello- I am also getting the ''ALM Service Wrapper Exception Details: Please Register the OTAClient.dll with your system'' message when running. The dll was registered properly from "C:\Users\\AppData\Local\HP\ALM-Client\qualitycenter". Is there anything else I need to try?
      Thanks-
      Chuck

      Delete
    6. Hi,

      After you register the DLL, did you get the success message in CMD prompt as explained in the Post ?

      Delete
    7. yeah. It appears to register properly.

      Delete
    8. The dll must be registered successfully without which you cannot proceed further. Refer to the post and make sure you get a successful dll registration message in cmd.

      Regards
      AT

      Delete
    9. I see the exact message in your post which shows the RegSvr32 popup window and the otaclient.dll succeeded.
      It fails on the Connect call:

      ALMServiceWrapper wrapper = new ALMServiceWrapper("http://qualitycenter.com/qcbin");
      wrapper.connect("user","pw", "domain", "proj");


      Delete
    10. Hi Chuck,

      It is unclear for me to understand why the issue raises after a success dll registration. Have you tried the same procedure on other machines and see if it works ?

      We are successfully able to connect to QC/ALM with the given steps.
      If we can find any solution, I would be clarifying you on the same.

      Regards
      AT

      Delete
    11. Hi ATU ,

      I am also facing the same problem of dll registration not found. I have registered the dll file as per your steps on 64bit processor (i get popup with sucessful registration of dll file), but when i run my script i get error saying..
      "ALM Service Wrapper Exception Details: Please Register the OTAClient.dll with your system"

      Can you help me to solve these issue

      Regards
      Sujan

      Delete
    12. Hi Sujan,

      While registering the dll in 64 bit machine, which utility have you used to register? Is it RegSvr or RegAsm ??

      Delete
    13. I used regsvr32 for registering..

      line of code used to register is...
      C:\Windows>C:\SysW0W64\regsvr32.exe C:\Users>userid>AppData>qualitycenter>OTAClient.dll

      it got successfully registered..with message

      Delete
    14. Hi Sujan/any other,Has any one managed managed to Register OTAClient.dll in 64bit Windows OS and able to run Wrapper.connect() successfully. I'm also experiencing this issue, i.e. ALM Service Wrapper Exception Details: Please Register the OTAClient.dll with your system.

      Delete
    15. I am facing the same issue - dll gets registered successfully but still unable to connect, i have 64 bit windows 7. Please advise.

      Delete
    16. Hi Rajesh, Anonymous

      if your OS is 64 bit, then the OTAClient.dll must be registered from System32 folder. I have updated the ALM Service Wrapper Part 1 post which describes how to register the dll in a 64bit machine.

      Once it is registered, you can use the API to interact with QC/ALM.

      Note that, if your machine is either 32 or 64 bit OS, you should use jacob-(version)-x86.dll in your project.

      Regards
      AT

      Delete
    17. Hi AT,
      I have same issue. I have Win7 64 bit OS. And have 1.7. I was able to successfully register the OTAClient.dll and the got the success message too. I then placed the jacob-1.17-x86.dll in the root directory of my project . But when I try running the wrapper, I get the message as "Please Register the OTAClient.dll with your system". But when I try to use below code i get the error as "Can't load IA 32-bit .dll on a AMD 64-bit platform"
      System.setProperty("jacob.dll.path", "D:\\jacob-1.17-x86.dll");

      LibraryLoader.loadJacobLibrary();

      Kindly help please. Am i doing something wrong here???

      Delete
    18. And forgot to mention, the OTAClient.dll was registered using the below
      C:\Windows\System32>regsvr32.exe

      Delete
    19. Nidhish,

      Is your Java 32 bit or 64 bit ?

      Delete
    20. use JDK 32bit, this should work fine.

      #AT

      Delete
    21. Ok thanks.. will try that let you all know how it goes. I did not realize that at the end of this page there is comment saying the same :). Was in real hurry that missed to read the full comments.

      Delete
    22. That's alright !! Let us know if you face any issues.

      #AT

      Delete
    23. AT.... You guys ROCK!!! It worked :). Gave the QC URL and the statement wrapper.connect(...) got executed successfully. Will try adding test case and see how it goes..
      Thanks a lot again.

      Delete
    24. Ran couple of test cases and the status are updated correctly for test cases in QC...
      Thanks for this great utility.

      Delete
    25. Hi Automation Tester,
      Cant i get this work with JDK 64 bit. Because if i change it to 32 Bit most of the applications stop working.
      IT would be great if you can help how to solve this problem in 64 bit java.
      Thanks
      AS

      Delete
  15. Also i add the jacob dll file to the JRE library path of the installed JDK. Why do we need to place the jacob dll to root directory of the project. I use Spring MVC project so do i have a problem with that part?

    Regards,
    Giannis

    ReplyDelete
    Replies
    1. Dear Friend,

      I have preferred to put in root dir as it is easy and convenient. You can also load the DLL from any choice of your path. for that we would use the following code.

      System.setProperty("jacob.dll.path", "D:\\jacob-1.17-M2-x86.dll");
      LibraryLoader.loadJacobLibrary();


      This will load the DLL, after this you can write your further code.

      Regards
      AT

      Delete
    2. Dear Automation Tester, Could you please share the source code for ALMServiceWrapper. Thanks in advance.

      Delete
  16. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. I figured it out, it was my firewall issue. I found the ALMServiceWrapper.jar downloaded it and tried but now I am getting the following error:
      ALM Service Wrapper Exception Details: Unable to Establish connection for the Given URL

      I gave all correct parameters but still getting the same above error. Any help much appreciated

      Delete
    2. Hi Krish,

      Could you paste the URL which you are using.

      Regards
      AT

      Delete
    3. Hello AT,

      It's a same URL which I am able to connect from the browser, and I gave all parameters - username, password, domain, project correctly

      Not sure where it is throwing the error and I am unable to debug also.

      Regards
      Krish

      Delete
    4. Hi Krish,

      Do not use the entire url which you use in the browser as http:/host/qcbin/start_a.jsp

      use it till http:/host/qcbin/

      Let me know if you still face the same problem.

      Regards
      AT

      Delete
    5. This comment has been removed by the author.

      Delete
    6. Yes I have used http://server_ip:8080/qcbin only
      But still getting same error

      Delete
    7. Hi,

      The given way should work, If you are in a proxy network then add the Proxy code in your script.

      Regards
      AT

      Delete
    8. Did You manage to resolve this issue? We have similar problem.

      Delete
    9. If you are in a proxy network then add the Proxy code in your script.

      #AT

      Delete
    10. Hi ,can please let us know to write Code to by pass proxy or set proxy.

      Delete
  17. Nice Tutorial Sir .... Request u to provide selenium Testlink Integration too..
    Thanks in Advance!!

    ReplyDelete
    Replies
    1. welcome dear friend :)

      well, we would work on it.. Selenium Testlink Integration

      Regards
      AT

      Delete
  18. HI AT,

    First, Thank for the nice tutorial.

    I am using QC 10. I didn't find any OTAClient.dll in my machine. So, I tried with remaining steps. It throws exception as "Exception in thread "main" ALM Service Wrapper Exception Details: The Given Test Set Folder Path ------ not found.

    ReplyDelete
    Replies
    1. Hi,

      The OTAClient.dll can be found for qc 10 in the machine at a particular location, use the search feature to quickly locate. Once found, You need to register it with the system. Without which you cannot proceed further.

      Regards
      AT

      Delete
    2. Ya.. I found the OTAClient.dll . When I tried to execute this command "C:\Windows>regsvr32.exe C:\Program Files\HP\Quality Center Client Side\OTAClient.dll". I got the below error.

      “RegSvr32 The module some.dll failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module could not be found.”

      Delete
    3. And also I got two "OTAClient.dll" file in two paths
      1. C:\Program Files\HP\Quality Center Client Side\MERCURY INTERACTIVE\Quality Center\OTAClient.dll
      2. C:\Program Files\HP\Quality Center Client Side\\OTAClient.dll


      I tried both the path... Both throw same error.

      Delete
    4. The right dll file would be found in other directory apart from program files dir. Take a glance at the post for your reference.

      Regards
      AT

      Delete
  19. Replies
    1. Well, we haven't tested with v9.2. I expect the ATU Service Wrapper should support v9.2 as well. If there is no change in the part of the OTA API for which we have implemented in java, then you can definitely use with v9.2. if you can do it an let us know, it will be appreciable.

      Regards
      AT

      Delete
  20. Hi am working on soapui and QC integration Written the ALM library .....but geeting this error hope u can help....

    Thu Jan 30 09:14:07 EST 2014:ERROR:com.jacob.com.ComFailException: Invoke of: 52
    Source:
    Description:

    com.jacob.com.ComFailException: Invoke of: 52
    Source:
    Description:
    at com.jacob.com.Dispatch.invokev(Native Method)
    at com.jacob.com.Dispatch.invokev(Dispatch.java:890)
    at com.jacob.com.Dispatch.callN(Dispatch.java:469)
    at org.codehaus.groovy.scriptom.ActiveXObject.invokeMethod(ActiveXObject.java:486)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at Script1$_run_closure1.doCall(Script1.groovy:33)
    at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    at Script1$_run_closure1.doCall(Script1.groovy)
    at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
    at groovy.lang.Closure.call(Closure.java:405)
    at groovy.lang.Closure.call(Closure.java:399)
    at org.codehaus.groovy.scriptom.Scriptom.withMTA(Scriptom.java:147)
    at org.codehaus.groovy.scriptom.Scriptom.inApartment(Scriptom.java:197)
    at org.codehaus.groovy.scriptom.Scriptom$inApartment.call(Unknown Source)
    at Script1.run(Script1.groovy:27)
    at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96)
    at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:89)
    at com.eviware.soapui.eventhandlers.support.DefaultSoapUIScript.invoke(SourceFile:47)
    at com.eviware.soapui.eventhandlers.support.DefaultSoapUIEventHandler.invoke(SourceFile:29)
    at com.eviware.soapui.eventhandlers.support.AbstractEventHandlerMetaData.invokeHandlers(SourceFile:73)
    at com.eviware.soapui.eventhandlers.support.AbstractEventHandlerMetaData.invokeHandlers(SourceFile:49)
    at com.eviware.soapui.eventhandlers.impl.EventHandlersTestRunListener.afterRun(SourceFile:31)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.notifyAfterRun(AbstractTestCaseRunner.java:301)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:191)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:43)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:163)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    ReplyDelete
  21. Hi I am sorry Cant paste whole code here but can show you if you can send you the email.....posting some of the code line....
    def tdc = new ActiveXObject ( "TDApiOle80.TDConnection" )
    Problem arises after below line of code executes.....

    // Connect to ALM, Login with Credentials, connect to Project
    tdc.InitConnectionEx( "http://qualitycenter11.abc.com/qcbin" )


    This same script is working on my other team mates system but not on my system ......some problem with my system configuration........

    ReplyDelete
    Replies
    1. I dont think you are working with ATU Alm Service Wrapper project.

      Delete
    2. I am using groovy script with soapui....then i have ALM_Connect_Files,TDAPIClient,scriptom-all-assembly-1.6.0.....i am not using ATU ALM service wrapper project....

      Delete
    3. I have not worked with groovy. Nill knowledge about it.

      Delete
  22. I think I have a proxy issue with the connection. How do I "If you are in a proxy network then add the Proxy code in your script." :)
    Cheers

    ReplyDelete
    Replies
    1. This is how proxy is set

      System.setProperty("http.proxyHost", "your proxy name");
      System.setProperty("http.proxyPort", "your proxy port");

      This should be the first line of code.

      Regards
      AT

      Delete
  23. Hi I tried to download ATU_ALM_ServiceWrapper_2.0.jar, It redirects me to Google Drive . And does not give me any option to download it :(

    ReplyDelete
    Replies
    1. Kiran,
      From the google drive page, when you click on the zip file, you can find a download button at the right bottom side, clicking that button will allow you to download the file.

      Delete
  24. I am also facing the problem with Unable to establish the connection for the Given URL. I am using http://host:8080/qcbin/
    I have set system property for jacob and added all the jar files into class path.
    I am not using any proxy server. I am in the cliend side network.
    I think I have a problem with firewall settings If it is please provide me the steps need to follow for firewall settings

    Could you please provide me the solution.

    ReplyDelete
  25. Greetings!

    For anyone still having issues running the ALM Webservice wrapper due to a OTAClient.dll registration request on 64-Bit Windows :

    Once you have registered using System32's regsvr32 make sure that you are using the 32-Bit Java JDK as your runtime platform and not the 64-Bit one.

    ReplyDelete
    Replies
    1. I am still facing a problem. not able to connect go given url http://host:8080/qcbin/
      OTAClient.dll successfully installed and I have 32bit Java but still an issue
      Can you help on this...

      Delete
    2. Hi,

      Are you able to open the same url in the browser?

      The dll registration? Have you registered the right dll file?

      #AT

      Delete
    3. yes. I registered the right dll from the path C:\Users>userid>AppData>qualitycenter>OTAClient.dll
      and I am able to open the same url in the browser. I think I am missing something but dont know what

      Delete
    4. Hi,

      If you have installed quality center/ALM in the same machine, you will find multiple OTAClient.dll files in different folders, the registration of right dll is important

      If you have found the correct dll, open the CMD with admin privileges and then register

      Wat is the command you are using to register the dll?

      If you are running on a 64bit machine, use jdk 32 bit version.

      #AT

      Delete
  26. It's really nice blog Its helps you to find error and fix them please go through this site and make good solution of your problem.
    How To Remove Rundll Error
    Thank you
    Aalia lyon

    ReplyDelete
  27. Hi, if this is an open source project, shouldn't the files, release, etc. be hosted on GitHub, Google Code, SourceForge, or Bitbucket? Being on Google Drive sharing is less desirable for this.

    ReplyDelete
  28. This comment has been removed by the author.

    ReplyDelete
  29. Exception in thread "main" ALM Service Wrapper Exception Details: Unable to Establish connection for the Given URL: http:QCURL/qcbin/
    at atu.alm.wrapper.classes.TDConnection.initConnectionEx(TDConnection.java:48)
    at atu.alm.wrapper.ALMServiceWrapper.connectToOTA(ALMServiceWrapper.java:101)
    at atu.alm.wrapper.ALMServiceWrapper.connect(ALMServiceWrapper.java:74)

    ReplyDelete
    Replies
    1. Could you please help me on the above issues

      Delete
    2. Please check if you are in a proxy network. Add the proxy code at the beginning of your code.

      #AT

      Delete
  30. This comment has been removed by the author.

    ReplyDelete
  31. It was so nice article.I was really satisified by seeing this article and we are also giving QA online training.The QA online training is one of the best online training Institute.

    ReplyDelete
    Replies
    1. We appreciate your response :) Thank you Qa Tools !

      #AT

      Delete
  32. Hi, may i know where is the library file for ALMServiceException

    ReplyDelete
    Replies
    1. The download links are provided in the main Section of ALM Service Wrapper page.

      http://automationtestingutilities.blogspot.in/p/blog-page_11.html

      #AT

      Delete
  33. Pragati Ranjan Patra1 July 2014 at 23:34

    Hi, Since google drive is blocked in my worklocation. Can u upload "ATU ALM Service wrapper" jar somewhere else and provide link ?

    Thanks :)

    ReplyDelete
    Replies
    1. ping us @ our mail. we shall email you the library.

      #AT

      Delete
  34. Hi,

    I was able to successfully update test status following your steps. thanks for the wonderful post.

    I usually run the ANT batch file to execute the script and send results. issue I has is ANT doe snot recognize ATU service wrapper and ANT build is failing.

    Can you help me fixing the issue. I can compile an run successfully when I run this in Eclipse.

    cludeantruntime' was not set, defaulting to build.sysclasspath=last; set to fals
    e for repeatable builds
    [javac] Compiling 36 source files to C:\Users\Ubasaja\workspace\Edge framewo
    rk\build
    [javac] warning: [options] bootstrap class path not set in conjunction with
    -source 1.5
    [javac] C:\Users\Ubasaja\workspace\Edge framework\src\com\qtpselenium\base\T
    estBase.java:35: error: package com.jacob.com does not exist
    [javac] import com.jacob.com.LibraryLoader;
    [javac] ^
    [javac] C:\Users\Ubasaja\workspace\Edge framework\src\com\qtpselenium\base\T
    estBase.java:86: error: cannot find symbol
    [javac] LibraryLoader.loadJacobLibrary();
    [javac] ^
    [javac] symbol: variable LibraryLoader
    [javac] location: class TestBase
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 1 warning


    Thanks,
    Deepika.

    ReplyDelete
    Replies
    1. Hello Deepika,

      When you run with ANT, please create a folder in your project called "lib" (It is the naming convention followed), give this to the classpath attribute in your ANT file javac command,

      #AT

      Delete
  35. Hey guys,
    I am wondering if you can help me with these two issues:

    1) I am trying to update the results from Selenium into HP ALM and I am facing a problem when I try to launch the tests.
    I am using JUnit and even if the test should fail (ex: wrong username or wrong password tapped) , JUnit sees it as a passed test. (it fails only if it can’t find the url)
    How can I retrieve the good results that Selenium gives? Is there a way that I can access Selenium classes/ methods in order to get the good results?
    (for not using the Asserts of JUnit).
    2) I want to update the TestSteps into HP ALM too. I know that Selenium commands could be considered as TestSteps.
    Is there a possibility to get their results too ?

    Thank you very much,
    Alla

    ReplyDelete
    Replies
    1. Hello Alla,

      1) It will depend on the code that you develop, the right code should take you to expected result. Junit/TestNG , these frameworks simplify your test scripting process, using them in the right way will lead to fruitful results !
      2) Based on Assertions/Conditional logic you can set the step to PASS/FAIL etc.

      #AT

      Delete
  36. Hi,

    Can any one please share project zip . As I am not able to download it from given link.
    and it will be very great if provide step to build and config and use it .

    Thanks,

    Prashant

    ReplyDelete
    Replies
    1. Please use the provided links - they work fine. Go through the posts for examples and usage.

      #AT

      Delete
  37. It was so nice article.I was really satisified by seeing this article and we are also giving QA online training.The QA online training is one of the best QA online training institute in USA.

    ReplyDelete
  38. Hi

    I am not able to download the zip file as the dowloading quota has exceeded.
    Please share it if anyone is having this file.

    Thanks in Advance.

    ReplyDelete
  39. can we run selenium webdriver scripts from alm/qc?

    ReplyDelete
  40. I have OTAClient.dll registered successfully. But I still got error message:
    "Please Register the OTAClient.dll with your system
    at atu.alm.wrapper.ALMServiceWrapper.connectToOTA(ALMServiceWrapper.java:110)"

    Can you please help?

    ReplyDelete
  41. When I ran the script I am getting the error:"Unable to Establish connection for the Given URL: http://host/qcbin". I saw your comments. But I didnt understand the point of proxy code.
    Can you please help me with this?

    ReplyDelete
  42. This information which you provided is very much useful for us.It was very interesting and useful for QA training Persons.We also providing ccna ccnp online training institute in worldwide.

    ReplyDelete
  43. This comment has been removed by the author.

    ReplyDelete
  44. Hi,

    I am getting the following error on running the sample test:
    ALM Service Wrapper Exception Details: Invalid Username or Password
    at atu.alm.wrapper.classes.TDConnection.login(TDConnection.java:67)
    at atu.alm.wrapper.ALMServiceWrapper.connectToOTA(ALMServiceWrapper.java:102)
    at atu.alm.wrapper.ALMServiceWrapper.connect(ALMServiceWrapper.java:74)
    at com.QC1.SeleniumALMIntegrationExample.updateResults(SeleniumALMIntegrationExample.java:55)
    at com.QC1.SeleniumALMIntegrationExample.login(SeleniumALMIntegrationExample.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

    I am sure that the login credentials entered in the the test are fine.

    Please advise what could be going wrong.

    Regards,
    Vinay

    ReplyDelete
    Replies
    1. I had the same issue, and resolved... if someone looks for similar issue please check if your QC/ALM is upgraded recently. If so, follow these steps to connect properly

      Install the new ALM/QC HP Quality Center Connectivity

      Navigate to ALM/QC server Add-Ins Page (http://hp12.50/qcbin).
      Click on Tools - new window opens - click HP ALM Connectivity link.
      Click on the Download HP Quality Center Connectivity to your local drive. and run TDConnect.exe make sure you run exe "Run as administrator.”

      Delete
  45. Exception in thread "main" ALM Service Wrapper Exception Details: Unable to Establish connection for the Given URL:

    ReplyDelete
  46. Hi
    I tried in all ways to solve this issue. with proxy and what ever above comments

    could you please response ASAP, if you have solution

    Exception in thread "main" ALM Service Wrapper Exception Details: Unable to Establish connection for the Given URL:

    ReplyDelete
  47. Hi,
    Can any one please give the solution for the problem stated above?
    I am also getting execption like "Unable to Establish connection for the Given URL:".

    ReplyDelete
    Replies
    1. When i tried with Jacob 18 and ALM service wrapper 2 , found exception like
      "Unable to Establish connection for the Given URL "for the ALM link.I just changed to JACOB 17 and ALM service wrapper 1 then it was working good for QC link.

      Delete
  48. I tried with Jacob 17/18 and ALM service wrapper 1/2 with ALM11 application. Had no luck. Keep getting the error - "Unable to Establish connection for the Given URL"


    Is AT still active in this blog?

    ReplyDelete
  49. Hi AT,

    facing the same issue ALM Service Wrapper Exception Details: Unable to Establish connection for the Given URL: http://idc-vm-alm11:8080/qcbin/
    at atu.alm.wrapper.classes.TDConnection.initConnectionEx(TDConnection.java:48)
    at atu.alm.wrapper.ALMServiceWrapper.connectToOTA(ALMServiceWrapper.java:101)
    at atu.alm.wrapper.ALMServiceWrapper.connect(ALMServiceWrapper.java:74) . according to you how to set the proxy ?

    ReplyDelete
  50. Thank you very much for sharing your ideas .It was realy useful for me while implementing this concept

    ReplyDelete
  51. Hello I get below error, though i give correct test set name ..any clue?

    ALM Service Wrapper Exception Details: The Given Test Set Name "OUI" Not Found
    at atu.alm.wrapper.classes.TestSetFolder.findTestSet(TestSetFolder.java:37)
    at atu.alm.wrapper.ALMServiceWrapper.updateResult(ALMServiceWrapper.java:133)
    at com.proximus.salto.utils.ALMIntegration.updateResults(ALMIntegration.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

    ReplyDelete
  52. Hello AT, I have a query regarding Selenium-ALM Integration-adding below.My plan is to keep my script in ALM and run it from there.To do this, i need to solve the following queries
    1. Can I add one more 'Type' field in ALM while creating TestCases, If possible, how can I add that type?
    2. If we are adding any new type , how i can configure different tabs into that type like 'Test Script', 'Attachment' etc.
    Could u plz help out on this..........

    ReplyDelete
  53. Hi AT,

    I am getting exception as "Unable to Establish connection for the Given URL: http://xyz.cloudapp.net:9091/qcbin/". Could you please suggest me anything about this one. In one of your response u said to use TD connector. Please let me know how to use it(explain us in detail).

    Thanks
    Kris

    ReplyDelete
  54. Hi friends,

    we have to install TD connector from ->http://xyz.cloudapp.net:9091/qcbin/-->Tools--->HP ALM Connectivity. Now u will not get the exception "Unable to Establish connection ...".

    Thanks
    Krish

    ReplyDelete
  55. This information which you provided is very much useful for us.It was very interesting and useful for qa online training.We also providing qa online training institute in USA.

    ReplyDelete
  56. It was so nice article.I was really satisified by seeing this article and we are also giving QA online training.The QA online Training is one of the best QA online training institute in worldwide.


    ReplyDelete
  57. Does following tasks can be achieved with ALM Service Wrapper
    1. Can we clone Test set
    2. Can we pull test cases from Testplan to Test lab?

    ReplyDelete
  58. What is TD connector? Please anyone let me know, where i can download TD connector.

    ReplyDelete
  59. Hi AT,
    I want to create test as SELENIUM_TEST type using JACOB lib. in my env HP ALM is installed on a linux VM. I tried putting Jacob jar in /usr/lib but "SELENIUM_TEST" is not coming in drop down list of type, while creating new test. Please help.

    ReplyDelete
  60. Thanks for the great information in your blog Selenium Training in Chennai

    ReplyDelete
  61. guy I have identified the problem, I have added jacob dependecny in my pom file and also added jacob.jar as library. So I have removed all and just added the jars

    ReplyDelete
  62. Dear AT, I am wondering whether author of this blog is following comments?

    Could you please confirm this tool has a capability to update result as"FAILED" for current RUNID if one step is failed?

    My scenario is - CreateNewRun with - No Run Status then start executing my script and addsteps as pass or fail if one step is failed then overall result should be fail

    With this tool I am not able to do it - looks like this tool is not supporting this feature

    this below code - is creating a new testrun and marked it as passed - this is my starting point
    wrapper.createNewRun(wrapper.updateResult(TestSetFolder, TestSet, TestSetID, TestCaseName,STATUS.NO_RUN),TestCaseName,STATUS.NO_RUN)

    if (somecondition) {
    wrapper.addstep(stepname,expectedResult,ActualResult,"passed");)
    } else
    {
    wrapper.addstep(stepname,expectedResult,ActualResult,"failed");)
    }

    the above code sets my RUNID overall result as "No_RUN" even though one step is failed - creates two runID one with steps and one without steps

    Please help how to to solve this or kindly incorporate necessary changes to the tool. such a nice tool

    Thank you.

    ReplyDelete
  63. Is this tool capable to create a test case in Test Plan while adding steps to test lab test run?

    ReplyDelete

  64. Nice Blog , This is what I exactly Looking for , Keep sharing more blog .


    Google App Integration Chennai

    ReplyDelete
  65. In this article u shares an information about the hp qc. We offers a best online training for qa in usa, uk and globally with professionals@ http://www.online-training-qa.com/hp-qc-online-training/

    ReplyDelete
  66. In this article u shares an information about the hp qc. We offers a best online training for qa in usa, uk and globally with professionals@ http://www.online-training-qa.com/hp-qc-online-training/

    ReplyDelete
  67. Best qa online training with professionals having 10+ years experience providing with free demo@ online-training-qa.com

    ReplyDelete
  68. Best qa online training with professionals having 10+ years experience providing with free demo@ online-training-qa.com

    ReplyDelete
  69. Thanks for sharing this valuable information. You have posted a trust worthy blog keep sharing
    java training in chennai
    dot net training in chennai

    php training in chennai

    ReplyDelete
  70. for preparing bank exam and group exam , we are providing an online test model questions papers

    Group Exam Questions and Answers
    Bank Exam Questions and Answers

    ReplyDelete
  71. please helpme to find the testcase in alm using java how can I do that

    ReplyDelete
  72. Interest to learn Selenium Online Training by Real Time Software Testing Professional Trainer having 10+ Years of Expert.
    Selenium Training in Hyderabad

    ReplyDelete
  73. Hi all,I have connected HP ALM 12.5 with Java through wrapper class via Com4j. To get release and cycle details, I need to access ReleaseFolderFactory object. Could you please help me to find the way using Java. Any help will be highly appreciated.

    ReplyDelete
  74. Very useful article about selenium integration concepts..It is very easy to understand about selenium integration for beginners and learners..keep posting useful posts like this..
    Marine Colleges in Chennai, Nautical Science Colleges In Chennai

    ReplyDelete
  75. material handling equipments | Automated Storage & Retrieval System | Conveyors | Automated Guided Vehicles | Warehouse Management System | SCADA Supervision Software

    ReplyDelete
  76. Fantastic write-up together with excellent website, I enjoy these kinds of challenging content articles keep this specific somebody.Old Age Home in Coimbatore, Charitable Trust in Coimbatore

    ReplyDelete
  77. I have also bookmarked you for ascertaining out new posts. thanks for displaying my commentaryary in your site.Hotels in Kumbakonam,Budget Hotels in Kumbakonam

    ReplyDelete
  78. I actually loved reading your blog. It was very well authored and very simple to understand.Hotels in Kumbakonam,Kumbakonam Hotels

    ReplyDelete
  79. Nice information about the automation testing tool utilities. People willing to get the indepth knowledge in getting framework such as TestNG,jenkins,Maven and POM should get properly get selenium training in chennai |selenium training in chennai | Android training in chennai | Java training in chennai

    ReplyDelete
  80. Amazing, thanks a lot my friend, I was also siting like a your banner image when I was thrown into Selenium.
    When I started learning then I understood it has got really cool stuff.
    I can vouch webdriver has proved the best feature in Selenium framework.
    thanks a lot for taking a time to share a wonderful article.


    Selenium Training in Velachery
    Best Selenium Training Institute in Chennai
    Selenium Training Institute in Chennai


    Selenium Training with placement assistance

    ReplyDelete
  81. Selenium
    Selenium is an open source software-testing framework for Web application. It supports different populat languages like Java, Perl, PHP, C# to write domain specific scripts.
    And also Selenium providing record and playback supports to test application without learn scripting language. Selenium composes four components such as (Selenium IDE, Selenium RC, WebDriver, Selenium) a single suite for different testing purposes.
    The advantage of Selenium compare to other automation tools are it is open source, execute scripts across different browser and parallel execution
    As it is open source many of the organization are preparing this tool for automation testing.


    The scope of this tool very huge, so students, job seeker can consider this tool for thier carrier.



    For further details
    Selenium Testing training in Chennai

    ReplyDelete
  82. Thanks for such awesome blog. Your article is very easy to understand, informative and provide complete overview about software testing. Please consider including rss feed in your website, so I get your recent post on my site. Best software testing training in Chennai.

    ReplyDelete
  83. Analogica Data is the Best Test Automation Services Company in India, offer software Automation Testing Services, Automation testing is nothing but enhancing efficiency, effectiveness and the coverage of your product.

    ReplyDelete
  84. Very useful article about seo concepts..It is very easy to understand about seo for beginerrs and learners..kepp posting useful posts like this..SPA IN KUMBAKONAM, SPA IN TRICHY, SPA IN THANJAVUR

    ReplyDelete
  85. Article is giving really productive information to everyone. Well done.ITFOFINDIA,ITF OF INDIA

    ReplyDelete
  86. Analogica Data is the Best Test Automation Services Company in India, offer software Automation Testing Services, Automation testing is nothing but enhancing efficiency, effectiveness and the coverage of your product.

    ReplyDelete
  87. Thanks for Sharing this blog, it is very helpful to us. A good information to learners and each and every topic is easy to understand ...... Selenium Online Training

    ReplyDelete
  88. It's very helpful blog, thanks for sharing. Do you have similar project for HP Octane? An advanced version of ALM

    ReplyDelete
  89. Hi AT,
    I have been using your solution for some time now. It works perfectly. Now we have migrated from HP QC 10 to ALM 12.53 to a new server. Updated our code to point to new URL and when we ran the same code its its giving us the below error

    Exception in thread "main" com.jacob.com.ComFailException: Invoke of: initConnectionEx
    Source:
    Description: Failed to Get Server Settings

    Could you please let us know what are the things to look for when the HP QC is migrated to ALM 12 ?

    ReplyDelete
    Replies
    1. Hi AT,
      Just wanted to update that after installing TDConnect.exe from the machine where i am running my code solved the issue.

      Delete
  90. As a blog reviewer I have to verify all contents both in Blog spots and WordPress Blogs for uniqueness and readers friendly .I found best content in this blog as well as your article is most useful to all regular visitors .I would suggest this blog for further promotion via google. Thank you for posting such a useful article.
    Restaurants in JLT | Indian Restaurants in JLT | Restaurants in Jumeirah
    Restaurants in Jumeirah Lake Towers | Indian Restaurants in Jumeirah

    ReplyDelete
  91. Hello!
    I think that Keep posting more informative articles like these one.
    These are very good articles to visit...
    gclub casino
    goldenslot casino
    goldenslot

    ReplyDelete
  92. Hi I am getting below error..can anyone help me on this

    Exception in thread "main" java.lang.NoClassDefFoundError: com/jacob/com/ComFailException
    at com.test.TestCase.main(TestCase.java:15)
    Caused by: java.lang.ClassNotFoundException: com.jacob.com.ComFailException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 1 more

    ReplyDelete
  93. Great post! I see the programming coding and step by step execute the outputs.I gather this coding more information. It's helpful for me my friend. Also great blog here with all of the valuable information you have.Software Testing Training in Chennai

    ReplyDelete
  94. Somebody necessarily help to make severely posts I might state. This is the first time I frequented your website page and to this point? I surprised with the research you made to create this particular post extraordinary. Well done admin..
    CCNA Training in Chennai

    ReplyDelete
  95. I want to delete and update the TestSteps into HP ALM. Is there any way to do the same?

    ReplyDelete
  96. Great blog,much needed,thanks for sharing.
    IT Services

    ReplyDelete
  97. DIAC provides PLC AUTOMATION training in Noida at affordable price and in industrial environment for DEGREE DIPLOMA STUDENTS, B.TECH STUDENTS CANDIDATES. More: https://www.facebook.com/DIACTRAINING/

    ReplyDelete
  98. nice blog. thanks for sharing valuable information. It’s really good.Any one looking software courses nareshit is the best offline and online software training institute in Hyderabad and Chennai.

    ReplyDelete