https://issues.apache.org/bugzilla/show_bug.cgi?id=54897
Bug ID: 54897
Summary: Variable defined by regular expression extractor can
be used just in the next sampler
Product: JMeter
Version: 2.9
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Created attachment 30227
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30227&action=edit
JMeter test case for a problem with the regular expression extractor
In the attechment the "Regular Expression Extractor” is used to extract a
variable from the response of the last sampler, the debug sampler. The content
of the extracted variable could be used just in the very next sampler. The
content was already gone in the next sampler thereafter, It also was not
transferable to other variables or structures. I tried a whole bunch of
different workarounds, none was working.
One note to what we did in this load test: We had to provide a filename to the
String constructor of the JUnit test case. This file contained the test data
for one execution of a JUnit test method. We had thousands of different files,
and we wanted to choose it by random. So we wrote all the file names in a text
file, loaded the content of the text file in the variable
${testfallDateiXMLTestCases}, displayed it with the Debug-Sampler (yeah, we
know, that's not what this sampler is originally designed for) and chose one
the lines (i.e. the name of one of the thousands of files with different test
data) by random with the "Regular Expression Extractor". This line - the name
of the test-data file - was put into the variable ${testfall}. It was this
variable, that lost its content so quickly.
Actually, this seems to be the very same bug as no. 28.600 from 2004... As this
bug is so old and seemingly fixed, I create a new bug for this behaviour.
--
You are receiving this mail because:
You are the assignee for the bug.