简体   繁体   English

如何在 HP ALM 或 QC 中使用 REST API 更新结果?

[英]How to update result using REST API in HP ALM or QC?

I am trying to update the test results in QC using REST APIs.我正在尝试使用 REST API 更新 QC 中的测试结果。 First of all, is this possible?首先,这可能吗?

Now I do believe that this is possible and should be a fairly straight forward thing.现在我确实相信这是可能的,并且应该是一件相当简单的事情。 But I am not able to find the right way to do this.但我无法找到正确的方法来做到这一点。 Here is what I am doing:这是我在做什么:

  1. Run tests through Jenkins using my own automation tool.使用我自己的自动化工具通过 Jenkins 运行测试。 This tool gives me the results which I need to populate back in QC/ALM.该工具为我提供了需要在 QC/ALM 中填充的结果。

  2. Now after the entire run, I want to populate the pass/fail status in QC.现在在整个运行之后,我想在 QC 中填充通过/失败状态。 Lets say I have just one test case for simplicity.为了简单起见,可以说我只有一个测试用例。 How should I go about this?我应该怎么做?

it is indeed possible to use REST API to manipulate HP ALM entities.确实可以使用 REST API 来操作 HP ALM 实体。 For example we're using it to update execution status of test campaign run in SoapUI automatically into ALM.例如,我们使用它自动将 SoapUI 中运行的测试活动的执行状态更新到 ALM。

Did you have a look at official HP ALM REST API documentation?您是否查看过官方 HP ALM REST API 文档? You should be able to access it from inside HP ALM GUI (Help menu/Documentation library/HP ALM REST API Reference).您应该能够从 HP ALM GUI 内部访问它(帮助菜单/文档库/HP ALM REST API 参考)。 It describes the API in detail.它详细描述了 API。

You can also have a look at HP ALM forums where this issue have been asked several times already :您还可以看看HP ALM论坛,这个问题已经被问了几次已经

user3378276 I am looking in the link where you have the hyper-link "already". user3378276我在您具有“已”超链接的链接中查找。 I made a user name and password. 我输入了用户名和密码。 When I attempt a search it changes my search word. 当我尝试搜索时,它会更改我的搜索词。 For example if I enter tstLabFloderrFactory it starts the search and changes it to "teenager" and random results show up. 例如,如果我输入tstLabFloderrFactory,它将开始搜索并将其更改为“ teenager”,并显示随机结果。 I really want to remember how to change the results field in Test Lab through the AOM. 我真的很想记住如何通过AOM更改测试实验室中的结果字段。 I know it is possible because I solved this once before when I was more involved with the AOM. 我知道这是可能的,因为我在更深入地参与AOM之前就解决了这一问题。 I have forgotten a lot of the basics. 我忘记了很多基础知识。 It was not easy back in 2003. I was connecting the tstresults to tsresults, using filters and so on. 早在2003年,这并不容易。我使用过滤器等将tstresults与tsresults连接起来。
I could use a better path to the code. 我可以使用更好的代码路径。 Thanks, Kevin 谢谢,凯文

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

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