Class/Object

io.gatling.core.session

Session

Related Docs: object Session | package session

Permalink

case class Session(scenario: String, userId: Long, attributes: Map[String, Any] = Map.empty, startDate: Long = nowMillis, 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

attributes

the map that stores all values needed

startDate

when the user was started

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

Linear Supertypes
Serializable, Serializable, Product, Equals, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Session
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LazyLogging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Session(scenario: String, userId: Long, attributes: Map[String, Any] = Map.empty, startDate: Long = nowMillis, drift: Long = 0L, baseStatus: Status = OK, blockStack: List[Block] = Nil, onExit: (Session) ⇒ Unit = Session.NothingOnExit)

    Permalink

    creates a new session

    creates a new session

    scenario

    the name of the current scenario

    userId

    the id of the current user

    attributes

    the map that stores all values needed

    startDate

    when the user was started

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(name: String): SessionAttribute

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val attributes: Map[String, Any]

    Permalink

    the map that stores all values needed

  7. val baseStatus: Status

    Permalink

    the status when not in a TryMax blocks hierarchy

  8. val blockStack: List[Block]

    Permalink

    the block stack

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def contains(attributeKey: String): Boolean

    Permalink
  11. val drift: Long

    Permalink

    the cumulated time that was spent in Gatling on computation and that wasn't compensated for

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def exit(): Unit

    Permalink
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def groupHierarchy: List[String]

    Permalink
  17. def isFailed: Boolean

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  20. def loopCounterValue(counterName: String): Int

    Permalink
  21. def loopTimestampValue(counterName: String): Long

    Permalink
  22. def markAsFailed: Session

    Permalink
  23. def markAsSucceeded: Session

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. val onExit: (Session) ⇒ Unit

    Permalink

    hook to execute once the user reaches the exit

  28. def remove(key: String): Session

    Permalink
  29. def removeAll(keys: String*): Session

    Permalink
  30. def reset: Session

    Permalink
  31. val scenario: String

    Permalink

    the name of the current scenario

  32. def set(key: String, value: Any): Session

    Permalink
  33. def setAll(newAttributes: Iterable[(String, Any)]): Session

    Permalink
  34. def setAll(newAttributes: (String, Any)*): Session

    Permalink
  35. val startDate: Long

    Permalink

    when the user was started

  36. def status: Status

    Permalink
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def update(updates: Iterable[(Session) ⇒ Session]): Session

    Permalink
  39. val userId: Long

    Permalink

    the id of the current user

  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped