trait GWT extends StepParsers with Scripts
The GWT trait can be used to associate a piece of text to Given/When/Then steps according to the [BDD](http://en.wikipedia.org/wiki/Behavior-driven_development) way of describing acceptance criteria
- Self Type
- GWT with FragmentsFactory
- Alphabetic
- By Inheritance
- GWT
- Scripts
- StepParsers
- ImplicitParameters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
ImplicitParam extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam1 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam10 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam2 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam3 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam4 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam5 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam6 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam7 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam8 extends AnyRef
- Definition Classes
- ImplicitParameters
-
trait
ImplicitParam9 extends AnyRef
- Definition Classes
- ImplicitParameters
-
case class
GWTGivens[GT <: HList, GTE <: HList, GTU](title: String, template: ScriptTemplate[Scenario, GivenWhenThenLines], givenExtractors: GTE = HNil, isStart: Boolean = true) extends Scenario with Product with Serializable
GT = Given types, types of extracted values for then steps GTE = Given extractor types, types of extractor functions WT = When types, types of extracted values for when steps WTR = When result types, after mapping WTE = When extractor types WM = Mapping functions types TTE = Then types extractors VE = verification types for then steps
-
case class
GWTStart(title: String, template: ScriptTemplate[Scenario, GivenWhenThenLines], isStart: Boolean = true) extends Scenario with Product with Serializable
Start of a scenario
- case class GWTThens[GT <: HList, GTE <: HList, GTU, WT <: HList, WTR <: HList, WTE <: HList, WM <: HList, WTU, TTE <: HList, VE <: HList](whens: (GWT.this)#GWTWhens[GT, GTE, GTU, WT, WTR, WTE, WM, WTU], thenExtractors: TTE, verifications: VE, isStart: Boolean = true) extends Scenario with Product with Serializable
- case class GWTThensApply[T, GT <: HList, GTE <: HList, GTU, WT <: HList, WTR <: HList, WTE <: HList, WM <: HList, WMU, TTE <: HList, VE <: HList](whens: (GWT.this)#GWTWhens[GT, GTE, GTU, WT, WTR, WTE, WM, WMU], thenExtractors: TTE, verifications: VE) extends Product with Serializable
- case class GWTWhens[GT <: HList, GTE <: HList, GTU, WT <: HList, WTR <: HList, WTE <: HList, WM <: HList, WMU](givens: (GWT.this)#GWTGivens[GT, GTE, GTU], whenExtractors: WTE, mappers: WM, isStart: Boolean = true) extends Scenario with Product with Serializable
- case class GWTWhensApply[T, GT <: HList, GTE <: HList, GTU, WT <: HList, WTR <: HList, WTE <: HList, WM <: HList, WMU](givens: (GWT.this)#GWTGivens[GT, GTE, GTU], whenExtractors: WTE, mappers: WM) extends Product with Serializable
- case class Mapper[T, P <: HList, U, R](f1: Option[(::[T, P]) ⇒ R] = None, f2: Option[(T, Seq[U]) ⇒ R] = None) extends Product with Serializable
- case class VerifyFunction[T, P <: HList, U, R](f1: Option[(::[T, P]) ⇒ R] = None, f2: Option[(T, Seq[U]) ⇒ R] = None)(implicit evidence$1: AsResult[R]) extends Product with Serializable
-
class
ReadAs extends AnyRef
This class creates Given or Then extractors from a regular expression and a function
This class creates Given or Then extractors from a regular expression and a function
- Definition Classes
- StepParsers
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
val
::: shapeless.::.type
renaming of the shapeless cons object to avoid imports
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[T](f: (String, String, String, String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
def
apply[T](f: (String) ⇒ T)(implicit fpr: Regex = stepParserRegex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val executionEnv: ExecutionEnv
-
val
extract: StepParser.type
- Definition Classes
- StepParsers
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
groupAs(groupRegex: String): (GWT.this)#ReadAs
factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract
factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract
- Definition Classes
- StepParsers
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
implicit
lazy val
implicitParameter: (GWT.this)#ImplicitParam
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter1: (GWT.this)#ImplicitParam1
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter10: (GWT.this)#ImplicitParam10
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter2: (GWT.this)#ImplicitParam2
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter3: (GWT.this)#ImplicitParam3
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter4: (GWT.this)#ImplicitParam4
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter5: (GWT.this)#ImplicitParam5
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter6: (GWT.this)#ImplicitParam6
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter7: (GWT.this)#ImplicitParam7
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter8: (GWT.this)#ImplicitParam8
- Definition Classes
- ImplicitParameters
-
implicit
lazy val
implicitParameter9: (GWT.this)#ImplicitParam9
- Definition Classes
- ImplicitParameters
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
readAs(regex: String): (GWT.this)#ReadAs
factory method to create a Given or a Then element from a regex
factory method to create a Given or a Then element from a regex
- Definition Classes
- StepParsers
-
implicit
def
scriptIsInterpolatedFragment(script: Script): InterpolatedFragment
a sequence of GWT steps can be inserted in a specification to delimit pieces of text to interpret.
a sequence of GWT steps can be inserted in a specification to delimit pieces of text to interpret. The "given/when" steps create execute.Step objects while the "then" steps create Examples
The whole sequence also creates one tagged section with the title of the sequence
- Definition Classes
- Scripts
-
def
seq[T](f: (Seq[String]) ⇒ T)(implicit fpr: Regex = stepParserRegex): DelimitedStepParser[T]
- Definition Classes
- StepParsers
-
implicit
lazy val
stepParserRegex: Regex
- Definition Classes
- StepParsers
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
Scenario
start a sequence of GWT steps by default the scenario template that is used is considering the last lines before the scenario end to form the given/when/then steps