[RPE] Can not generate Test Case Result data
Hello,
I had developped an RPE Template that generate QM data with RPE Launcher.
I got a problem while trying to request data on Test Case Results with the following URI :
In the RPE log, I can see that request is send many times, but server doesn't send anything back :
"sept. 29, 2020 8:56:06 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://jazz.marium.int:443: Connection reset sept. 29, 2020 8:56:06 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute INFO: Retrying request to {s}->https://jazz.marium.int:443 sept. 29, 2020 9:01:07 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://jazz.marium.int:443: Connection reset sept. 29, 2020 9:01:07 AM org.apache.http.impl.client.DefaultRequestDirector tryExecute INFO: Retrying request to {s}->https://jazz.marium.int:443"
The strange thing is that when I use this URI on any other QM project Areas, it works.
But on the projet Area "_s4FwUCC3EeqYyOE5JsM6pA", it failes.
Does anybody have an idea of what is appening ?
Thank you in advance for your help.
Cédric BLANC
|
5 answers
Hi Brett Bohnn,
First of all, thank you very much for your reply.
1. How can I verify that CM is enable on QM project area ?
2. There are no error when I go to https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult
Here is the repond to this URI :
3. I don't have access to qm server, is there an other way to get qm.log without accessing to qm server ?
Thanks again for your help.
Cédric BLANC
Comments
Cédric BLANC
commented Sep 29 '20, 12:20 p.m.
Sorry, the screen shot wasn't send and I can't upload images. Here is the reply from feed URI request :
<feed><title type="text">executionresult ATOM feed for project area QM_FTI_CS
</title>
</id>
<link href="https://jazz.marium.int/qm/web/console/" rel="alternate"/>
<link rel="self" href="https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult"/></feed>
|
Hi,
So the test cause result feed URL is accessible for that project area and returns a feed. I thought perhaps it was not accessible because you said "The strange thing is that when I use this URI on any other QM project Areas, it works. But on the ProJet Area "_s4FwUCC3EeqYyOE5JsM6pA", it fails."
Depending on your QM version and if you are a Jazz Admin you might be able to enable repodebug to access the qm.log from a browser. Go to https://jazz.marium.int/qm/admin > Advanced Properties and look for "Enable repodebug service." Set that value to true and save. Then go to https://jazz.marium.int/qm/qm/repodebug/log/logs and download or open the qm.log. Then look for errors at sept. 29, 2020 8:56:06 AM or try the RPE template again to reproduce the problem and then look at the qm.log. The idea here is to see IF the problem is on the QM API side there is more to the error in the qm.log
Another test to determine if the problem is with QM or RPE is to try to GET REST URL https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult?fields=feed/entry/content/executionresult[testcase/@href='https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/testcase/SC-SITAC1-02#SITAC-O-PF-EE2']/* using a REST client in your browser. For example, use https://chrome.google.com/webstore/detail/talend-api-tester-free-ed/aejoelaoggembcahagimdiliamlcdmfm?hl=en for Chrome. Then add the header "Accept" with value "application/rdf+xml" in the REST client, paste in that URL and GET. Does that return XML or an error? To be sure, GET ULRs in the REST client that you say do work in the RPE template
Thanks,
Brett |
Hi,
I think the problem is the # in the test case external ID you are using.
You should open that test case in the web UI and get its ID then use urn:com.ibm.rqm:testcase:ID where ID is the ID of the test case. There is no test case with the external_id you are using because QM internally removes the #
Thanks,
Brett |
Hi Cédric ,
I want to revise my last comment. I see two problems.
1. I did not notice this but the test case result feed you ran returns nothing. So there are no test case results in that project area. Here is the feed you sent - if that is the entire feed there are no test case results
<feed><title type="text">executionresult ATOM feed for project area QM_FTI_CS
</title>
<id>https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult
</id>
<link href="https://jazz.marium.int/qm/web/console/" rel="alternate"/>
2. The # in the external_id for the test case - the issue noted in my last post. That is breaking the filter and attempting to return all test cases. You should use urn:com.ibm.rqm:testcase:ID rather than the external_id of the test case
Thanks,
Brett
|
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
Hi,
Brett