Hi Robert, I think that the expression <a href="clusteridx?.*id=(\d.*?)"> can also thind this string:
"<a href="clusteridx?l=en&r=35682&meta=genres&id=1002">Blues</a>jesssionid=hgfksd6gfkjdgf7dfsd" This is your sessionid. Your expression beginns with "<a href="clusteridx" and ended with "id". So the extracter would find the string above and would not stop after "&id=" Try to change your expression like <a href="clusteridx?.&*id=(\d.*?)"> I hope I could help. Torsten -----Ursprüngliche Nachricht----- Von: Robert Heinerman [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 20. April 2006 09:05 An: JMeter Users List Betreff: Re: Regular Expression Extractor Sorry, I have provided to less information. I have more than one of the following links on a page: <a href="clusteridx?l=en&r=54262&meta=genres&id=1001">Alternative</a> <a href="clusteridx?l=en&r=35682&meta=genres&id=1002">Blues</a> ... The first regex should parse anyone of the IDs e.g. "1002": clusterID6 <a href="clusteridx?.*id=(\d.*?)"> $1$ 0 The second regex should parse the linktext of the link with the ID parsed before, e.g. "Blues" clusterName6 <a href="clusteridx\?.*id=${clusterID6}">(.*?)< $1$ 0 Then I use the ID for the next request, and the name as respone assertion. The symtomps which lead to belive that JMeter confuses IDs from this and the last loop is, that threads which loop more than once might have the following text in the assertion results: GET http://wap.napsterdemo.ericsson-mediasuite.com/content/wap2/dyn/clusteridx?id=1014&meta=genres&l=en&af=napster User-Agent: SonyEricssonW810i X-SuppressDTD: true Cookie Data: JSESSIONID=-OaErqqv4u_sJFe2Qq Test failed, text expected to contain /Blues/ In the case that the test fails like that, the ID and Name doesn't fit togehter, maybe the regex are wrong. Some tests work, some fail and I can't see any reason for that. I can only say for sure that these tests never fail in the first loop. Thank you for your help BR rob sebb schrieb: > 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/printabl > e_docs/usermanual/component_reference.html#Regular_Expression_Extracto > r > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ****************************************************************** Bitte nutzen Sie die E-Mail-Verbindung mit uns ausschliesslich zum Informationsaustausch. Wir koennen auf diesem Wege keine rechtsgeschaeftlichen Erklaerungen (Auftraege etc.) entgegennehmen. Der Inhalt dieser Nachricht ist vertraulich und nur fuer den angegebenen Empfaenger bestimmt. Jede Form der Kenntnisnahme oder Weitergabe durch Dritte ist unzulaessig. Sollte diese Nachricht nicht fur Sie bestimmt sein, so bitten wir Sie, sich mit uns per E-Mail oder telefonisch in Verbindung zu setzen. Please use your E-mail connection with us exclusively for the exchange of information. We do not accept legally binding declarations (orders, etc.) by this means of communication. The contents of this message is confidential and intended only for the recipient indicated. Taking notice of this message or disclosure by third parties is not permitted. In the event that this message is not intended for you, please contact us via E-mail or phone. ****************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

