It's all about the answers!

Ask a question

Using REST how can I link Execution Result steps to Test Suite steps?


Andrew Trobec (48712132137) | asked Jun 19 '12, 10:59 a.m.
I have created two XML files representing execution results and test suites with the following calls:

https://URL:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectArea/executionresult?abbreviate=false
https://URL:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectArea/testscript?abbreviate=false

The execution results extract test step results while test script extracts test step.  These are different objects and so they are assigned different ids and so there is no way to match them.

Is there some way to have the test step ID within the execution results output?

I am using RQM 3.0.1.1.

Thank you!

Andrew

4 answers



permanent link
Pramod Chandoria (2.1k11120) | answered Jun 20 '12, 12:38 a.m.
JAZZ DEVELOPER
Hi Andrew,
In the problem title you mentioned Testsuite whereas in description you mentioned only test script and Testcase result.

By the execution of Testscript (of course through Testcase Execution Record), Execution Result is generated.
At the time of execution whatever steps were present in the script are copied over to Result. However there after there is no relationship between steps of these two artifact. Note that script can be changed after execution, like some more steps are added, modified or removed. However such modification will not affect the result's step.
I hope it answers your question.

It would be good if you can mention the scenario where you need information in such way.

permanent link
Andrew Trobec (48712132137) | answered Jun 20 '12, 4:02 a.m.
Thank you for the answer Pramod!  You are correct, I wrote Test Suite instead of Test Script!  I apologise for any confusion!

The reason that I asked this question is because I would like to have the description and expected results formatted correctly.  By extracting execution results, all formatting is lost (it all appears on one line).

Is there a parameter that will allow me to have the same step format as the test script extraction?

Regards,

Andrew

permanent link
Pramod Chandoria (2.1k11120) | answered Jun 20 '12, 7:48 a.m.
JAZZ DEVELOPER
You said "By extracting execution results, all formatting is lost (it all appears on one line)."
Can you provide more information about it. Are you exporting result out of RQM using REST API and it loose formatting when pulled back in?

permanent link
Andrew Trobec (48712132137) | answered Jun 20 '12, 8:34 a.m.

Hello Pramod,

Here is an example using the calls details above.

Extracting a test script I get:

<ns6:description xmlns:ns6="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/">
<div:div xmlns:st1="urn://schemas-microsoft-com:office:smarttags" xmlns:v="urn://schemas-microsoft-com:vml" xmlns:o="urn://schemas-microsoft-com:office:office" xmlns:w="urn://schemas-microsoft-com:office:word" xmlns="http://www.w3.org/1999/xhtml" xmlns:div="http://www.w3.org/1999/xhtml">
Enterprise System: Web App
<br xmlns:div="http://www.w3.org/1999/xhtml" />
<br xmlns:div="http://www.w3.org/1999/xhtml" />
Action: Agent clicks on Accounts screen
<br xmlns:div="http://www.w3.org/1999/xhtml" />
<br xmlns:div="http://www.w3.org/1999/xhtml" />
Involved Interface: Accounts
</div:div>
</ns6:description>

Extracting a test result of the same step i get:

-<<ns7:description xmlns:ns7="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1">
<div:div xmlns="http://www.w3.org/1999/xhtml" xmlns:div="http://www.w3.org/1999/xhtml">
<div xmlns:st1="urn://schemas-microsoft-com:office:smarttags" xmlns:v="urn://schemas-microsoft-com:vml" xmlns:o="urn://schemas-microsoft-com:office:office" xmlns:div="http://www.w3.org/1999/xhtml" xmlns:w="urn://schemas-microsoft-com:office:word">Enterprise System: Web App Action: Agent clicks on Accounts screen Involved Interface: Accounts</div>
</div:div>
</ns7:description>

As you can see, the test result extraction has lost the formatting which is what I would like to preserve.

Have I formatted the call incorrectly?

Best regards,

Andrew

Comments
Pramod Chandoria commented Jun 20 '12, 11:05 a.m.
JAZZ DEVELOPER

Seems
element is being cleared here by the xml cleaner tool. Can you file a defect against this issue to track it here https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.newWorkItem

Your answer


Register or to post your answer.