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

[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

0 votes

Comments

 Hi,


  1. Is the QM project area CM enabled (configuration management)? 
  2. What is the error in the web UI when you go to https://jazz.marium.int/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_s4FwUCC3EeqYyOE5JsM6pA/executionresult to try to get the feed?
  3. Please check the qm.log after attempting to go to the URL in step 2 and look for an error to possible provide more information than the Connection Reset 
Thanks,

Brett 



5 answers

Permanent link
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 ?
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

0 votes

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"/>


Permanent link

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

0 votes


Permanent link
Hi,

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

here is the answer :


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

0 votes


Permanent link

 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

0 votes


Permanent link

 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


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

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
× 10,938

Question asked: Sep 29 '20, 3:10 a.m.

Question was seen: 2,098 times

Last updated: Sep 30 '20, 12:33 p.m.

Confirmation Cancel Confirm