Associate testscript with testcase using RQMUrlUtility
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: am I using the wrong tags or keywords? I can provide more information if any is needed. |
11 answers
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" ... |
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 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" />
|
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: - <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. |
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. |
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. |
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?
|
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.
|
Thank you for all of your help and ideas. Not quite sure whats going on here but will update if I figure anything out.
|
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
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.