Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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.

0 votes

Comments

 I am using RQLUrlUtility, by the way.



3 answers

Permanent link

I found the solution.

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

1 vote


Permanent link

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

0 votes

Comments

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

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


0 votes

Comments

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 480

Question asked: May 21 '17, 2:59 p.m.

Question was seen: 3,364 times

Last updated: Jun 12 '17, 6:40 a.m.

Confirmation Cancel Confirm