Fetch test case by Catetgory (@term and @value) filter.
Hi,
i am working on automation where i need to fetch all test cases based on specific category value.
i have found some link but that seems not working as expected.
i have used
https://<Resource url>/testcase?fields=feed/entry/content/testcase/category[@term="Progression/Regression" and "Regression"])
above url returning XML Representation but include all category where i am looking for test cases only belongs to 'Regression'.
Here is the url which i am referring https://jazz.net/wiki/bin/view/Main/RqmApi#FieldsExamples
PFB XML Representation.
</content>
<entry>
<ns2:testcase xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns21="http://www.w3.org/1999/XSL/Transform" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/terms/" xmlns:ns7="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1">
<ns2:projectArea href="https://sdp.web.att.com/fa1qm1/resource/itemOid/com.ibm.team.process.ProjectArea/lxKOUI77EeaMm9uRfXkFdQ" alias="Corporate_Operations_QM_20.19" />
<ns3:identifier>xxx</ns3:identifier>
<ns2:webId>126882</ns2:webId>
<ns3:title>293756-IST-TWS-18</ns3:title>
<ns3:description />
<ns2:locked>false</ns2:locked>
<ns2:weight>100</ns2:weight>
<ns2:suspect>false</ns2:suspect>
<ns2:category term="Progression/Regression" value="Progression" />
<ns2:category term="Application" value="TWS:22741" />
<ns2:category term="Test Phase" value="Integrated Systems Test (IST)" />
<ns2:variables />
<ns2:scriptStepCount>1</ns2:scriptStepCount>
<ns2:customAttributes>
<ns2:customAttribute type="SMALL_STRING" required="false">
<ns2:identifier>Migration_IDDO_NOT_EDIT_</ns2:identifier>
<ns2:name>Migration ID (DO NOT EDIT)</ns2:name>
<ns2:value>1787808</ns2:value>
<ns2:description />
</ns2:customAttribute>
<ns2:customAttribute type="MEDIUM_STRING" required="false">
<ns2:identifier>External_Sync_Area_DO_NOT_EDIT</ns2:identifier>
<ns2:name>External Sync Area (DO NOT EDIT)</ns2:name>
<ns2:value>Releases_2016_Sep_thru_Dec</ns2:value>
<ns2:description />
</ns2:customAttribute>
</ns2:customAttributes>
<com.ibm.rqm.planning.editor.section.caseTestDescription xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TC-TEST-DESCRIPTION-TITLE">
<div xmlns="http://www.w3.org/1999/xhtml">
<html>
<body>
<div align="left">Verify new month end rates query runs correctly and display new rates on website</div>
</body>
</html>
</div>
</com.ibm.rqm.planning.editor.section.caseTestDescription>
<com.ibm.rqm.planning.editor.section.dynamicSection_1458098953361 xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="Mobile Device Testing">
<div xmlns="http://www.w3.org/1999/xhtml">
<p dir="ltr">
<strong>
<span style="color:red;">
<span style="font-family:Arial, Helvetica, sans-serif">
<span style="font-size:9.0pt;">Need to conduct Mobile Device Testing?</span>
</span>
</span>
</strong>
</p>
<p dir="ltr">
<span style="color:#222222;">
<span style="font-family:Arial, Helvetica, sans-serif">
<span style="font-size:9.0pt;">Mobile Testing Ecosystem (MTaaS) is cloud platform-as-a-Service (PaaS) that provides fully-automated repeatable, reliable testing framework to test the functionality, usability and performance of mobile applications across a complete set of mobile devices, O/S and networks. MTaaS gives the best option for your testing needs, providing flexibility and robustness at the same time.</span>
</span>
</span>
</p>
<p dir="ltr">
<a href="http://intranet.att.com/itmcoe/meta_test.cfm" target="_blank">Click here to go to MTaaS website</a>
</p>
<p dir="ltr"> </p>
</div>
</com.ibm.rqm.planning.editor.section.dynamicSection_1458098953361>
<com.ibm.rqm.planning.editor.section.caseTestPreparation xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TC-TEST-PREP-TITLE">
<div xmlns="http://www.w3.org/1999/xhtml" />
</com.ibm.rqm.planning.editor.section.caseTestPreparation>
<com.ibm.rqm.planning.editor.section.testCaseNotes xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TC-NOTES-TITLE">
<div xmlns="http://www.w3.org/1999/xhtml">Category : | Execution Status : Passed | Functional Area : | Interface : | Requirement # : 293756.BR7 | Application : TWS</div>
</com.ibm.rqm.planning.editor.section.testCaseNotes>
</ns2:testcase>
</content>
</entry>
Kindly guide me. Thanks
|
One answer
Sunil Dubey
You can use strictFields=true to have the API return an error code if the filter is invalid
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.