One way would be to use the Java Request to return the value, and then
add a listener to it to save the value.
S.
On 08/06/07, Jason Hane <[EMAIL PROTECTED]> wrote:
I set up some tests in JMeter and they work beautifully. My only
requirement is to extract certain text from the web pages using r
you could use a beanshellsampler, and retrieve the value of the
regex-extractor and write it to file, e.g.:
String value = vars.get("regex_reference_name");
try {
BufferedWriter out = new BufferedWriter(new FileWriter("logfile.log",
true));
out.write(value + "\n");
out.close();
} catch
This would generate a sample in the main test output.
To avoid this, use a BeanShell Post-Processor or Listener.
Also if there are a lot of samples, the open/close of the file might
become significant.
At present the BeanShell test elements don't support testStopped() etc
hooks, so it's not easy
Great!! This works perfectly. Thank you for your help.
-Original Message-
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Friday, June 08, 2007 5:28 PM
To: JMeter Users List
Subject: Re: Writing regular expressions to log file
One way would be to use the Java Request to return the value
4 matches
Mail list logo