简体   繁体   English

如何在HP ALM中上传测试结果

[英]How to uploading test result in HP ALM

i want to run my test script written in Java+Selenium+TestNG in HP ALM. 我想在HP ALM中运行用Java + Selenium + TestNG编写的测试脚本。 I created Vapi-XP test and batch file which run my test. 我创建了Vapi-XP测试和运行测试的批处理文件。 But if test failed it will report a pass. 但是,如果测试失败,它将报告通过。 How to uploading test result? 如何上传测试结果?

mycommand = "C:\PSelenium\RunVapi.bat"
TDOutput.Print "Starting " & mycommand
result=run(mycommand,0,true)
TDOutput.Print "Test ended with " & result

You might want to check Agiletestware Bumblebee integration platform which can help you to automate exporting results of Java+Selenium+TestNG tests into HP ALM. 您可能需要检查Agiletestware Bumblebee集成平台,该平台可以帮助您将Java + Selenium + TestNG测试的结果自动导出到HP ALM。 Check out this and this also. 看看这个这个也。

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

You have 2 Global Objects in the scope of a VAPI-XP Test: CurrentRun, CurrentTest. 在VAPI-XP测试范围内,您有2个全局对象:CurrentRun,CurrentTest。 They correspond to the Run and Test interfaces respectively. 它们分别对应于运行和测试接口 Setting the Status property on Both Objects should be the way. 应该在两个对象上都设置Status属性。

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

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