Discussion:
Duration assertion not working
Prateek Dua
2018-08-29 13:53:55 UTC
Permalink
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.
Felix Schumacher
2018-08-29 19:56:33 UTC
Permalink
Post by 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: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Prateek Dua
2018-08-30 07:56:23 UTC
Permalink
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 <
Post by Felix Schumacher
Post by 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
---------------------------------------------------------------------
--
::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.
Prateek Dua
2018-08-30 09:59:23 UTC
Permalink
It worked out ,, pls ignore this.


Thanks..
Post by Prateek Dua
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
Post by Felix Schumacher
Post by 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
---------------------------------------------------------------------
--
::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.
Loading...