jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Send an HTTP request and auto-check the first checkbox?
Date Mon, 08 Sep 2008 23:16:40 GMT
On 08/09/2008, laredotornado <laredotornado@gmail.com> wrote:
>
>  This is a great idea.  I'm having an issue and I'm sure its because I'm not
>  used to this yet.  I created a regular expression extractor under the
>  controller for which I want to extract a variable:
>
>  http://screencast.com/t/BUGqOIcK
>

Add a default value - this will show if the RE does not match.

>  but in the next controller I try and reference this variable and but the
>  variable name is literally printed out in the request
>  ("${inactiveCheckedVar}"):

Presumably the RE is subtly wrong.

Or could there be a space after the variable name?

>
>  GET
>  https://rhonti:8300/npsim/manageUsers.do?submitted=suspend&userName=name&${inactiveCheckedVar}=true
>
>  What am I doing wrong?
>
>  Thanks,  - Dave
>
>
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 08/09/2008, laredotornado <laredotornado@gmail.com> wrote:
>  >>
>  >>  Hi,
>  >>
>  >>  I'm using the latest version of JMeter on WinXP.  I have the below HTTP
>  >>  Request ...
>  >>
>  >>  http://screencast.com/t/7YhM8KGRL
>  >>
>  >>  but I have hard-coded what would be submitted if a user checked a
>  >> particular
>  >>  checkbox on the page (name=value(kstoel9914c),value=true).  Is there a
>  >> way I
>  >>  can put in my HTTP Request to auto-check the first checkbox on the page
>  >>  without hard coding a value?
>  >>
>  >
>  > There's currently no page navigation built into JMeter - you have to
>  > provide the parameters that would be sent by the browser.
>  >
>  > However, JMeter does have variables, and can extract values from HTML
>  > pages.
>  >
>  > I assume in this case that
>  >    name=value(kstoel9914c)
>  > may vary between test runs.
>  >
>  > In which case you need to use the Regular Expression Extractor to get
>  > the value of the name attribute; you can then use the variable in the
>  > HTTP Parameter name section.
>  >
>  >>  Thanks, - Dave
>  >>
>  >> --
>  >>  View this message in context:
>  >> http://www.nabble.com/Send-an-HTTP-request-and-auto-check-the-first-checkbox--tp19379228p19379228.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
>  >
>  >
>  >
>
>
> --
>  View this message in context: http://www.nabble.com/Send-an-HTTP-request-and-auto-check-the-first-checkbox--tp19379228p19381845.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


Mime
View raw message