ScalaDsl

trait ScalaDsl extends BaseScalaDsl with StepDsl with HookDsl with DataTableTypeDsl with DocStringTypeDsl with ParameterTypeDsl with DefaultTransformerDsl

Base trait for a scala step definition implementation.

Base trait for a scala step definition implementation.

trait DefaultTransformerDsl
trait ParameterTypeDsl
trait DocStringTypeDsl
trait DataTableTypeDsl
trait HookDsl
trait StepDsl
trait BaseScalaDsl
class Object
trait Matchable
class Any

Type members

Inherited classlikes

final class DataTableTypeBody(replaceWithEmptyString: Seq[String])
Inherited from
DataTableTypeDsl
final class HookBody(hookType: HookType, tagExpression: String, order: Int, frame: StackTraceElement)
Inherited from
HookDsl
final class ParameterTypeBody(name: String, regex: String)
Inherited from
ParameterTypeDsl
final class Step(name: String)
Inherited from
StepDsl
final class StepBody(name: String, regex: String)
Inherited from
StepDsl

Value members

Inherited methods

def After(tagExpression: String, order: Int): HookBody

Defines and after hook.

Defines and after hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl
def After(order: Int): HookBody

Defines and after hook.

Defines and after hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

Inherited from
HookDsl
def After(tagExpression: String): HookBody

Defines and after hook.

Defines and after hook.

Value Params
tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl

Defines and after hook.

Defines and after hook.

Inherited from
HookDsl
def AfterStep(tagExpression: String, order: Int): HookBody

Defines and after step hook.

Defines and after step hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl
def AfterStep(order: Int): HookBody

Defines and after step hook.

Defines and after step hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

Inherited from
HookDsl
def AfterStep(tagExpression: String): HookBody

Defines and after step hook.

Defines and after step hook.

Value Params
tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl

Defines and after step hook.

Defines and after step hook.

Inherited from
HookDsl
def Before(tagExpression: String, order: Int): HookBody

Defines an before hook.

Defines an before hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl
def Before(order: Int): HookBody

Defines an before hook.

Defines an before hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

Inherited from
HookDsl
def Before(tagExpression: String): HookBody

Defines an before hook.

Defines an before hook.

Value Params
tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl

Defines an before hook.

Defines an before hook.

Inherited from
HookDsl
def BeforeStep(tagExpression: String, order: Int): HookBody

Defines an before step hook.

Defines an before step hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl
def BeforeStep(order: Int): HookBody

Defines an before step hook.

Defines an before step hook.

Value Params
order

the order in which this hook should run. Higher numbers are run first

Inherited from
HookDsl
def BeforeStep(tagExpression: String): HookBody

Defines an before step hook.

Defines an before step hook.

Value Params
tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from
HookDsl

Defines an before step hook.

Defines an before step hook.

Inherited from
HookDsl
def DataTableType(replaceWithEmptyString: String): DataTableTypeBody

Register a data table type with a replacement.

Register a data table type with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

Value Params
replaceWithEmptyString

a string that will be replaced with an empty string.

Inherited from
DataTableTypeDsl

Register a data table type.

Register a data table type.

Inherited from
DataTableTypeDsl
def DefaultDataTableCellTransformer(replaceWithEmptyString: String)(body: DefaultDataTableCellTransformerBody): Unit

Register default data table cell transformer with a replacement.

Register default data table cell transformer with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings. *

Value Params
body

converts String argument to an instance of the Type argument

replaceWithEmptyString

a string that will be replaced with an empty string.

Inherited from
DefaultTransformerDsl

Register default data table cell transformer.

Register default data table cell transformer.

Value Params
body

converts String argument to an instance of the Type argument

Inherited from
DefaultTransformerDsl
def DefaultDataTableEntryTransformer(replaceWithEmptyString: String)(body: DefaultDataTableEntryTransformerBody): Unit

Register default data table cell transformer with a replacement.

Register default data table cell transformer with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

Value Params
body

converts Map[String,String] argument to an instance of the Type argument

replaceWithEmptyString

a string that will be replaced with an empty string.

Inherited from
DefaultTransformerDsl

Register default data table entry transformer.

Register default data table entry transformer.

Value Params
body

converts Map[String,String] argument to an instance of the Type argument

Inherited from
DefaultTransformerDsl

Register default parameter type transformer.

Register default parameter type transformer.

Value Params
body

converts String argument to an instance of the Type argument

Inherited from
DefaultTransformerDsl
def DocStringType[T](contentType: String)(body: () => T)(ev: ClassTag[T]): Unit

Register doc string type.

Register doc string type.

Type Params
T

type to convert to

Value Params
body

a function that creates an instance of T from the doc string

contentType

Name of the content type.

Inherited from
DocStringTypeDsl
def ParameterType(name: String, regex: String): ParameterTypeBody

Register parameter type.

Register parameter type.

Value Params
name

used as the type name in typed expressions

regex

expression to match

See also
Inherited from
ParameterTypeDsl

Inherited fields

Inherited from
BaseScalaDsl
Inherited from
BaseScalaDsl
Inherited from
BaseScalaDsl
val NO_REPLACEMENT: Seq[String]
Inherited from
BaseScalaDsl