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(java.lang.String[] filenames)
Exclude all files in the array
|
void |
excludePattern(java.lang.String[] regexp)
Exclude any log entry that contains the following regular expression
pattern.
|
java.lang.String |
filter(java.lang.String text)
In case the user wants to replace the file extension, log parsers should
call this method.
|
void |
includeFiles(java.lang.String[] filenames)
Include all files in the array.
|
void |
includePattern(java.lang.String[] regexp)
Include any log entry that contains the following regular expression
pattern.
|
boolean |
isFiltered(java.lang.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(java.lang.String oldextension,
java.lang.String newextension) |
void setReplaceExtension(java.lang.String oldextension, java.lang.String newextension)
oldextension
- old extensionnewextension
- new extensionvoid includeFiles(java.lang.String[] filenames)
filenames
- names of files to includevoid excludeFiles(java.lang.String[] filenames)
filenames
- names of files to excludevoid includePattern(java.lang.String[] regexp)
regexp
- list of regexp that match entries that should be includedvoid excludePattern(java.lang.String[] regexp)
regexp
- list of regexp that match entries that should be excludedboolean isFiltered(java.lang.String path, TestElement sampler)
path
- log line that should be checked if it should to be filtered
outsampler
- TestElement
in which the line would be addedtrue
if line should be filtered out,
false
otherwisejava.lang.String filter(java.lang.String text)
text
- log line to be filteredvoid reset()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.