我已成功连接到HP ALM,但不知道如何获取测试实例数据。这就是网址的样子:
https://hpalm.hostname.ca/qcbin/rest/domains/domain_name/projects/project_name/test-instances
有没有办法将查询附加到URL并获取此项目下的所有测试实例?
由于
答案 0 :(得分:0)
使用' http'而不是' https'
http://hpalm.hostname.ca/qcbin/rest/domains/ {DOMAIN_NAME} /项目/ {PROJECT_NAME} /测试实例
答案 1 :(得分:0)
如果您知道测试集文件夹的名称,这些是测试集获取详细信息的顺序
获取父文件夹ID
http://{url}:{port}/qcbin/rest/domains/{domain_name}/projects/{project_name}/test-set-folders?query={name[nameOfParentFolder];parent-id[0]}&fields=id,name
获取测试集文件夹ID
http://{url}:{port}/qcbin/rest/domains/{domain_name}/projects/{project_name}/test-set-folders?query={name[nameOfTestSetFolder];parent-id[parentFolderId]}&fields=id,name
获取测试集ID
http://{url}:{port}/qcbin/rest/domains/{domain_name}/projects/{project_name}/test-sets?query={name[nameOfTestSet];test-set-folder.id[testSetFolderId]}&fields=id,name
获取testInstanceId / testcycle-id :
http://{url}:{port}/qcbin/rest/domains/{domain_name}/projects/{project_name}/test-instances?query={cycle-id[testSetId];test-id[testId]}&fields=id,name,test-config-id