Discussion:
Need help in identifying actual time, not aggregate
Pravesh Shrivastava
2018-11-19 08:51:16 UTC
Permalink
Hi,

I have a scenarios where I need some help to setup this:

I am submitting one order through application. After submitting the order
the status is "Submitted". I keep of refreshing the page until status turns
to "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
to identify exact time taken.
--
Regards
Pravesh Shrivastava
Deepak Shetty
2018-11-19 18:59:11 UTC
Permalink
Whats your test plan and what makes you say its average ? The transaction
controller generates the sum of its children, not average

regards
deepak

On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
Post by Pravesh Shrivastava
Hi,
I am submitting one order through application. After submitting the order
the status is "Submitted". I keep of refreshing the page until status turns
to "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
to identify exact time taken.
--
Regards
Pravesh Shrivastava
Pravesh Shrivastava
2018-11-20 02:56:11 UTC
Permalink
You are right Deepak. But I don't want to extract average response time.
Let me give details below:

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
Successful.
Post by Deepak Shetty
Whats your test plan and what makes you say its average ? The transaction
controller generates the sum of its children, not average
regards
deepak
On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
Post by Pravesh Shrivastava
Hi,
I am submitting one order through application. After submitting the order
the status is "Submitted". I keep of refreshing the page until status
turns
Post by Pravesh Shrivastava
to "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 Shrivastava
to identify exact time taken.
--
Regards
Pravesh Shrivastava
Deepak Shetty
2018-11-20 17:21:33 UTC
Permalink
Hi
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 Shrivastava
I 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 Shrivastava
You 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
Successful.
Post by Deepak Shetty
Whats your test plan and what makes you say its average ? The transaction
controller generates the sum of its children, not average
regards
deepak
On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
Post by Pravesh Shrivastava
Hi,
I am submitting one order through application. After submitting the
order
Post by Deepak Shetty
Post by Pravesh Shrivastava
the status is "Submitted". I keep of refreshing the page until status
turns
Post by Pravesh Shrivastava
to "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 Shrivastava
to identify exact time taken.
--
Regards
Pravesh Shrivastava
Pravesh Shrivastava
2018-11-25 14:08:49 UTC
Permalink
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 Shetty
Hi
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 Shrivastava
I 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 Shrivastava
You 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 Shrivastava
Successful.
Post by Deepak Shetty
Whats your test plan and what makes you say its average ? The
transaction
Post by Pravesh Shrivastava
Post by Deepak Shetty
controller generates the sum of its children, not average
regards
deepak
On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
Post by Pravesh Shrivastava
Hi,
I am submitting one order through application. After submitting the
order
Post by Deepak Shetty
Post by Pravesh Shrivastava
the status is "Submitted". I keep of refreshing the page until status
turns
Post by Pravesh Shrivastava
to "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 Shrivastava
to identify exact time taken.
--
Regards
Pravesh Shrivastava
Deepak Shetty
2018-11-26 14:50:41 UTC
Permalink
Post by Pravesh Shrivastava
As per my understanding, TransactionController_2 should give time like
150 ms.
Yes that should be the case. Are you sure you dont have a timer /pause as a
child of the While Controller ?(if yes then ensure that checkbox for
include timer is checked).
How are you verifying your observations that the transaction controller is
not returning the sum ?(I would uncheck generate parent sample and then
compare individual result times with the generated one )

On Sun, Nov 25, 2018 at 6:09 AM Pravesh Shrivastava <
Post by Pravesh Shrivastava
Hi Deepak, All,
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 Shetty
Hi
Pseudo Script
+Http Request (Submit Order)
+Transaction Controller
++While Controller (Condition status != Successful &&
dontWantInfiniteLoop)
Post by Deepak Shetty
+++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
Post by Deepak Shetty
duration of timer ... checkbox")
Post by Pravesh Shrivastava
I 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 Shrivastava
You are right Deepak. But I don't want to extract average response
time.
Post by Deepak Shetty
Post by Pravesh Shrivastava
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
Post by Deepak Shetty
to
Post by Pravesh Shrivastava
Successful.
Post by Deepak Shetty
Whats your test plan and what makes you say its average ? The
transaction
Post by Pravesh Shrivastava
Post by Deepak Shetty
controller generates the sum of its children, not average
regards
deepak
On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
Post by Pravesh Shrivastava
Hi,
I am submitting one order through application. After submitting the
order
Post by Deepak Shetty
Post by Pravesh Shrivastava
the status is "Submitted". I keep of refreshing the page until
status
Post by Deepak Shetty
Post by Pravesh Shrivastava
Post by Deepak Shetty
turns
Post by Pravesh Shrivastava
to "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
Post by Deepak Shetty
Post by Pravesh Shrivastava
Post by Deepak Shetty
want
Post by Pravesh Shrivastava
to identify exact time taken.
--
Regards
Pravesh Shrivastava
Loading...