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?
org.apache.commons.httpclient.methods.PostMethod httpPost = new PostMethod("https://alm.dataprev.gov.br/qm/service/com.ibm.rqm.execution.common.service.rest.ITestcaseExecutionRecordRestService/executeDTO");
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);
|
One answer
Hi Raphael,
You could try execution tool - https://jazz.net/downloads/test-management/milestones/7.0.3M6/ETM-Extras-ExecutionTool-7.0.3M6.zip
Thanks,
Karthik
|
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.
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!
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.
Have you looked at https://jazz.net/wiki/bin/view/Main/RQMTestAutomationAdapterAPI ?