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
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
- Alphabetic
- By Inheritance
- Session
- Serializable
- Serializable
- Product
- Equals
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
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)
creates a new session
creates a new session
- 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
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(name: String): SessionAttribute
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attributes: Map[String, Any]
- val baseStatus: Status
- val blockStack: List[Block]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def contains(attributeKey: String): Boolean
- val drift: Long
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def exit(): Unit
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def groupHierarchy: List[String]
- def isFailed: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
- def loopCounterValue(counterName: String): Int
- def loopTimestampValue(counterName: String): Long
- def markAsFailed: Session
- def markAsSucceeded: Session
-
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()
- val onExit: (Session) ⇒ Unit
- def remove(key: String): Session
- def removeAll(keys: String*): Session
- def reset: Session
- val scenario: String
- def set(key: String, value: Any): Session
- def setAll(newAttributes: Iterable[(String, Any)]): Session
- def setAll(newAttributes: (String, Any)*): Session
- val startDate: Long
- def status: Status
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def update(updates: Iterable[(Session) ⇒ Session]): Session
- val userId: Long
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )