trait JourneySetup extends JourneyConfiguration with PerftestConfiguration
A trait to setup the Journeys used in Simulation.
- Alphabetic
- By Inheritance
- JourneySetup
- PerftestConfiguration
- JourneyConfiguration
- Configuration
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val allJourneys: List[String]
- Definition Classes
- JourneyConfiguration
- lazy val applicationConfig: Config
- Definition Classes
- Configuration
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkJourneyName(id: String): Any
- Definition Classes
- JourneyConfiguration
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- lazy val constantRateTime: FiniteDuration
- Definition Classes
- PerftestConfiguration
- def definitions(labels: Set[String] = Set.empty): Seq[JourneyDefinition]
Maps the journeys defined in journeys.conf to a Seq of uk.gov.hmrc.performance.conf.JourneyDefinition and returns the journeys to be executed based on the provided labels.
Maps the journeys defined in journeys.conf to a Seq of uk.gov.hmrc.performance.conf.JourneyDefinition and returns the journeys to be executed based on the provided labels. The
labelsfield is defined in application.conf.- labels
An optional parameter with a Set of labels for which the journeys should be executed.
- returns
Seq of JourneyDefinition to be executed for the provided labels.
- Definition Classes
- JourneyConfiguration
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def generateDescription(journeyDescription: String, runIf: Set[String], skipIf: Set[String]): String
Generates a new description for a journey based on the description, run-if, and skip-if fields in journeys.conf
Generates a new description for a journey based on the description, run-if, and skip-if fields in journeys.conf
Example:
For the below example journey in journey.conf:
hello-world-4 = { description = "Hello world journey 4" load = 0.1 feeder = data/helloworld.csv parts = [ home ] run-if = ["label-B"] skip-if = ["label-A", "label-C"] }
the generated description would be:
Hello world journey 4 - runIf [label-B] and skipIf [label-A,label-C]- journeyDescription
Value from the description field of a journey in journeys.conf
- runIf
Labels included in run-if field of a journey in journeys.conf
- skipIf
Labels included in skip-if field of a journey in journeys.conf
- returns
A new description based on the description and the labels
- Definition Classes
- JourneyConfiguration
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hasProperty(property: String): Boolean
- Definition Classes
- Configuration
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def journeys: Seq[Journey]
Builds uk.gov.hmrc.performance.simulation.Journey for each journey defined in journeys.conf
Builds uk.gov.hmrc.performance.simulation.Journey for each journey defined in journeys.conf
- returns
a Seq of uk.gov.hmrc.performance.simulation.Journey for all the journeys defined in journeys.conf
- Attributes
- protected
- val journeysAvailable: List[String]
- Definition Classes
- JourneyConfiguration
- def keys(property: String): List[String]
- Definition Classes
- Configuration
- lazy val labels: Set[String]
- Definition Classes
- PerftestConfiguration
- lazy val loadFactor: Double
- Definition Classes
- PerftestConfiguration
- lazy val loadPercentage: Int
- Definition Classes
- PerftestConfiguration
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noLoad: Double
- Definition Classes
- PerftestConfiguration
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val percentageFailureThreshold: Int
- Definition Classes
- PerftestConfiguration
- lazy val rampDownTime: FiniteDuration
- Definition Classes
- PerftestConfiguration
- lazy val rampUpTime: FiniteDuration
- Definition Classes
- PerftestConfiguration
- def readProperty(property: String, default: String): String
- Definition Classes
- Configuration
- def readProperty(property: String): String
- Definition Classes
- Configuration
- def readPropertyBooleanOption(property: String): Option[Boolean]
- Definition Classes
- Configuration
- def readPropertyList(property: String): List[String]
- Definition Classes
- Configuration
- def readPropertyOption(property: String): Option[String]
- Definition Classes
- Configuration
- def readPropertySet(property: String): Set[String]
- Definition Classes
- Configuration
- def readPropertySetOrEmpty(property: String): Set[String]
- Definition Classes
- Configuration
- lazy val requestPercentageFailureThreshold: Int
- Definition Classes
- PerftestConfiguration
- lazy val runLocal: Boolean
- Definition Classes
- Configuration
- lazy val runSingleUserJourney: Boolean
- Definition Classes
- PerftestConfiguration
- def setup(id: String, description: String): JourneyPart
Creates JourneyPart which allows to chain HttpRequestBuilder and ActionBuilder.
Creates JourneyPart which allows to chain HttpRequestBuilder and ActionBuilder.
- id
Unique identifier for the setup. This should match an entry in the parts provided in journeys.conf
- description
description of the setup. This value is used in Gatling's scenario description which is surfaced in gatling report.
- returns
JourneyPart
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withInjectedLoad(journeys: Seq[Journey]): Seq[PopulationBuilder]
Calculates the load for the provided journeys and constructs the injection steps using Gatling's open injection model: https://gatling.io/docs/current/general/simulation_setup/#open-model.
Calculates the load for the provided journeys and constructs the injection steps using Gatling's open injection model: https://gatling.io/docs/current/general/simulation_setup/#open-model.
- journeys
Seq of journeys as defined in journeys.conf
- returns
Sequence of PopulationBuilder with calculated injection step injected into io.gatling.core.structure.ScenarioBuilder
- Attributes
- protected
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated