You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ray Trejo <ra...@rackspace.com> on 2010/09/24 17:17:06 UTC

want a 400 response to pass

Hi,

I create a new user thru my API.  I then attempt to add the same user again.  I receive a 400 response code from the API, which is by design.  Jmeter displays this as a failure.  I added a response assertion which has response code matches 400, but Jmeter fails the request before it executes the response assertion.

I would like Jmeter to hit the response assertion of 400 and not fail the request.

Any ideas?

Ray



-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Friday, September 24, 2010 10:11 AM
To: JMeter Users List
Subject: Re: Create random variable then use same variable

On 24 September 2010 15:56, sprozzy <da...@jhc.co.uk> wrote:
>
> Hi, I am currently working on creating a randon variable (Stock$).  When the
> variable is first created I then want to use the same variable throughout
> the script.
>
> How is this possible.

Just refer to the variable by name, i.e. ${Stock$}

> Many thanks
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Create-random-variable-then-use-same-variable-tp2852755p2852755.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace.
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at abuse@rackspace.com, and delete the original message.
Your cooperation is appreciated.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: want a 400 response to pass

Posted by sebb <se...@gmail.com>.
On 24 September 2010 16:17, Ray Trejo <ra...@rackspace.com> wrote:
> Hi,
>
> I create a new user thru my API.  I then attempt to add the same user again.  I receive a 400 response code from the API, which is by design.  Jmeter displays this as a failure.  I added a response assertion which has response code matches 400, but Jmeter fails the request before it executes the response assertion.
>
> I would like Jmeter to hit the response assertion of 400 and not fail the request.
>
> Any ideas?

Use the Response Assertion / Ignore Status checkbox

BTW, please start a new thread when asking a new question.
It's confusing to see irrelevant responses to different question as
part of the posting (so I've removed them here)

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org