Remember that .* is greedy, so your regex could match more than you expect.

It would be safer to use value="(.*?)".

I doubt that this will fix the problem, however, please try it and see.

==

If it still fails in non-GUI mode, could you create a bugzilla entry and
upload a sample test plan please?

[Attachments to the list often get lost or mangled, and are a nuisance for
users on slow connections]

==

Why should GUI and non-GUI mode be different? Perhaps:
- non-GUI may be able to process threads faster and thus expose a timing bug
- GUI mode might cause some extra synchronisation that hides a timing bug

S.
-----Original Message-----
From: Vladimir Tsygankov [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:30
To: 'JMeter Users List'
Subject: Regular expressions for some threads are calculated incorrectly


Hello, colleagues,
We think the next regular expression function 
${__regexFunction(<option value="(.*)"
>File,$1$,${__threadNum},,,refContainerID)}
for various threads from time to time works incorrectly in non-GUI
JMeter mode. It misses results for threads.
We attached log files for cases of correct (Thread32-server answer.txt,
Thread32-correct request.txt) and incorrect (Thread33-server answer.txt,
Thread33-incorrect request.txt) working. 
It should work the next way:
for thread 32: ContainerID=47
for thread 33: ContainerID=48 (really ContainerID=49 - it is for another
thread!)

Notes. 1. It happens occasionally (for any thread. Sometimes it doesn't
happen at all).
2. It seems to depend on number of threads (it doesn't take place for a
few threads). We were 
testing for about 100 threads (users)
3. Perhaps it connected with incorrect function "__threadNum" which is
included in regexFunction.
4. We tried some times under JMeter with GUI and it worked fine.
5. We used JMeter (jakarta-jmeter-20040215).

Thanks in advance,
Vladimir


___________________________________________________________________________

This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos Origin group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted. 
___________________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to