It's all about the answers!

Ask a question

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


Mateusz Cebula (23914) | asked Apr 03 '14, 9:10 a.m.
edited Apr 03 '14, 9:12 a.m.
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

Accepted answer


permanent link
Paul Slauenwhite (8.4k12) | answered Apr 14 '14, 8:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

Comments
Mateusz Cebula commented Apr 14 '14, 8:26 a.m.

Thanks! It looks like the solution.

Your answer


Register or 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.