package session
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- session
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- sealed trait Block extends AnyRef
- sealed trait CounterBlock extends Block
- case class ExitAsapLoopBlock(counterName: String, condition: Expression[Boolean], exitAction: Action) extends CounterBlock with Product with Serializable
- case class ExitOnCompleteLoopBlock(counterName: String) extends CounterBlock with Product with Serializable
- type Expression[T] = (Session) ⇒ Validation[T]
- implicit final class ExpressionFailureWrapper extends AnyVal
- implicit final class ExpressionSuccessWrapper[T] extends AnyVal
- case class GroupBlock(hierarchy: List[String], startTimestamp: Long, cumulatedResponseTime: Int = 0, status: Status = OK) extends Block with Product with Serializable
- implicit final class RichExpression[T] extends AnyVal
-
case class
Session(scenario: String, userId: Long, startDate: Long, attributes: Map[String, Any] = Map.empty, drift: Long = 0L, baseStatus: Status = OK, blockStack: List[Block] = Nil, onExit: (Session) ⇒ Unit = Session.NothingOnExit) extends LazyLogging with Product with Serializable
Session class representing the session passing through a scenario for a given user
Session class representing the session passing through a scenario for a given user
This session stores all needed data between requests
- scenario
the name of the current scenario
- userId
the id of the current user
- startDate
when the user was started
- attributes
the map that stores all values needed
- drift
the cumulated time that was spent in Gatling on computation and that wasn't compensated for
- baseStatus
the status when not in a TryMax blocks hierarchy
- blockStack
the block stack
- onExit
hook to execute once the user reaches the exit
- case class SessionAttribute(session: Session, key: String) extends Product with Serializable
- case class StaticStringExpression(value: String) extends Expression[String] with Product with Serializable
- case class TryMaxBlock(counterName: String, tryMaxAction: Action, status: Status = OK) extends CounterBlock with Product with Serializable
Value Members
- val EmptyStringExpressionSuccess: Expression[String]
- val TrueExpressionSuccess: Expression[Boolean]
- def map2SeqExpression(map: Map[String, Any]): Expression[Seq[(String, Any)]]
- def resolveIterable[X](iterable: Iterable[(String, Expression[X])]): Expression[Seq[(String, X)]]
- def resolveOptionalExpression[T](expression: Option[Expression[T]], session: Session): Validation[Option[T]]
- def seq2SeqExpression(seq: Seq[(String, Any)]): Expression[Seq[(String, Any)]]
- object LoopBlock extends StrictLogging
- object Session extends Serializable
-
object
SessionPrivateAttributes
Private Gatling Session attributes