It's all about the answers!

Ask a question

Associate testscript with testcase using RQMUrlUtility


Brandon Ross (4131) | asked Feb 18 '11, 11:32 a.m.
We are uploading test cases and test scripts separately however, I cannot seem to create that relationship between the two in my XML files.

In my testcase XML file I currently have this:

<testscript href="URLtoTestScript" />

am I using the wrong tags or keywords?

I can provide more information if any is needed.

11 answers



permanent link
Kurtis Martin (1.4k11) | answered Feb 18 '11, 1:29 p.m.
JAZZ DEVELOPER
You need to make sure you scope that element to the qm namespace. If you do a get on an existing test case you will see it's script reference is scoped. The returned XML provides a name space shortcut, but RQM doesn't guarantee the shortcut wouldn't change. Instead of the shortcut, you can use the actually name space itself, which should never change. So do something like:

<testscript xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" href="URLtoTestScript" ...

permanent link
Brandon Ross (4131) | answered Feb 18 '11, 1:37 p.m.
Thank you for the reply, could you post to me what that example was you had with the Disable HTML in this post checked? it converted it to an HTML tag.

This is my full call without the URL taken out
<testscript href="https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Brandon%20Test%20Project/testscript/tscript12980472468291" />

permanent link
Kurtis Martin (1.4k11) | answered Feb 18 '11, 1:46 p.m.
JAZZ DEVELOPER
<testscript xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" href="https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Brandon%20Test%20Project/testscript/tscript12980472468291" />

permanent link
Brandon Ross (4131) | answered Feb 18 '11, 1:53 p.m.
Thank you for your reply. I still seem to be doing something wrong I'll attach my XML for my testscript and testcase

We have a script generating these, the URLs and IDs match correctly I just couldn't find two that matched quickly in my folders, but we could assume these had matching IDs

Test Case:
<?xml version="1.0" encoding="UTF-8" ?>
- <testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
<title xmlns="http://purl.org/dc/elements/1.1/">Verify User selection of Filing Credentials queue</title>
<description xmlns="http://purl.org/dc/elements/1.1/" />
<updated xmlns="http://jazz.net/xmlns/alm/v0.1/">2008-08-26T13:27:21.822Z</updated>
<state xmlns="http://jazz.net/xmlns/alm/v0.1/">com.ibm.rqm.planning.common.new</state>
<creator xmlns="http://purl.org/dc/elements/1.1/">admin</creator>
<category term="Function" value="Testing adding function category" />
<category term="Theme" value="Initiation" />
<owner xmlns="http://jazz.net/xmlns/alm/v0.1/">unassigned</owner>
<regressionTest>false</regressionTest>
- <com.ibm.rqm.planning.editor.section.testCasePreCondition xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TC-PRE-COND-TITLE">
- <div xmlns="http://www.w3.org/1999/xhtml">
<br />
</div>
</com.ibm.rqm.planning.editor.section.testCasePreCondition>
<weight>25</weight>
<testscript xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" href="https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Brandon%20Test%20Project/testscript/tscript129805470982412" />
</testcase>


Test Script:
<?xml version="1.0" encoding="UTF-8" ?>
- <testscript xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
- <steps>
- <step xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" type="reporting">
<name>Verify the system shall display the name of this screen as "Transfer of Claim Job Result" or "Payment Change Job Result" or "Post Petition Transaction Job Result" or "Proof of Claim Job Result" or "Trustee Payment Job Results" or "Discharge Audit Job Results".</name>
<title>Verify the system shall display the name of this screen as "Transfer of Claim Job Result" or "Payment Change Job Result" or "Post Petition Transaction Job Result" or "Proof of Claim Job Result" or "Trustee Payment Job Results" or "Discharge Audit Job Results".</title>
- <description>
<div xmlns="http://www.w3.org/1999/xhtml">Verify the system shall display the name of this screen as Transfer of Claim Job Result or Payment Change Job Result or Post Petition Transaction Job Result or Proof of Claim Job Result or Trustee Payment Job Results or Discharge Audit Job Results.</div>
</description>
<expectedResult />
</step>
- <step xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" type="reporting">
<name>Verify the system displays the "All Active Jobs" Section</name>
<title>Verify the system displays the "All Active Jobs" Section</title>
- <description>
<div xmlns="http://www.w3.org/1999/xhtml">Verify the system displays the "All Active Jobs" Section</div>
</description>
<expectedResult />
</step>
</steps>
<title xmlns="http://purl.org/dc/elements/1.1/">Verify User selection of Filing Credentials queue</title>
<description xmlns="http://purl.org/dc/elements/1.1/">Verify User selection of Filing Credentials queue</description>
<type xmlns="http://purl.org/dc/elements/1.1/">manual</type>
<updated xmlns="http://purl.org/dc/elements/1.1/">2008-08-21T20:42:08.812Z</updated>
<state xmlns="http://purl.org/dc/elements/1.1/">com.ibm.rqm.planning.common.new</state>
<authorid xmlns="http://purl.org/dc/elements/1.1/">Admin</authorid>
<ownerid xmlns="http://purl.org/dc/elements/1.1/">admin</ownerid>
<testcase href="https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Brandon%20Test%20Project/testcase/tscript129804765392712" />
<tags xmlns="http://purl.org/dc/elements/1.1/">Initiation</tags>
</testscript>


I upload my test script first and then my test case.

I appreciate any help you or anyone may be able to provide.

permanent link
Kurtis Martin (1.4k11) | answered Feb 18 '11, 2:02 p.m.
JAZZ DEVELOPER
hmm. does the Test Case PUT work other than the linkage? So if you modified the weight, in that same PUT would it work?

The only other thing I can think of is make sure you can do a get with the URL you are using for the test script "..../testscript/tscript129805470982412". If you created the test script with POST instead of PUT, the it wouldn't have the external id "/tscript129805470982412". For that to be preserved you need to do a PUT when you create the test script.

permanent link
Brandon Ross (4131) | answered Feb 18 '11, 2:08 p.m.
Our PUT works correctly. We have a function that is doing a get for IDs I can look into it further to see exactly what we're doing.

Basically, we parse an entire excel file and PUT the needed information. I can change things like weights, themes, categories etc. Our project is flooded with test cases and test scripts.

I am also having issues with test suites I attempt to put not showing up in our project, but I assumed I'd do one issue at a time.

permanent link
Brandon Ross (4131) | answered Feb 18 '11, 2:15 p.m.
We just updated to the 2.0.1.1 iFix1 yesterday. Prior to this in December was the last time we attempted to upload test cases and scripts. Is there possibly something changed in the update causing this?

permanent link
Kurtis Martin (1.4k11) | answered Feb 18 '11, 2:21 p.m.
JAZZ DEVELOPER
I don't think anything would have changed for this. I actually tried it on 2.0.1.1 iFix1 but I was using the FireFox Poster Plugin instead of RQMUrlUtility. Sorry, I could help more. Be sure to also check your rqm log file to see if any error was emitted.

permanent link
Brandon Ross (4131) | answered Feb 18 '11, 2:22 p.m.
Thank you for all of your help and ideas. Not quite sure whats going on here but will update if I figure anything out.

permanent link
Brandon Ross (4131) | answered Feb 18 '11, 2:32 p.m.
Would manually creating that relationship in RQM and then making a GET call shed some light on what I am possibly doing wrong with the XML?

Your answer


Register or to post 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.