[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"
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
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
Brett
Hi,
When I 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.", I mean that when trying to pull data from this URI 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']/*
it fails. And I was thinking the problem comes maybe from this project Area ID "_s4FwUCC3EeqYyOE5JsM6pA". Because when RPE tries to request with this URI on an other projet Area ID, generation finish with success and Test Case Results data are generated correctly. Is like within this projet Area "_s4FwUCC3EeqYyOE5JsM6pA", Test Case Results data can't be sent back... but it is just a supposition.
Thanks, but I'm not JAZZ ADMIN. I'm still requesting logs to my JAZZ ADMIN, when I get it, I'll show you what it is returned on qm.log at the time of generation (1 day ago).
I got a sort of postman VBA and when I make a GET with this URI 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']/*
here is the answer :
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<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"/><link rel="self" href="https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult?fields=feed%2Fentry%2Fcontent%2Fexecutionresult%5Btestcase%2F%40href%3D%27https%3A%2F%2Fjazz.marium.int%2Fqm%2Fservice%2Fcom.ibm.rqm.integration.service.IIntegrationService%2Fresources%2F_s4FwUCC3EeqYyOE5JsM6pA%2Ftestcase%2FSC-SITAC1-02"/>
</feed>
<feed xmlns="http://www.w3.org/2005/Atom">
<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"/><link rel="self" href="https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult?fields=feed%2Fentry%2Fcontent%2Fexecutionresult%5Btestcase%2F%40href%3D%27https%3A%2F%2Fjazz.marium.int%2Fqm%2Fservice%2Fcom.ibm.rqm.integration.service.IIntegrationService%2Fresources%2F_s4FwUCC3EeqYyOE5JsM6pA%2Ftestcase%2FSC-SITAC1-02"/>
</feed>
Is it normal to have an "href" URI with a Test Case in Field parameter different to the Test Case in URI used for request ?
Thanks again for your help ! We are on the right way to resolve this problem :)
Cédric BLANC
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
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
Comments
Brett Bohnn
Sep 29 '20, 9:50 a.m.Hi,
Brett