C# hp alm rest缺陷链接未返回

C# hp alm rest缺陷链接未返回,c#,rest,alm,C#,Rest,Alm,我正在使用C中的RESTAPI从HP/ALM检索测试数据。我可以找到测试运行并将它们链接回测试用例,但是我很难获得链接的缺陷 我可以自己通过 http://<alm-url>/qcbin/rest/domains/<domain>/projects/<project>/defects?query={detected-in-rcyc[=<cycle id>]} 我正在使用HP/ALM 11.00 谢谢。我刚刚在ALM 11补丁19上验证过 我做了什

我正在使用C中的RESTAPI从HP/ALM检索测试数据。我可以找到测试运行并将它们链接回测试用例,但是我很难获得链接的缺陷

我可以自己通过

http://<alm-url>/qcbin/rest/domains/<domain>/projects/<project>/defects?query={detected-in-rcyc[=<cycle id>]}
我正在使用HP/ALM 11.00

谢谢。

我刚刚在ALM 11补丁19上验证过

我做了什么

创建了一个缺陷-缺陷1

创建了一个需求-需求1

创建了一个test-test1

将需求1和测试1链接到缺陷1

然后调用此REST API:

http://{your_server:your_port}/qcbin/rest/domains/{your_domain}/projects/{your_project}/defects/{your_defect_id}/defect链接

得到的答复是:

<defect-links>
<defect-link>
<comment/>
<creation-time>2016-08-09</creation-time>
<first-endpoint-id xsi:type="xs:int">1</first-endpoint-id>
<id xsi:type="xs:int">1</id>
<owner>sa</owner>
<second-endpoint-id xsi:type="xs:int">1</second-endpoint-id>
<second-endpoint-name>Test1</second-endpoint-name>
<second-endpoint-status>No Run</second-endpoint-status>
<second-endpoint-type>test</second-endpoint-type>
</defect-link>
<defect-link>
<comment/>
<creation-time>2016-08-09</creation-time>
<first-endpoint-id xsi:type="xs:int">1</first-endpoint-id>
<id xsi:type="xs:int">7</id>
<owner>sa</owner>
<second-endpoint-id xsi:type="xs:int">3</second-endpoint-id>
<second-endpoint-name>req1</second-endpoint-name>
<second-endpoint-status>Not Covered</second-endpoint-status>
<second-endpoint-type>requirement</second-endpoint-type>
</defect-link>
</defect-links>
看起来资源/缺陷链接返回所有类型的链接。 至少该结果可以由第二个端点类型属性过滤


老实说,我不知道该API在其他ALM版本/补丁上是如何工作的。

我有完全相同的问题,我正在使用HP ALM 12.01。api始终返回404 resource not found(未找到资源),即使我的缺陷有通过UIS查看的测试链接。您找到上述问题的答案了吗?嗨!我有一个非常好的东西用来做RESTAPI调用,看看这个
.../customization/entities
<defect-links>
<defect-link>
<comment/>
<creation-time>2016-08-09</creation-time>
<first-endpoint-id xsi:type="xs:int">1</first-endpoint-id>
<id xsi:type="xs:int">1</id>
<owner>sa</owner>
<second-endpoint-id xsi:type="xs:int">1</second-endpoint-id>
<second-endpoint-name>Test1</second-endpoint-name>
<second-endpoint-status>No Run</second-endpoint-status>
<second-endpoint-type>test</second-endpoint-type>
</defect-link>
<defect-link>
<comment/>
<creation-time>2016-08-09</creation-time>
<first-endpoint-id xsi:type="xs:int">1</first-endpoint-id>
<id xsi:type="xs:int">7</id>
<owner>sa</owner>
<second-endpoint-id xsi:type="xs:int">3</second-endpoint-id>
<second-endpoint-name>req1</second-endpoint-name>
<second-endpoint-status>Not Covered</second-endpoint-status>
<second-endpoint-type>requirement</second-endpoint-type>
</defect-link>
</defect-links>