public interface Filter
It will also be used by HttpSamplers that use access logs. Using access logs
is intended as a way to simulate production traffic. For functional testing,
it is better to use the standard functional testing tools in JMeter. Using
access logs can also reduce the amount of memory needed to run large test
plans.
Modifier and Type | Method and Description |
---|---|
void |
excludeFiles(String[] filenames)
Exclude all files in the array
|
void |
excludePattern(String[] regexp)
Exclude any log entry that contains the following regular expression
pattern.
|
String |
filter(String text)
In case the user wants to replace the file extension, log parsers should
call this method.
|
void |
includeFiles(String[] filenames)
Include all files in the array.
|
void |
includePattern(String[] regexp)
Include any log entry that contains the following regular expression
pattern.
|
boolean |
isFiltered(String path,
TestElement sampler)
Log parser will call this method to see if a particular entry should be
filtered or not.
|
void |
reset()
Tell the filter when the parsing has reached the end of the log file and
is about to begin again.
|
void |
setReplaceExtension(String oldextension,
String newextension) |
void setReplaceExtension(String oldextension, String newextension)
oldextension
- newextension
- void includeFiles(String[] filenames)
filenames
- void excludeFiles(String[] filenames)
filenames
- void includePattern(String[] regexp)
regexp
- void excludePattern(String[] regexp)
regexp
- boolean isFiltered(String path, TestElement sampler)
path
- String filter(String text)
text
- void reset()
Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.