object SeparatedValuesFeeder
- Alphabetic
- By Inheritance
- SeparatedValuesFeeder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(paramPrefix: Option[String], source: Seq[Map[String, Any]], separator: Char)(implicit configuration: GatlingConfiguration): IndexedSeq[Record[String]]
Creates a feeder with separated values from the source Seq[Map[String, String] ]
Creates a feeder with separated values from the source Seq[Map[String, String] ]
- paramPrefix
feeder name
- source
data source
- separator
',', ';', '\t' or other delimiter which separates values. You also can use following methods for the most common separators: .csv(...), .ssv(...), .tsv(...)
- returns
a new feeder
val vaultFeeder: FeederBuilderBase[String] = Vector( Map( "HOSTS" -> "host11,host12", "USERS" -> "user11", ), Map( "HOSTS" -> "host21,host22", "USERS" -> "user21,user22,user23", ), ) val mapFee: FeederBuilderBase[String] = SeparatedValuesFeeder(None, vaultFeeder.readRecords, ',') val separatedValuesFeeder: FeederBuilderBase[String] = SeparatedValuesFeeder("prefix", sourceSeq, ',') // this will return Vector(Map(HOSTS -> host11), Map(HOSTS -> host12), Map(USERS -> user11), Map(HOSTS -> host21), Map(HOSTS -> host22), Map(USERS -> user21), Map(USERS -> user22), Map(USERS -> user23))
Example: - def apply(paramName: String, source: Seq[String], separator: Char)(implicit configuration: GatlingConfiguration): IndexedSeq[Record[String]]
Creates a feeder with separated values from the source Sequence
Creates a feeder with separated values from the source Sequence
- paramName
feeder name
- source
data source
- separator
',', ';', '\t' or other delimiter which separates values. You also can use following methods for the most common separators: .csv(...), .ssv(...), .tsv(...)
- returns
a new feeder
val sourceSeq = Seq("1,two", "3,4") val separatedValuesFeeder: FeederBuilderBase[String] = SeparatedValuesFeeder.csv("someValues", sourceSeq) // this will return Vector(Map(someValues -> 1), Map(someValues -> two), Map(someValues -> 3), Map(someValues -> 4))
Example: - def apply(paramName: String, source: String, separator: Char): IndexedSeq[Record[String]]
Creates a feeder with separated values from the source String
Creates a feeder with separated values from the source String
- paramName
feeder name
- source
data source
- separator
',', ';', '\t' or other delimiter which separates values. You also can use following methods for the most common separators: .csv(...), .ssv(...), .tsv(...)
- returns
a new feeder
val sourceString = "v21;v22;v23" val separatedValuesFeeder: FeederBuilderBase[String] = SeparatedValuesFeeder("someValues", sourceString, ';') // this will return Vector(Map(someValues -> v21), Map(someValues -> v22), Map(someValues -> v23))
Example: - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def csv(paramPrefix: Option[String] = None, source: Seq[Map[String, Any]]): FeederBuilderBase[String]
- def csv(paramName: String, source: Seq[String]): FeederBuilderBase[String]
- def csv(paramName: String, source: String): FeederBuilderBase[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def ssv(paramPrefix: Option[String] = None, source: Seq[Map[String, Any]]): FeederBuilderBase[String]
- def ssv(paramName: String, source: Seq[String]): FeederBuilderBase[String]
- def ssv(paramName: String, source: String): FeederBuilderBase[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tsv(paramPrefix: Option[String] = None, source: Seq[Map[String, Any]]): FeederBuilderBase[String]
- def tsv(paramName: String, source: Seq[String]): FeederBuilderBase[String]
- def tsv(paramName: String, source: String): FeederBuilderBase[String]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)