Unanswered question

How to capture/check response of batch processing

We have to design following script:

  • App A sends an xml file through REST to App B which puts this xml file on queue. The queue is read automatically and once picked up mainframe DB2 tables are read/updated. Once the complete xml file is processed on DB2 level, a response (xml file) is sent back to App A with the results.

My question: how do we have to handle/script the response xml not knowing when the batch processing will be finished?
Moreover we need to check inside the response xml if there are no functional error codes (I guess we can use Validation feature for this).

Wim D.
Wim D.

Wim D.

Level
0
40 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

How does this process work without NeoLoad? When App A sends the request to the REST API does the App A maintains the HTTP connection until the response is sent back?

Or is there a kind of polling mechanism where you get a kind of progress bar which indicates the percentage of completion?

Basically how your App A knows that theĀ  process is completed.

You first need to understand how it works without NeoLoad and then you will be able to figure out how to do it in NeoLoad.

Wim D.
Wim D.

Wim D.

Level
0
40 / 100
points

Nouredine,

The idea is that the user checks in App A if the response is available within x seconds and what is the content of the response. So it is not a direct progress where a status bar is shown. So App A doesn't maintain the connection waiting on the result

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

In that case you can use a while loop condition in your NeoLoad script where you send a request to check the content of the server response like a real user will do. By using a variable extractor you can jump outside of the loop when you get the expected result.