简体   繁体   中英

Integrating Selenium with HP ALM

We have a requirement to understand if Selenium could be integrated with HP ALM. The requirement is to execute the Selenium scripts from ALM and to update back the results in ALM. From the research done till now we have got to know that it is possible by using VAPI-XP script, XTools.Run and Ant.

We are looking for a solution for integrating Selenium with HP ALM using any Java Framework like JUnit or TestNG.

If anyone has any source of information regarding this, please let us know.

We have got one similar discussion at how to integrate selenium with QC?Please help

But the problem is when we follow the procedure told in the discussion we always get Pass result. We would like to update the status in HP ALM based on the exceptions and errors occurred during the execution of Selenium scripts. Any help would be much appreciated.

Thanks in advance.

Solution:1 Please look in to below website. It has got all the stuffs related to updating test results to ALM Testset http://automationtestingutilities.blogspot.in/2013/12/IntegrationWithQCorALMusingALMServiceWrapperPart2.html

Solution:2

  1. Register HP ALM Client via ALM>>Help>>Addins page.

  2. Download Jacob dll(Both 64,32 bit), jacob jar

  3. Add it to your project path.(DLL--> Just copypaste to project path), Jacob.jar-->Add it to build path.

  4. Create a class

  5. Below example code gives you some idea about how to use COM API in java+Jacob

     QCConnection = new ActiveXComponent("TDApiOle80.TDConnection"); Dispatch.call(QCConnection, "InitConnectionEx", sURL); // Login -User and Password Dispatch.call(QCConnection, "Login", sUser, sPassword); int iProjectsCount = Integer.parseInt(Dispatch.call(oProjects, "Count").toString()); 

Below is the JACOB equivalent COM code

Set QCConnection = CreateObject("TDApiOle80.TDConnection")

QCConnection.InitConnectionEx  sQCUrl   

QCConnection.Login sUserName, sPassword

Please have a look at Agiletestware Bumblebee .
It allows you to integrate HP ALM with Selenium and many more tools.
It also has Java annotations package to integrate your JUnit/TestNG tests with HP ALM by just adding some annotations to your Java code.

Disclaimer: I'm a developer of Agiletestware Bumblebee

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM