jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Using CSS/jQuery Extractor
Date Tue, 05 Feb 2013 21:13:58 GMT
For  just the value 71000:

CSS/JQuery Expression : select[name=levelOne]>option[selected=selected]
Attribute : value

On Tue, Feb 5, 2013 at 10:11 PM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:

> To get 71000 - Northeast, just remove Attribute value (ie make it empty)
> instead of value
>
>
> On Tue, Feb 5, 2013 at 10:08 PM, Michael Sobczak <msobczak@yahoo.com>wrote:
>
>> I need both the selected option value, which would be "71000"
>>
>> I also need the text ("71000 - Northeast"), if possible.
>>
>>
>>
>>
>> ________________________________
>>  From: Philippe Mouawad <philippe.mouawad@gmail.com>
>> To: JMeter Users List <user@jmeter.apache.org>; Michael Sobczak <
>> msobczak@yahoo.com>
>> Sent: Tuesday, February 5, 2013 4:01 PM
>> Subject: Re: Using CSS/jQuery Extractor
>>
>> And what do you want to extract exactly ?
>>
>> On Tue, Feb 5, 2013 at 9:53 PM, Michael Sobczak <msobczak@yahoo.com>
>> wrote:
>>
>> > OK, second try:
>> >
>> > <div class="selectBox" />
>> > <label for="levelOne">Region:</label>
>> > <select name="levelOne" id="levelOne" onchange="areaMenuAction("
>> > http://server/app/?","levelOne", this, true, true);">
>> >     <option value="71000" selected="selected">71000 - Northeast</option>
>> > </select>
>> >
>> >
>> >
>> > ________________________________
>> >  From: Philippe Mouawad <p.mouawad@ubik-ingenierie.com>
>> > To: JMeter Users List <user@jmeter.apache.org>; Michael Sobczak <
>> > msobczak@yahoo.com>
>> > Sent: Tuesday, February 5, 2013 3:35 PM
>> > Subject: Re: Using CSS/jQuery Extractor
>> >
>> >
>> > Hello,
>> >
>> > What does your HTML response contain ? can you show it ?
>> >
>> > Thanks
>> >
>> >
>> > Regards
>> > Philippe
>> >
>> > Follow me on twitter
>> >
>> > UBIK-INGENIERIE on TWITTER
>> >
>> > UBIK LOAD PACK BLOG
>> >
>> >
>> >
>> > On Tue, Feb 5, 2013 at 9:32 PM, Michael Sobczak <msobczak@yahoo.com>
>> > wrote:
>> >
>> > It doesn't look like that picture came through.  Here are the settings I
>> > used (that don't work):
>> > >
>> > >
>> > >Apply to: Main sample and sub-samples
>> > >CSS/JQuery Extractor Implementation: (blank)
>> > >
>> > >Reference Name: levelOneVar
>> > >CSS/JQuery expression: select[name=levelOne]
>> > >Attribute: value
>> > >Match No.: 1
>> > >Default Value: (blank)
>> > >
>> > >
>> > >
>> > >________________________________
>> > > From: Michael Sobczak <msobczak@yahoo.com>
>> > >To: jMeter Users List <user@jmeter.apache.org>
>> > >Sent: Tuesday, February 5, 2013 3:16 PM
>> > >Subject: Using CSS/jQuery Extractor
>> > >
>> > >
>> > >
>> > >I'm trying to get the value of a select, but I keep getting the name of
>> > the jQuery parameter back ({levelOneVar}).
>> > >
>> > >I've saved the response to a file, and the select does have an option
>> > selected, and the option has a value associated with it.
>> > >
>> > >I've attached a picture of how I've set this up.  Any advice would be
>> > much appreciated.
>> > >
>> > >
>> > >Thanks,
>> > >
>> > >- Mike.
>> > >
>> > >
>> > >
>> > >---------------------------------------------------------------------
>> > >To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> > >For additional commands, e-mail: user-help@jmeter.apache.org
>> >
>> >
>> > --
>> >
>>
>>
>>
>> --
>> Cordialement.
>> Philippe Mouawad.
>>
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message