You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bruno Charloup <bc...@jouve.fr> on 2005/11/21 11:26:28 UTC
How to disable all response assertions in the same time ?
Hi all,
i'm working on several JMeter test plans in order to produce non regression
test plan for a web application.
In order to validate that my scenario are always OK, i need, sometime, to
desactivate all the response assertion included in a test plan.
This operation can take a long time (some of my test plan include more than
100 assertions) : do you know is there is a methode to desactivate (and
afterward re activate) all the assertions in the same time ?
(i tryed to make a macro on the jmx file, opened in MS Word, but it is not
easy to identify precisely
<boolProp name="TestElement.enabled">true</boolProp>
only for
<ResponseAssertion>
).
[I use MS Word (and VBA) because I have no knowledges on Java or XSLT ...]
Thanks in advance for any help.
--
Bruno
Re: How to disable all response assertions in the same time ?
Posted by sebb <se...@gmail.com>.
There's no way to do it currently in JMeter.
Sounds like a job for XSLT, though it would be possible in Perl.
S.
On 21/11/05, Bruno Charloup <bc...@jouve.fr> wrote:
> Hi all,
> i'm working on several JMeter test plans in order to produce non regression
> test plan for a web application.
> In order to validate that my scenario are always OK, i need, sometime, to
> desactivate all the response assertion included in a test plan.
> This operation can take a long time (some of my test plan include more than
> 100 assertions) : do you know is there is a methode to desactivate (and
> afterward re activate) all the assertions in the same time ?
> (i tryed to make a macro on the jmx file, opened in MS Word, but it is not
> easy to identify precisely
>
> <boolProp name="TestElement.enabled">true</boolProp>
> only for
>
> <ResponseAssertion>
>
>
> ).
>
> [I use MS Word (and VBA) because I have no knowledges on Java or XSLT ...]
>
>
>
> Thanks in advance for any help.
>
>
>
> --
> Bruno
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to disable all response assertions in the same time ?
Posted by Richard Gaywood <ri...@gmail.com>.
On 11/21/05, Bruno Charloup <bc...@jouve.fr> wrote:
>
> After :
> My_url
> |-If Logic Controller (with the expression given by Richard :
> ${__javaScript('${assertions.on}'=='yes')})
> |- assertion response 1
> |- assertion response 2
>
> Whatever the value of the new user defined variable assertions.on (yer or
> other), assertions are ignored.
Hmmm. I haven't tried this with assertions, I use it to choose between two
versions of our software under test (with different XML formats). So I have:
ThreadGroup
| - If (version is 2.0)
|- SOAP sampler for 2.0
|- if (version is 2.5)
|- SOAP sampler for 2.5
I've just tried it with an assertion, as I suggested, and it doesn't seem to
work :o( The problem probably comes from where in the test plan the
assertion must be to associate it with the sampler. Not sure of the best way
out of this; do any of the JMeter devs have a suggestion?
RE: How to disable all response assertions in the same time ?
Posted by Bruno Charloup <bc...@jouve.fr>.
Thanks for this idea.
I can not group all the assertions because they are linked to different http
request.
Nevertheless, I try to add a If Logic controller as a child of my http
sampler, than I move my response assertion as a child of the logic
controller.
That means :
Before :
My_url
|- assertion response 1
|- assertion response 2
After :
My_url
|-If Logic Controller (with the expression given by Richard :
${__javaScript('${assertions.on}'=='yes')})
|- assertion response 1
|- assertion response 2
Whatever the value of the new user defined variable assertions.on (yer or
other), assertions are ignored.
Could you indicate me where i wrong ? Does the new hierarchy between items
is correct ?
Thanks in advance.
Bruno.
-----Message d'origine-----
De : Richard Gaywood [mailto:richardgaywood@gmail.com]
Envoyé : lundi 21 novembre 2005 12:25
À : JMeter Users List
Objet : Re: How to disable all response assertions in the same time ?
On 11/21/05, Bruno Charloup <bc...@jouve.fr> wrote:
>
> do you know is there is a methode to desactivate (and afterward re
> activate) all the assertions in the same time ?
>
I have achieved something similar by using an If Logic Controller with a
condition like:
${__javaScript('${assertions.on}'=='yes')}
Then you control ${assertions.on} with a User Defined Variables.
Putting that in 100 times might get a bit tedious for you though, unless you
can group all the Assertions together under the same If controller.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to disable all response assertions in the same time ?
Posted by Richard Gaywood <ri...@gmail.com>.
On 11/21/05, Bruno Charloup <bc...@jouve.fr> wrote:
>
> do you know is there is a methode to desactivate (and
> afterward re activate) all the assertions in the same time ?
>
I have achieved something similar by using an If Logic Controller with a
condition like:
${__javaScript('${assertions.on}'=='yes')}
Then you control ${assertions.on} with a User Defined Variables.
Putting that in 100 times might get a bit tedious for you though, unless you
can group all the Assertions together under the same If controller.