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

How to prevent HTTP 302 when running long tests from RQM Adapter?

My team is maintaining custom instance of RQM Adapter to run our tests. We are also running long tests (longer then 8h, up to 3 days) and we are facing the following issue.

When the test execution is finished, adapter is executing some PUT/POST requests to RQM and gets HTTP 302 and RedirectException. When running shorter tests and sending same data in PUT/POST we do not get that issue. Afterwards we are executing some GETs to existing items (testscript, adaptertask, executionworkitem) by their IDs (URLs) and getting empty responses. And again - in long running tests we have the issue, but in shorter tests not - in the same resources.

We suppose it is matter of keeping communication with RQM alive. Do you know how we can deal with it in our code to keep the RQM communication alive? Which class/method we should use or there is any other thing we can do?

We are using RQM 4.0.4

0 votes


Accepted answer

Permanent link
Hi Mateusz,

It sounds like the adapter's HTTP client logs out of the RQM server, possibly due to inactivity (e.g. HTTP requests).  For example, the 302 is probably a redirect to the RQM login page.  The adapter's HTTP client would need to a) make HTTP 'ping' requests to the RQM server before the HTTP client logs out of the RQM server or b) relogin into the RQM server to resolve the symptom.
Mateusz Cebula selected this answer as the correct answer

1 vote

Comments

Thanks! It looks like the solution.

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
× 11,034

Question asked: Apr 03 '14, 9:10 a.m.

Question was seen: 4,759 times

Last updated: Apr 14 '14, 8:26 a.m.

Confirmation Cancel Confirm