It's all about the answers!

Ask a question

RQM REST API - test scripts don't include Expected Results


Yoav Shany (2113) | asked May 21 '17, 2:59 p.m.
edited May 22 '17, 3:31 a.m.

I am trying to export test scripts from RQM using the REST API (with RQMUrlUtility), however many times the Expected Results of each step are missing from the XML. This seems to happen mostly when the expected results have an attachment.


This is the kind of URLs that I used:
https://<rqm_host>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testscript/urn:com.ibm.rqm:testscript:<id>

I also tried accessing the step directly, using /executionscriptstep/urm:com.ibm.rqm:executionscriptstep, but it didn't include the expected result.

Also, when I tried to export the test script by creating a manual execution, it also missed some of the expected results.

Am I missing something?

Thanks,
Yoav.


Comments
Yoav Shany commented May 22 '17, 3:26 a.m.

 I am using RQLUrlUtility, by the way.

3 answers



permanent link
Yoav Shany (2113) | answered Jun 12 '17, 6:40 a.m.

I found the solution.

Turns out I needed to add the query parameter richtext.maxlength=-1
Thanks to everyone who tried to help.


permanent link
Kenji Sarai (96039) | answered May 21 '17, 11:22 p.m.

Hi Yoav,

By default, testscript steps will not be displayed in Reportable REST API, unless there is a link to requirements. Try to add requirementlinkedsteps=false parameter at the end such as

https://server:port/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/executionscriptstep?requirementlinkedsteps=false


Comments
Yoav Shany commented May 22 '17, 3:26 a.m. | edited May 22 '17, 3:34 a.m.

Thanks, but it didn't change anything.


The weird thing is that sometimes the expected results for some steps are exported while for other steps they aren't, even in the same test script.

The same thing happens when I try to export using "Run offline". The rqms file contians a file called ExecutionResult.xml which contains all the steps, but only some of the steps have their expectedResult.


permanent link
Sunil Kumar R (1.1k13344) | answered May 31 '17, 1:01 a.m.
JAZZ DEVELOPER

Hi Yoav, try exporting the testscript using the REST URL with etlmode=true argument.


https://<rqm_host>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testscript/urn:com.ibm.rqm:testscript:<id>?etlmode=true

Best Regards
Sunil



Comments
Yoav Shany commented Jun 05 '17, 8:19 a.m.

 Yes, I tried this, the results were the same.

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.