Duration assertion not working

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Duration assertion not working

prateekgommt
I have simple added Duration assertion in this hierarchy.. Test Plan ->
Thread group-> Req 1 -> Duration assertion -> Assertion Results -> View
Results Tree. And have configured value for Duration Assertion equal to
5000 for Main Sample only.

But on running the test, Duration assertion is not working on request i.e.
Assertion not validating request per the value set in assertion.

'Assertion Results'Listener only shows request name in its output.  While
same thing is working for Size Assertion.

--


::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.
Reply | Threaded
Open this post in threaded view
|

Re: Duration assertion not working

Felix Schumacher


Am 29.08.2018 um 15:53 schrieb Prateek Dua:

> I have simple added Duration assertion in this hierarchy.. Test Plan ->
> Thread group-> Req 1 -> Duration assertion -> Assertion Results -> View
> Results Tree. And have configured value for Duration Assertion equal to
> 5000 for Main Sample only.
>
> But on running the test, Duration assertion is not working on request i.e.
> Assertion not validating request per the value set in assertion.
>
> 'Assertion Results'Listener only shows request name in its output.  While
> same thing is working for Size Assertion.
I can't reproduce your problem or understand it not correctly.

How long does "Req 1" take? What output do you expect in the listener
and what output do you get?

And last but not least it is always good to include OS, JDK and JMeter
version information.

Regards,
 ¬†Felix


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Duration assertion not working

prateekgommt
Hey Felix,

pls find response to asked qus. *Case --I want to validate my Http request
against Duration Assertion *

Req 1 takes 7000 ms to get served. I expect Duration Assertion Listener to
fail the test as defined benchmark of 5000 ms is not met. In my case, req
is getting passed & Listener is simply displaying request name only.

OS: Mac High Sierra 10.13.6 ; JDK: java version "1.8.0_91" ; Jmeter : 4.0










On Thu, Aug 30, 2018 at 1:26 AM, Felix Schumacher <
[hidden email]> wrote:

>
>
> Am 29.08.2018 um 15:53 schrieb Prateek Dua:
>
>> I have simple added Duration assertion in this hierarchy.. Test Plan ->
>> Thread group-> Req 1 -> Duration assertion -> Assertion Results -> View
>> Results Tree. And have configured value for Duration Assertion equal to
>> 5000 for Main Sample only.
>>
>> But on running the test, Duration assertion is not working on request i.e.
>> Assertion not validating request per the value set in assertion.
>>
>> 'Assertion Results'Listener only shows request name in its output.  While
>> same thing is working for Size Assertion.
>>
> I can't reproduce your problem or understand it not correctly.
>
> How long does "Req 1" take? What output do you expect in the listener and
> what output do you get?
>
> And last but not least it is always good to include OS, JDK and JMeter
> version information.
>
> Regards,
>  Felix
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--


::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.
Reply | Threaded
Open this post in threaded view
|

Re: Duration assertion not working

prateekgommt
It worked out ,, pls ignore this.


Thanks..

On Thu, Aug 30, 2018 at 1:26 PM, Prateek Dua <[hidden email]> wrote:

> Hey Felix,
>
> pls find response to asked qus. *Case --I want to validate my Http
> request against Duration Assertion *
>
> Req 1 takes 7000 ms to get served. I expect Duration Assertion Listener to
> fail the test as defined benchmark of 5000 ms is not met. In my case, req
> is getting passed & Listener is simply displaying request name only.
>
> OS: Mac High Sierra 10.13.6 ; JDK: java version "1.8.0_91" ; Jmeter : 4.0
>
>
>
>
>
>
>
>
>
>
> On Thu, Aug 30, 2018 at 1:26 AM, Felix Schumacher <felix.schumacher@
> internetallee.de> wrote:
>
>>
>>
>> Am 29.08.2018 um 15:53 schrieb Prateek Dua:
>>
>>> I have simple added Duration assertion in this hierarchy.. Test Plan ->
>>> Thread group-> Req 1 -> Duration assertion -> Assertion Results -> View
>>> Results Tree. And have configured value for Duration Assertion equal to
>>> 5000 for Main Sample only.
>>>
>>> But on running the test, Duration assertion is not working on request
>>> i.e.
>>> Assertion not validating request per the value set in assertion.
>>>
>>> 'Assertion Results'Listener only shows request name in its output.  While
>>> same thing is working for Size Assertion.
>>>
>> I can't reproduce your problem or understand it not correctly.
>>
>> How long does "Req 1" take? What output do you expect in the listener and
>> what output do you get?
>>
>> And last but not least it is always good to include OS, JDK and JMeter
>> version information.
>>
>> Regards,
>>  Felix
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>

--


::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.