Class CSVDataSetWrapper.CSVDataSetWrapperBuilder<C extends CSVDataSetWrapper,B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>>
- java.lang.Object
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper.AbstractBasicTestElementWrapperBuilder<T,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicChildTestElementWrapper.AbstractBasicChildTestElementWrapperBuilder<T,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.config.ConfigTestElementWrapper.ConfigTestElementWrapperBuilder<org.apache.jmeter.config.CSVDataSet,org.apache.jmeter.testbeans.gui.TestBeanGUI,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.config.CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>
-
- All Implemented Interfaces:
JmcWrapperBuilder<C>
- Enclosing class:
- CSVDataSetWrapper
public abstract static class CSVDataSetWrapper.CSVDataSetWrapperBuilder<C extends CSVDataSetWrapper,B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>> extends ConfigTestElementWrapper.ConfigTestElementWrapperBuilder<org.apache.jmeter.config.CSVDataSet,org.apache.jmeter.testbeans.gui.TestBeanGUI,C,B>
Builder.
-
-
Constructor Summary
Constructors Constructor Description CSVDataSetWrapperBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected B$fillValuesFrom(C instance)Baddvariable(Variable variable)Add variable to List of Variable Name.Baddvariables(java.util.List<Variable> variables)Add variable to List of Variable Name.abstract Cbuild()build Wrapper.protected abstract Bself()java.lang.StringtoString()BwithAsResourceFile(boolean asResourceFile)BwithDelimiter(@NonNull java.lang.String delimiter)BwithFileEncoding(java.lang.String fileEncoding)BwithFilename(java.lang.String filename)BwithIgnoreFirstLine(java.lang.Boolean ignoreFirstLine)Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.BwithIgnoreFirstLine(java.lang.String ignoreFirstLine)Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.BwithIgnoreFirstLine(Variable ignoreFirstLine)Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.BwithQuotedData(java.lang.Boolean quotedData)Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter.BwithQuotedData(java.lang.String quotedData)Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter.BwithQuotedData(Variable quotedData)Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter.BwithRecycle(java.lang.Boolean recycle)Should the file be re-read from the beginning on reaching EOF? (default is true).BwithRecycle(java.lang.String recycle)Should the file be re-read from the beginning on reaching EOF? (default is true).BwithRecycle(Variable recycle)Should the file be re-read from the beginning on reaching EOF? (default is true).BwithShareMode(java.lang.String shareMode)All threads - (the default) the file is shared between all the threads.BwithShareMode(ShareMode shareMode)All threads - (the default) the file is shared between all the threads.BwithShareMode(Variable shareMode)All threads - (the default) the file is shared between all the threads.BwithStopThread(java.lang.Boolean stopThread)Should the thread be stopped on EOF, if Recycle is false? (default is false).BwithStopThread(java.lang.String stopThread)Should the thread be stopped on EOF, if Recycle is false? (default is false).BwithStopThread(Variable stopThread)Should the thread be stopped on EOF, if Recycle is false? (default is false).protected BwithVariables(java.util.List<Variable> variables)hide method , generated by Lombok.-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicChildTestElementWrapper.AbstractBasicChildTestElementWrapperBuilder
withComment, withEnabled, withName
-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper.AbstractBasicTestElementWrapperBuilder
addTags, withIsInitialized, withTags
-
-
-
-
Method Detail
-
withIgnoreFirstLine
public B withIgnoreFirstLine(java.lang.Boolean ignoreFirstLine)
Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
-
withIgnoreFirstLine
public B withIgnoreFirstLine(Variable ignoreFirstLine)
Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
-
withIgnoreFirstLine
public B withIgnoreFirstLine(java.lang.String ignoreFirstLine)
Ignore first line of CSV file, it will only be used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.
-
withRecycle
public B withRecycle(java.lang.Boolean recycle)
Should the file be re-read from the beginning on reaching EOF? (default is true).
-
withRecycle
public B withRecycle(Variable recycle)
Should the file be re-read from the beginning on reaching EOF? (default is true).
-
withRecycle
public B withRecycle(java.lang.String recycle)
Should the file be re-read from the beginning on reaching EOF? (default is true).
-
withStopThread
public B withStopThread(java.lang.Boolean stopThread)
Should the thread be stopped on EOF, if Recycle is false? (default is false).
-
withStopThread
public B withStopThread(Variable stopThread)
Should the thread be stopped on EOF, if Recycle is false? (default is false).
-
withStopThread
public B withStopThread(java.lang.String stopThread)
Should the thread be stopped on EOF, if Recycle is false? (default is false).
-
withQuotedData
public B withQuotedData(java.lang.Boolean quotedData)
Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter. .
-
withQuotedData
public B withQuotedData(Variable quotedData)
Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter. .
-
withQuotedData
public B withQuotedData(java.lang.String quotedData)
Should the CSV file allow values to be quoted? If enabled, then values can be enclosed in " - double-quote - allowing values to contain a delimiter. .
-
withShareMode
public B withShareMode(ShareMode shareMode)
All threads - (the default) the file is shared between all the threads. Current thread group - each file is opened once for each thread group in which the element appears Current thread - each file is opened separately for each thread Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups.
-
withShareMode
public B withShareMode(Variable shareMode)
All threads - (the default) the file is shared between all the threads. Current thread group - each file is opened once for each thread group in which the element appears Current thread - each file is opened separately for each thread Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups.
-
withShareMode
public B withShareMode(java.lang.String shareMode)
All threads - (the default) the file is shared between all the threads. Current thread group - each file is opened once for each thread group in which the element appears Current thread - each file is opened separately for each thread Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups.
-
withVariables
protected B withVariables(java.util.List<Variable> variables)
hide method , generated by Lombok.
-
addvariables
public B addvariables(java.util.List<Variable> variables)
Add variable to List of Variable Name.
-
$fillValuesFrom
protected B $fillValuesFrom(C instance)
- Overrides:
$fillValuesFromin classConfigTestElementWrapper.ConfigTestElementWrapperBuilder<org.apache.jmeter.config.CSVDataSet,org.apache.jmeter.testbeans.gui.TestBeanGUI,C extends CSVDataSetWrapper,B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>>
-
self
protected abstract B self()
- Specified by:
selfin classConfigTestElementWrapper.ConfigTestElementWrapperBuilder<org.apache.jmeter.config.CSVDataSet,org.apache.jmeter.testbeans.gui.TestBeanGUI,C extends CSVDataSetWrapper,B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>>
-
build
public abstract C build()
Description copied from interface:JmcWrapperBuilderbuild Wrapper.- Specified by:
buildin interfaceJmcWrapperBuilder<C extends CSVDataSetWrapper>- Specified by:
buildin classConfigTestElementWrapper.ConfigTestElementWrapperBuilder<org.apache.jmeter.config.CSVDataSet,org.apache.jmeter.testbeans.gui.TestBeanGUI,C extends CSVDataSetWrapper,B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>>
-
withFilename
public B withFilename(java.lang.String filename)
- Returns:
this.
-
withAsResourceFile
public B withAsResourceFile(boolean asResourceFile)
- Returns:
this.
-
withFileEncoding
public B withFileEncoding(java.lang.String fileEncoding)
- Returns:
this.
-
withDelimiter
public B withDelimiter(@NonNull @NonNull java.lang.String delimiter)
- Returns:
this.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classConfigTestElementWrapper.ConfigTestElementWrapperBuilder<org.apache.jmeter.config.CSVDataSet,org.apache.jmeter.testbeans.gui.TestBeanGUI,C extends CSVDataSetWrapper,B extends CSVDataSetWrapper.CSVDataSetWrapperBuilder<C,B>>
-
-