trait Execs[T <: StructureBuilder[T, W], W <: core.structure.StructureBuilder[W]] extends AnyRef
Execs methods for defining actions.
Important: instances are immutable so any method doesn't mutate the existing instance but returns a new one, eg
ChainBuilder chain1 = ???
// chain2 is different from chain1
// chain1 isn't modified and doesn't have this new "exec"
ChainBuilder chain2 = chain1.exec(???);
- Alphabetic
- By Inheritance
- Execs
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exec(chainBuilders: List[ChainBuilder]): T
Attach some
StructureBuilders.Attach some
StructureBuilders. Those can beChainBuilders or aScenarioBuilders. In the case of aScenarioBuilder, only the chain of actions is considered, without the scenario name. Chains will be attached sequentially.ChainBuilder chain1 = ??? ChainBuilder chain2 = ??? Listchains = Arrays.asList(chain1, chain2); ChainBuilder chain1ThenChain2 = exec(chains); - chainBuilders
some
ChainBuilders- returns
a new StructureBuilder
- Annotations
- @NonNull()
- def exec(executable: Executable, executables: <repeated...>[Executable]): T
Attach some
ChainBuilders.Attach some
ChainBuilders. Chains will be attached sequentially.ChainBuilder chain1 = ??? ChainBuilder chain2 = ??? ChainBuilder chain1ThenChain2 = exec(chain1, chain2);- executable
some
ChainBuilderorActionBuilder- executables
other
ChainBuilders orActionBuilders- returns
a new StructureBuilder
- Annotations
- @NonNull()
- def exec(f: Function[Session, Session]): T
Attach a new action that will execute a function.
Attach a new action that will execute a function. Important: the function must only perform fast in-memory operations. In particular, it mustn't perform any long block I/O operation, or it will hurt Gatling performance badly.
exec(session -> session.set("foo", "bar"))- f
the function
- returns
a new StructureBuilder
- Annotations
- @NonNull()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def setInSession(input: Function[Session, AnyRef], attributeName: String): T
Attach a new action that will evaluate a function and store the result in the Session.
Attach a new action that will evaluate a function and store the result in the Session. Important: the function must only perform fast in-memory operations.
setInSession(session -> UUID.randomUUID().toString(), "uuid")- input
the value to store, expressed as a function
- attributeName
the name of the attribute to store the value into
- returns
a new StructureBuilder
- Annotations
- @NonNull()
- def setInSession(input: String, attributeName: String): T
Attach a new action that will evaluate a Gatling Expression Language String and store the result in the Session.
Attach a new action that will evaluate a Gatling Expression Language String and store the result in the Session. Typically useful when the expression is non-deterministic, eg random, and its result must be used in multiple places.
setInSession("#{randomUuid()", "uuid") }- input
the value to store, expressed as a Gatling Expression Language String
- attributeName
the name of the attribute to store the value into
- returns
a new StructureBuilder
- Annotations
- @NonNull()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()