Package com.github.phisgr.gatling.kt

Types

Link copied to clipboard
typealias SessionHook = (Session) -> Session

Functions

Link copied to clipboard
fun async(sessionAttributeNameEl: String, action: ActionBuilder): ActionBuilder
Link copied to clipboard
fun await(sessionAttributeNameEl: String, sessionCombiner: SessionCombiner): ActionBuilder
Link copied to clipboard
inline fun <T> blockingAction(requestNameEl: String, crossinline action: (Session) -> T): CodeActionBuilder<T>
Link copied to clipboard
inline fun <T> callbackAction(requestNameEl: String, crossinline action: (Session, callback: (Result<T>) -> Unit) -> Unit): CodeActionBuilder<T>
Link copied to clipboard
fun chain(action: MutableBuilder.() -> Unit): ChainBuilder

To create a ChainBuilder

Link copied to clipboard
inline fun <T> coroutineAction(requestNameEl: String, crossinline action: suspend (Session) -> T): CodeActionBuilder<T>

Optional feature. compileOnly was used in Gradle for the coroutines dependency.

Link copied to clipboard
fun exitBlockOnFail(action: MutableBuilder.() -> Unit): ChainBuilder
Link copied to clipboard
fun <T> failWith(message: String): T

Throws a FailureThrowable, of which gatling-kt-ext is aware.

Link copied to clipboard
fun <T> Validation<T>.getOrThrow(): T
Link copied to clipboard
inline fun hook(crossinline f: SessionHook): ActionBuilder

Alias for CoreDsl.exec.

Link copied to clipboard
fun <T : StructureBuilder<T, *>> RoundRobinSwitch.On<T>.on(vararg action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> UniformRandomSwitch.On<T>.on(vararg action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> Errors.TryMax<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> Groups.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> AsLongAs.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> AsLongAsDuring.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> DoWhile.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> DoWhileDuring.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> During.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> ForEach.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> Forever.On<T>.on(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> Repeat.On<T>.on(action: MutableBuilder.() -> Unit): T
Link copied to clipboard
fun <T : StructureBuilder<T, *>> DoIfEqualsOrElse.OrElse<T>.orElse(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> DoIfOrElse.OrElse<T>.orElse(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> DoSwitchOrElse.OrElse<T>.orElse(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> RandomSwitchOrElse.OrElse<T>.orElse(action: MutableBuilder.() -> Unit): T
Link copied to clipboard
inline fun peek(crossinline f: (Session) -> Unit): ActionBuilder

Take a peek at the session.

Link copied to clipboard
fun scenario(name: String, action: MutableBuilder.() -> Unit): ScenarioBuilder
Link copied to clipboard
fun <T : StructureBuilder<T, *>> DoIf.Then<T>.then(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> DoIfEquals.Then<T>.then(action: MutableBuilder.() -> Unit): T
fun <T : StructureBuilder<T, *>> DoIfEqualsOrElse.Then<T>.then(action: MutableBuilder.() -> Unit): DoIfEqualsOrElse.OrElse<T>
fun <T : StructureBuilder<T, *>> DoIfOrElse.Then<T>.then(action: MutableBuilder.() -> Unit): DoIfOrElse.OrElse<T>
Link copied to clipboard
fun withKey(key: Any, action: MutableBuilder.() -> Unit): Choice.WithKey
Link copied to clipboard
fun withWeight(weight: Double, action: MutableBuilder.() -> Unit): Choice.WithWeight

Properties

Link copied to clipboard
val errorMessage: CheckBuilder.Find<String?>

Checks the Throwable.message of the potential failure in generic code execution.