简体   繁体   English

将硒与HP ALM集成

[英]Integrating Selenium with HP ALM

We have a requirement to understand if Selenium could be integrated with HP ALM. 我们需要了解Selenium是否可以与HP ALM集成。 The requirement is to execute the Selenium scripts from ALM and to update back the results in ALM. 要求是从ALM执行Selenium脚本并在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. 从完成的研究到现在,我们已经知道使用VAPI-XP脚本XTools.Run和Ant是可能的。

We are looking for a solution for integrating Selenium with HP ALM using any Java Framework like JUnit or TestNG. 我们正在寻找一种使用JUnit或TestNG等Java框架将Selenium与HP ALM集成的解决方案。

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 关于如何将硒与QC进行整合,我们也进行了类似的讨论。请帮助

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. 我们希望根据Selenium脚本执行期间发生的异常和错误来更新HP ALM中的状态。 Any help would be much appreciated. 任何帮助将非常感激。

Thanks in advance. 提前致谢。

Solution:1 Please look in to below website. 解决方案:1请访问以下网站。 It has got all the stuffs related to updating test results to ALM Testset http://automationtestingutilities.blogspot.in/2013/12/IntegrationWithQCorALMusingALMServiceWrapperPart2.html 它具有与将测试结果更新到ALM测试集有关的所有内容http://automationtestingutilities.blogspot.in/2013/12/IntegrationWithQCorALMusingALMServiceWrapperPart2.html

Solution:2 解决方案:2

  1. Register HP ALM Client via ALM>>Help>>Addins page. 通过ALM >>帮助>>插件页面注册HP ALM Client。

  2. Download Jacob dll(Both 64,32 bit), jacob jar 下载Jacob dll(均为64,32位),jacob jar

  3. Add it to your project path.(DLL--> Just copypaste to project path), Jacob.jar-->Add it to build path. 将其添加到您的项目路径。(DLL->只需将粘贴复制到项目路径),Jacob.jar->将其添加到构建路径。

  4. Create a class 建立课程

  5. Below example code gives you some idea about how to use COM API in java+Jacob 下面的示例代码为您提供了有关如何在Java + Jacob中使用COM API的一些想法

     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 下面是JACOB等效的COM代码

Set QCConnection = CreateObject("TDApiOle80.TDConnection")

QCConnection.InitConnectionEx  sQCUrl   

QCConnection.Login sUserName, sPassword

Please have a look at Agiletestware Bumblebee . 请看看Agiletestware Bumblebee
It allows you to integrate HP ALM with Selenium and many more tools. 它使您可以将HP ALM与Selenium和更多工具集成在一起。
It also has Java annotations package to integrate your JUnit/TestNG tests with HP ALM by just adding some annotations to your Java code. 它还具有Java注释包,只需向Java代码添加一些注释,即可将JUnit / TestNG测试与HP ALM集成。

Disclaimer: I'm a developer of Agiletestware Bumblebee 免责声明:我是Agiletestware Bumblebee的开发人员

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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