It's all about the answers!

Ask a question

Retrieving JUnitSeleniun type testscript using REST


Leandro trevis (37713) | asked Mar 22 '13, 11:26 a.m.
Hello

I can sucessfully retrieve the xml of the standard Manual testscripts. But using the same approach on JUnit Seleniun testscripts on RQM 4, the returnin xml contains only the ProjectArea tag like this:

<?xml version="1.0" encoding="UTF-8"?><ns2:testscript xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform"><ns2:projectArea alias="TestProjArea" href="https://homalm.serpro/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_FgJ-JWchEeKnkKr0CoyUqQ"/></ns2:testscript>

The url used is like 

https://localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProjArea/testscript/urn:com.ibm.rqm:testscript:717

What is wrong with the JUnit Selenium xml as it does not return any information?

One answer



permanent link
Hao Wan (1.5k35) | answered Mar 25 '13, 2:52 a.m.
JAZZ DEVELOPER
Hi Leandro,
from my understanding, JUnit Selenium should be a remote script
in REST API testscript is for manual script and remotescript is for other type of the scripts.
so the JUnit Selenium script url should be like
https://localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProjArea/remotescript/urn:com.ibm.rqm:remotescript:id
and you can check through

https://localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProjArea/remotescript for the JUnit Selenium script you created.

Your answer


Register or to post your answer.