Script

trait Script

A Script is responsible for analysing a piece of text an creating a sequence of fragments.

It usually uses a ScriptTemplate specifying how to parse the text into block of lines that the Script knows how to transform to fragments.

For example a GWT script (a Scenario) stores functions to create Given/When/Then steps and examples and the LastLinesScriptTemplate extract the last lines of a piece of text and divides them into blocks of Given/When/Then lines based on the number of steps in the Scenario.

class Object
trait Matchable
class Any

Value members

Abstract methods

def fragments(text: String): FragmentsSeq

create fragments corresponding on this sequence based on a piece of text

create fragments corresponding on this sequence based on a piece of text

def isStart: Boolean
Returns:

true if this object marks the beginning of the script

def title: String
Returns:

the title of the script