You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Shirish <sh...@gmail.com> on 2011/08/17 13:10:57 UTC

Reg: Issues with Check box selection on a web page

Hello Friends,

I am working on a scenario in which...

Search with wild card and system responds with a table showing all records.
Here I can select the number of records to be displayed in table i.e. 15,
30, 50 or 100 records from a drop down. Then I need to select the some
random number of records with the help of Check boxes and I need to click on
a *Generate Request* button.


On the basis of check boxes /records selected, JMeter system records the
field called as “selectedIdList” with value


“name_sort%3DLEVEL_1_PART_100%60org_name_sort%3DVISTEON%60id%3D58071%7Cname_sort%3DLEVEL_2_PART_001%60org_name_sort%3DVISTEON

%60id%3D58077%7Cname_sort%3DLEVEL_2_PART_002%60org_name_sort%3DVISTEON%60id%3D5${PortNum}%7Cname_sort%3DLEVEL_2_PART_003%60org...etc



Now my concern is to *make this selection random*. Problem is to feed the
above value *dynamically *to JMeter parameter.


Please suggest me how can I select the check boxes dynamically and how can I
feed the above generated value to JMeter.

Thanks and Regards,
Shirish G.

Re: Reg: Issues with Check box selection on a web page

Posted by Bruce Ide <fl...@gmail.com>.
You can add parameters to an httprequest with a preprocessor, such as the
BSF preprocessor. It sounds like you'd need to build that portion of the
request string manually and then add it to the parameters. I've only used
that preprocessor a couple of times and don't have the syntax memorized, but
you should be able to turn up some good examples if you google around on
"Jmeter BSF Preprocessor".

-- 
Bruce Ide
FlyingRhenquest@gmail.com

Re: Reg: Issues with Check box selection on a web page

Posted by sebb <se...@gmail.com>.
On 17 August 2011 12:10, Shirish <sh...@gmail.com> wrote:
> Hello Friends,
>
> I am working on a scenario in which...
>
> Search with wild card and system responds with a table showing all records.
> Here I can select the number of records to be displayed in table i.e. 15,
> 30, 50 or 100 records from a drop down. Then I need to select the some
> random number of records with the help of Check boxes and I need to click on
> a *Generate Request* button.
>
>
> On the basis of check boxes /records selected, JMeter system records the
> field called as “selectedIdList” with value
>
>
> “name_sort%3DLEVEL_1_PART_100%60org_name_sort%3DVISTEON%60id%3D58071%7Cname_sort%3DLEVEL_2_PART_001%60org_name_sort%3DVISTEON
>
> %60id%3D58077%7Cname_sort%3DLEVEL_2_PART_002%60org_name_sort%3DVISTEON%60id%3D5${PortNum}%7Cname_sort%3DLEVEL_2_PART_003%60org...etc
>
>
>
> Now my concern is to *make this selection random*. Problem is to feed the
> above value *dynamically *to JMeter parameter.
>
>
> Please suggest me how can I select the check boxes dynamically and how can I
> feed the above generated value to JMeter.

Use the Regex Post Processor to capture a random instance of the
“selectedIdList” values in a variable.

Then use the variable in the next request.

> Thanks and Regards,
> Shirish G.
>

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