How to use RQMUrlUtility to list child testscripts of a given TestCase
I am trying to use the RQMUrlUtility (RQMUrlUtil-2.0.1.1-iFix3) to identify all Test Scripts that do not have a parent Test Case. I am not doing this through a WebInterface (rather, using a Perl script to generate the .xml and parse that into Perl constructs). I have been successful in pulling much data from RQM, but do not see where a list of "Test Scripts" associated with a given Test Case (through the test case's passed in URL) is immediately accessible. I believe this is because in the RQM GUI, one must actually "expose" the Test Scripts section to see the associated Test Script URLs.
I think what I need to do is emulate opening the "Test Scripts" section of a given Test Plan, but not sure how you direct the RQMUrlUtility to fetch that list. Has anyone tried anything like this before, or can lead me in the right direction?
Thanks.
-Ken
5 answers
If you plan to move to RQM 3.0.1.x, you could use the fields request parameter to solve the problem with one GET request (see https://jazz.net/wiki/bin/view/Main/RqmApi#fields).
Comments
Thank you both for you comments and link to the API specs. I did find the "testscript href" reference, although I was only finding one instance of it (when the Test Case has multiple scripts associated). I will have to recheck my parsing code -- might be doing something wrong there. What I could not find, however, was a "backlink" back to the parent TestCase. This would actually more directly solve my problem as I could pull each TestScript that I was interested in, and determine if it had a link back to it's parent (rather than cross reference each Test Case with its list of children).
Comments
Interesting. But in the actual RQM GUI while in a test script, there is a box (upper right) entitled "Parent Test Case(s)" that lists the parents which you can click to navigate directly to the parent test case. I would have thought that would be just another link within the testscript page?
Comments
Paul, thanks again -- very helpful. I was just wondering if there's an efficient way to run that query from the API? As it stands, it seems I need to pull the feed for all test cases, then pull a feed for each returned test case link to get another list of links (not names) of all testscripts, then pull another feed for each testscript to get it's actual name to report. Unfortunately my server is underconfigured and this report becomes slow and resource intensive. Is there a better way than what I have described? Thanks again.