Friday, August 15, 2008

Perform Stress Test in BPEL Console

Where Do I find it?

There is "Perform stress test" check box that you might have see in BPEL console.
Well the one that sits along side the famous manual data feeding page "Post XML Message".

Well if you have not seen it then this what I am referring to.
When the BPEL process is clicked, the "Initiate" tab opens.
Here you will see the payload as HTML form, also possible to choose XML Source.

Right there at the bottom left you will find 2 check boxes.
"Save Test" and another "Perform stress Test"

Options that come up

When you click this "Perform stress test", a few options are thrown up.
Number of concurrent threads?
Number of loops?
Constant delay between each invocation?

So if you set these values are 100, 50, 1000 respectively that would run 100 threads that loop and send 50 requests i.e. total of 5000 requests in the system.
Each thread will wait 1000 milli seconds before posting a request.

When not usable?

If you have not guessed it then here it is.
When correlation exists in the BPEL process that you want to test this approach is not suitable.
If you ask me why, it is becoz the same input is feed in the loop.
So this might not work out.

What the other option?

The other option that I have used is to use Java API and pump messages into BPEL for such testing. Mostly I will post another blog post to say how to post messages using java API.

No comments: