io.gatling.core.session

Session

case class Session(scenarioName: String, userId: String, attributes: Map[String, Any] = ..., startDate: Long = ..., drift: Long = 0L, baseStatus: Status = io.gatling.core.result.message.OK, blockStack: List[Block] = immutable.this.Nil, userEnd: (Session) ⇒ Unit = ...) extends StrictLogging 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

scenarioName

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

userEnd

hook to execute once the user terminates

Linear Supertypes
Serializable, Serializable, Product, Equals, StrictLogging, AbstractLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Session
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. StrictLogging
  7. AbstractLogging
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Session(scenarioName: String, userId: String, attributes: Map[String, Any] = ..., startDate: Long = ..., drift: Long = 0L, baseStatus: Status = io.gatling.core.result.message.OK, blockStack: List[Block] = immutable.this.Nil, userEnd: (Session) ⇒ Unit = ...)

    creates a new session

    creates a new session

    scenarioName

    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

    userEnd

    hook to execute once the user terminates

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(name: String): SessionAttribute

  7. final def asInstanceOf[T0]: T0

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

    the map that stores all values needed

  9. val baseStatus: Status

    the status when not in a TryMax blocks hierarchy

  10. val blockStack: List[Block]

    the block stack

  11. def clone(): AnyRef

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

  13. val drift: Long

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

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

    Definition Classes
    AnyRef
  15. def finalize(): Unit

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

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

  18. def isFailed: Boolean

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. val logger: Logger

    Attributes
    protected
    Definition Classes
    StrictLogging → AbstractLogging
  21. def loopCounterValue(counterName: String): Int

  22. def loopTimestampValue(counterName: String): Long

  23. def markAsFailed: Session

  24. def markAsSucceeded: Session

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def remove(key: String): Session

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

  30. val scenarioName: String

    the name of the current scenario

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

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

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

  34. val startDate: Long

    when the user was started

  35. def status: Status

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

    Definition Classes
    AnyRef
  37. def terminate(): Unit

  38. def update(updates: Iterable[(Session) ⇒ Session]): Session

  39. val userEnd: (Session) ⇒ Unit

    hook to execute once the user terminates

  40. val userId: String

    the id of the current user

  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StrictLogging

Inherited from AbstractLogging

Inherited from AnyRef

Inherited from Any

Ungrouped