Hi Deepak, All,
Let me re-iterate the scenario below:
Thread Group
+Transaction Controller_1
++HTTPSampler_1 => Submit Request => PostProcessor to fetch the status.
e.g. Status = Submitted
+Transaction Controller_2
++WhileController (Until Status = Successful)
+++HTTPSampler_2 => PostProcessor (to fetch the status)
So, above HTTPSampler_2 is executing multiple times before getting Status =
Successful. Suppose it is executed 15 times and response time is 10 ms. So,
TransactionController_2 is giving Average Response Time 10 ms). But the
requirement is to identify actual time taken before turning Status =
Successful. i.e. 15*10=150 ms.
As per my understanding, TransactionController_2 should give time like 150
ms. Please help me to identify the actual time.
--
Regards
Pravesh Shrivastava
Post by Deepak ShettyHi
Pseudo Script
+Http Request (Submit Order)
+Transaction Controller
++While Controller (Condition status != Successful && dontWantInfiniteLoop)
+++Http Request (Status URL)
++++Extract status
+++Think time delay timer between checks
Why is this not working for you ? The Transaction controller will sum up
the time and you can choose whether you want to include the timer ("Include
duration of timer ... checkbox")
Post by Pravesh ShrivastavaI have to measure the exact time
Your requirements only work for a very loose definition of "exact" -
polling systems are not very exact or turn to be wasteful.
regards
deepak
On Mon, Nov 19, 2018 at 6:56 PM Pravesh Shrivastava <
Post by Pravesh ShrivastavaYou are right Deepak. But I don't want to extract average response time.
1. Submit an order
2. Extract the status (it is Submitted)
3. Keep hitting the same url until status becomes Successful
I have to measure the exact time taken in changing status from Submitted
to
Post by Pravesh ShrivastavaSuccessful.
Post by Deepak ShettyWhats your test plan and what makes you say its average ? The
transaction
Post by Pravesh ShrivastavaPost by Deepak Shettycontroller generates the sum of its children, not average
regards
deepak
On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
Post by Pravesh ShrivastavaHi,
I am submitting one order through application. After submitting the
order
Post by Deepak ShettyPost by Pravesh Shrivastavathe status is "Submitted". I keep of refreshing the page until status
turns
Post by Pravesh Shrivastavato "Successful".
So, I have to identify actual time taken by the application between
"Submitted" and "Successful".
Tried Transaction Controller, it is giving only Average time taken. I
want
Post by Pravesh Shrivastavato identify exact time taken.
--
Regards
Pravesh Shrivastava