org.specs2.specification.script

GWT

Related Doc: package script

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GWT
  2. Scripts
  3. StepParsers
  4. ImplicitParameters
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. 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

  2. case class GWTStart(title: String, template: ScriptTemplate[Scenario, GivenWhenThenLines], isStart: Boolean = true) extends Scenario with Product with Serializable

    Start of a scenario

  3. 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

  4. 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

  5. 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

  6. 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

  7. trait ImplicitParam extends AnyRef

    Definition Classes
    ImplicitParameters
  8. trait ImplicitParam1 extends AnyRef

    Definition Classes
    ImplicitParameters
  9. trait ImplicitParam10 extends AnyRef

    Definition Classes
    ImplicitParameters
  10. trait ImplicitParam2 extends AnyRef

    Definition Classes
    ImplicitParameters
  11. trait ImplicitParam3 extends AnyRef

    Definition Classes
    ImplicitParameters
  12. trait ImplicitParam4 extends AnyRef

    Definition Classes
    ImplicitParameters
  13. trait ImplicitParam5 extends AnyRef

    Definition Classes
    ImplicitParameters
  14. trait ImplicitParam6 extends AnyRef

    Definition Classes
    ImplicitParameters
  15. trait ImplicitParam7 extends AnyRef

    Definition Classes
    ImplicitParameters
  16. trait ImplicitParam8 extends AnyRef

    Definition Classes
    ImplicitParameters
  17. trait ImplicitParam9 extends AnyRef

    Definition Classes
    ImplicitParameters
  18. 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

  19. 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
  20. 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

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. val ::: shapeless.::.type

    renaming of the shapeless cons object to avoid imports

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. 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

  6. def apply[T](f: (String, String, String, String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  7. def apply[T](f: (String, String, String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  8. def apply[T](f: (String, String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  9. def apply[T](f: (String, String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  10. def apply[T](f: (String, String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  11. def apply[T](f: (String, String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  12. def apply[T](f: (String, String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  13. def apply[T](f: (String, String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  14. def apply[T](f: (String, String) ⇒ T)(implicit fpr: Regex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  15. def apply[T](f: (String) ⇒ T)(implicit fpr: Regex = stepParserRegex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  22. 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
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. implicit lazy val implicitParameter: (GWT.this)#ImplicitParam

    Definition Classes
    ImplicitParameters
  25. implicit lazy val implicitParameter1: (GWT.this)#ImplicitParam1

    Definition Classes
    ImplicitParameters
  26. implicit lazy val implicitParameter10: (GWT.this)#ImplicitParam10

    Definition Classes
    ImplicitParameters
  27. implicit lazy val implicitParameter2: (GWT.this)#ImplicitParam2

    Definition Classes
    ImplicitParameters
  28. implicit lazy val implicitParameter3: (GWT.this)#ImplicitParam3

    Definition Classes
    ImplicitParameters
  29. implicit lazy val implicitParameter4: (GWT.this)#ImplicitParam4

    Definition Classes
    ImplicitParameters
  30. implicit lazy val implicitParameter5: (GWT.this)#ImplicitParam5

    Definition Classes
    ImplicitParameters
  31. implicit lazy val implicitParameter6: (GWT.this)#ImplicitParam6

    Definition Classes
    ImplicitParameters
  32. implicit lazy val implicitParameter7: (GWT.this)#ImplicitParam7

    Definition Classes
    ImplicitParameters
  33. implicit lazy val implicitParameter8: (GWT.this)#ImplicitParam8

    Definition Classes
    ImplicitParameters
  34. implicit lazy val implicitParameter9: (GWT.this)#ImplicitParam9

    Definition Classes
    ImplicitParameters
  35. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  36. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  39. 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
  40. 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
  41. def seq[T](f: (Seq[String]) ⇒ T)(implicit fpr: Regex = stepParserRegex): DelimitedStepParser[T]

    Definition Classes
    StepParsers
  42. implicit lazy val stepParserRegex: Regex

    Definition Classes
    StepParsers
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Scripts

Inherited from StepParsers

Inherited from ImplicitParameters

Inherited from AnyRef

Inherited from Any

Ungrouped