I see - no wonder the recording does not work ... perhaps this is an
attempt to fool bots - if so, it has worked ;-)

To fix this requires matching the appropriate section of the form to
extract the value.

The string you want to match is:

<option value="Person:nnnn">ITEM A</option>

This can be done with a Post-Processor Regex applied to the form sample.

Variable: VALUE (for example)
RE: <option value="(Person:\d+)">ITEM A</option>
Template: $1$
Match: 1

You can then use ${VALUE} as the value.


On 09/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> Thanks for the hint.
>
> Here is what is recorded:
> <elementProp name="" elementType="HTTPArgument">
>                <boolProp
> name="HTTPArgument.always_encode">true</boolProp>
>                <stringProp name="Argument.name">5_239</stringProp>
>                <stringProp
> name="Argument.value">Person:4165</stringProp>
>                <stringProp name="Argument.metadata">=</stringProp>
>              </elementProp>
>
> Looks like each time the page is generated the value for the item keeps
> changing, and hence I think Jmeter is not able to find.
> Is there a way I can make it use "ITEM A" which is always there instead
> of "Person: 4259" the numbers keep changing each time the page is shown.
>
>
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 09, 2007 1:09 PM
> To: JMeter Users List
> Subject: Re: Proxy Recorder Problem
>
> What parameters have been recorded for the request that is failing?
>
> On 09/11/2007, Modha Khammammettu <[EMAIL PROTECTED]> wrote:
> > This issue is taken me a lot of time and still no luck...
> >
> > Here is my select box
> > <select name="5_239" id="5_239" class="select_er"
> > smokeId="ReportedBy_Name" label="Name" onChange="if
> > (EventHandlers.valueChanged(this)==false) return false; "
> > delayOnChange="false" helpText="__UseTitle__"
> > onfocus="EventHandlers.onFocus()" onblur="EventHandlers.onBlur()">
> > <option value="" selected>&lt;none selected&gt;</option> <option
> > value="Person:4259">ITEM A</option> <option value="Person:4262">ITEM
> > B</option> <option value="Person:4261">ITEM C</option> </select>
> >
> > Jmeter only sees  "none selected"
> > But I want to choose ITEM A
> >
> > ?????
> >
> >
> > -----Original Message-----
> > From: Modha Khammammettu [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 09, 2007 10:57 AM
> > To: JMeter Users List
> > Subject: RE: Proxy Recorder Problem
> >
> > I tried with Bad Boy, exact same problem.
> > Is it that it is playing fast so that it is trying to click on the
> > element in the drop down before the values gets populated.
> > I see in BadBoy it tries to select in the dropdown and the drop down
> > has "None Selected", the test just stays in the page trying to go
> > through other steps. At this stage when I look at the dropdown ( In
> > the browser shown in Bad Boy) I see that the list has all the values I
> need.
> >
> > Any ideas how I can handle this issue.
> > Please let me know.
> >
> > -----Original Message-----
> > From: Modha Khammammettu [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 09, 2007 10:01 AM
> > To: [email protected]
> > Subject: Proxy Recorder Problem
> >
> > Hi All
> >
> > I am recording a test case using proxy recorder facility in Jmeter. I
> > have a dropdown box which I always pick a value.
> > When I run the test recorded, my test errors out because it wont set
> > the field.
> >
> > Can you please tell me how to figure out this problem.
> >
> > Thanks
> > Modha/-
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to