run test suite from RQM execution tool
Hello,
I'm using RQM execution tool to execute my test suites, but I'm interested to create a TSER first (using REST API), set a value to a field in my test suit and then run it.
my question is - how do I retrieve my test suite, set a value to a field in it (for example: an execution variable field), create a new test suite execution record (through REST API) and then run it using RQM execution tool?
|
One answer
Hi,
if you are interested in execution variable setting while using RQM Execution Tool, this can be achieved via using option "-variables=<var1Name:var1Value,var2Name:,va3Name:var3Value> " while running the tool.
If you want to set some of the other fields of Test Suites before running the TSER then you can do so by doing a GET on the TSER, this would give you Test Suite link. Then you can do a PUT with required field data on that Test Suite.
Fox Example - GET on TSER can be done as follows -
https://<server+URL>:<portNumer>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project+alias>/suiteexecutionrecord/urn:com.ibm.rqm:suiteexecutionrecord:<suit+internal+number>
This would return the associated "testsuite" reference. Use that to do the required PUT.
More about Using REST APIs can be found here - https://jazz.net/library/article/1376.
I hope this helps.
Thanks,
Abhishek
Comments
sara chason
commented Feb 16 '17, 9:13 a.m.
is it possible to create a TSER from REST API the same way of GET update xml result and then PUT the changed xml?
so far I didn't see a test suite's execution records list when retrieving a test suite so I can add a TSER to the list and PUT my changes, so I wonder how can it be done differently.
sara chason
commented Feb 16 '17, 9:16 a.m.
and also - what is the best way to parse the xml result I get from REST API\OSLC in order to get a certain field? (I'm using Python if it matters)
Donald Nong
commented Feb 16 '17, 8:30 p.m.
For Python, you can use the builtin ElementTree library.
|
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.