On 25/09/06, Stefan Adamovsky <[EMAIL PROTECTED]> wrote:
Hi there
I try to get an url given in the HTML Code. So I added a Regular Expression 
Extractor with following options:

Reference Name: logout_url

OK

Regular Expression:
"<a class="wpsToolBarLink" href='" value="(.+?)" "'  
onmouseover="hl(marker,'hps_logout')""

Does not look right - surely the URL is in the href attribute? - and
does not agree with the example you give below.

Template: $1$

OK

Match No: 1

OK

Best to provide a Default Value as well, so you can tell if the RE
failed to match.

html code
<a class="wpsToolBarLink" href='[URL]' onmouseover="hl(marker,'hps_logout')"
while [URL] is the path I want to have as Var logout_url

A possible RE to extract the URL from the above HTML is

<a class="wpsToolBarLink" href='(.+?)' onmouseover="hl(marker,'hps_logout')"

Or, if the code uses either double or single quotes:

<a class="wpsToolBarLink" href=['"](.+?)['"]
onmouseover="hl(marker,'hps_logout')"

That's [ ' " ] (but without the spaces)

In the following sample I use logout_url as Path with ${logout_url}

The Problem is that JMeter tries to send the Request to [ip]/${logout_url} (I 
can see this in view results tree) and not against the real path!


That is because the URL was not found, and you did not provide a Default Value.

I hope there are also a few german speeking people they can send me some JMeter 
instructions in German!

Vielleicht gibt es auch einige wenige deutschsprachige Nutzer von Jmeter die 
mir vielleicht ein paar deutschsprachige Informationen/Dokumentationen zukommen 
lassen koennten!


Best regards

Stefan Adamovsky

*******************************************************
Stefan Adamovsky
Testing and Integration Team

Hellmann Worldwide Logistics GmbH & Co. KG
DCC - Digital Community Center
Hafenstr. 11, 49090 Osnabrück, GERMANY

E-Mail: [EMAIL PROTECTED]
http://www.hellmann.net
*******************************************************
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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