Thanks for your help Gantcho.
I've never used the Xpath postprocessor (because I don't know xpath).
I'm going to send my file to your private email ...

 

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 12 octobre 2006 14:07
À : jmeter-user@jakarta.apache.org
Objet : RE: Problem with regular expression for extractor

I'd use the XPath postprocessor to do what you want done. Only thing is
you'll need to use 2 postprocessors if you want to extract 2 values, etc.
Additional problem with RE is that this particular regex will extract all
<options> and not only the ones that are in "cell_ListBoxNormal". Of course
that may not be a problem for you. I can help you with the exact xpath if
you send me the whole page source.
Cheers!
Gantcho

-----Original Message-----
From: Bruno Charloup [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 12, 2006 1:48 PM
To: 'JMeter Users List'
Subject: RE: Problem with regular expression for extractor


Seb,
Thanks for your answer, but it doesn't solve completely my problem : To find
the right <option value=1> on my page, I must indicate the part of the html
code containing the name of the select : thus, my regular expression should
be on two lines (see html code from my first e-mail)

I saw aditionnal information on the page
http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html, but
(as I'm not  good in english language) i don't understand how to proceed for
multiline string ...

Thanks again.


-----Message d'origine-----
De : sebb [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 12 octobre 2006 12:16
À : JMeter Users List
Objet : Re: Problem with regular expression for extractor

Use the RE Post-Processor

http://jakarta.apache.org/jmeter/usermanual/component_reference.html

with an RE of the form:

<option value="1">(\d+)\s+ |(\d+)\s+|(\S+)\s+|(.+?)|(.+?)</option>

The values will then be in the variables:

refname_g1 = id
...
refname_g5 = status


On 12/10/06, Bruno Charloup <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm trying to extract information from part of one page, but I can't
> succeed in it.
>
> The part of the my page is as follow :
>    <select class="cell_ListboxNormal" style="width:680px" size="12" 
> name="lstBox" id="lstBox"  onchange="" >
>     <option value="1">1     |1       |01/04/1995  |1995 Patent Act.
> |Applicable</option>
>     <option value="2">9     |2       |14/10/2006  |Essai test automatique
> |Not Used Yet</option>
>    </select>
>
> I want to extract each values contained in the first option in my
> select "cell_ListBoxNormal", in other word, I need to store, for 
> example
> 1 in ${id},
> 1 in ${pos},
> 01/04/1995 in ${date},
> 1995 Patent Act. in ${description} and Applicable in ${status}
>
> The string to be considered is a multiline string (from <select ...>
> to the first </option>) Information are separated by a non fixed 
> number of space and a |.
>
>
> Thanks in advance for any advice, ideas ...
>
>
>
> --
> Bruno CHARLOUP,
>
>
> ---------------------------------------------------------------------
> 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]
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------


---------------------------------------------------------------------
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