It's all about the answers!

Ask a question

How to request a test case execution


raphael almeida (11) | asked Jun 18 '21, 4:51 p.m.

 Hi Fellows,


I am trying to run a simple test directly throught the RQM´s rest api.

I have tried RQMExecutionTool and it worked fine. So I decompiled it and got the following endpoint: /service/com.ibm.rqm.execution.common.service.rest.ITestcaseExecutionRecordRestService/executeDTO .
I have also set a couple of key pair as RequestEntity but still getting a 400. I am not sure what am I doing wrong.
Could you help me, please?

    Header basicHeader = new Header("User-Agent", "RQMConnectionHelper/v0.1");
    httpPost.addRequestHeader(basicHeader);
    
ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();
postParameters.add( new NameValuePair("ewiId", "50569")); //CT 63533
    postParameters.add( new NameValuePair("scriptId", "66126"));
    postParameters.add( new NameValuePair("runLastCreatedER", "true"));
    postParameters.add( new NameValuePair("state", "com.ibm.rqm.execution.common.state.passed"));
    postParameters.add( new NameValuePair("projectAreaAlias", "PORTAL CNIS"));
    postParameters.add( new NameValuePair("adapterId", "id-1623963191948823948-4012"));
    
    httpPost.setRequestEntity((RequestEntity) new StringRequestEntity(postParameters.toString(), "application/x-www-form-urlencoded", "ISO-8859-1"));
    
    int responseCode = RQMSessionManager.getInstance().executeMethod(httpPost);



 


Comments
Ralph Schoon commented Jun 19 '21, 12:54 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I am pretty sure that that API is not a simple rest API but a more complex (SOAP?) API. And as far as I have been told these APIs are considered internal APIs not to be used by customers. You can find a lot of the public APIS here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding


raphael almeida commented Jun 22 '21, 9:47 a.m.

Thank you for the answer, Ralph! 

Do you know if is possible to start a test execution throught any RQM api? Do you have an exemple?
I have search the link but the closest i think I got still nebulous.


Ralph Schoon commented Jun 22 '21, 10:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I do not.I searched https://www.google.com/search?api+to+start+test+execution+site%3Ajazz.net and did not yet find a solution. It might be impossible, but I do not think so.



Ralph Schoon commented Jun 22 '21, 10:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

One answer



permanent link
Karthik Sirimulla (1661) | answered Jun 23 '21, 3:18 a.m.

 Hi Raphael, 



Thanks,
Karthik

Your answer


Register or to post your answer.