On 19/04/06, Robert Heinerman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> we are using jmeter 2.1.1.
Good.
> I use a regular expression extractor to parse an id, which is used for
> the next request, and a name which is used for response assertion. The
> regex for the name includes the extracted id.
>
> Everything works fine, as long each tread is looped only once. When
thread ?
> looping more often, I think JMeter confuses the extracted
> ids from this loop and the loop before. Is there any bug known? Is there
> any configuration?
Works OK for me.
What are the symptoms you are seeing?
Remember that the Regex Extractor is applied to EVERY sample in scope.
> Example:
>
> clusterID6
> <a href="clusteridx?.*id=(\d.*?)">
> $1$
> 0
>
> clusterName6
> <a href="clusteridx\?.*id=${clusterID6}">(.*?)<
> $1$
> 0
What are you trying to match against?
Please give an example, and say what you want to extract.
> clusterID6 is used for the next request, ClusterName6 is used as
> response assertion for this next request, which sometimes fails if
> threads are looped more than once. Maybe the regex are not correct, my
> knowledge about regex is limited.
>
> Another question is: what is the template field in the regular
> expression extractor exactly? Didn't found any documentation.
file:///D:/eclipseworkspaces/Jmeter-dev/workspace/jmeter_B2-1/printable_docs/usermanual/component_reference.html#Regular_Expression_Extractor
Says:
The syntax to refer to a group is: '$1$' to refer to group 1, '$2$' to
refer to group 2, etc. $0$ refers to whatever the entire expression
matches.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]