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

How to request a test case execution

 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);



 

0 votes

Comments

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

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.

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.




One answer

Permanent link

 Hi Raphael, 



Thanks,
Karthik

0 votes

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
× 12,023

Question asked: Jun 18 '21, 4:51 p.m.

Question was seen: 1,271 times

Last updated: Jun 23 '21, 3:18 a.m.

Confirmation Cancel Confirm