jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank_Lind...@idg.de
Subject Cascading of RegExtractors'Viren geprueft!'
Date Tue, 13 Jul 2004 14:55:26 GMT




Hi,

I need to do the following

My last Pagerequest returned a HTML something like this:
<input type="radio" name="Selektion" value="0">
</td>
</tr>
</table>
</td>
<td nowrap>
      <table align="left" valign="center" class="Attribut2" width="100%"
height="100%">
<tr>
<td align="left" valign="center" class="Attribut2">20040706EL0000079</td>
<input type="radio" name="Selektion" value="1">
</td>
</td>
</tr>
</table>
</td>
<td nowrap>
      <table align="left" valign="center" class="Attribut2" width="100%"
height="100%">
<tr>
<td align="left" valign="center" class="Attribut2">20040706EL0000080</td>
<input type="radio" name="Selektion" value="2">
</td>
</td>
</tr>
</table>
</td>
<td nowrap>
      <table align="left" valign="center" class="Attribut2" width="100%"
height="100%">
<tr>
<td align="left" valign="center" class="Attribut2">20040706EL0000081</td>
<input type="radio" name="Selektion" value="3">
</td>

On the next Request I need the value of Radiobutton Selektion.

Now I need two Regular Expressions one searching for the last selected
Radiobutton
I used this: class="Attribut2">${AntrNr_alt}<(.*?)value="(\d+)">
For the first time it is called or if it fails finding the AntrNr_alt it
shall return 0. So that the first line will be selected.

The second Regular expression has to fill the AntrNr_alt (i.e the one i
will select on the next page). Because each line must only be selected one
time but will apear until the script has finished it's iteration.
I used this: name="Selektion"
value="${selektion}"(.*?)class="Attribut2">(\S+)</td>

As u see the second RegEx uses the first RegEx as a Variable. Furthermore I
need this Variable to be Global for all Threads.

I have only 1 Real User but 250 Threads so all Threads will see all not yet
completed lines.

Any help will be apreciated.

Best regards
Frank


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


Mime
View raw message