new Step(name, income, outcome [, usage] [, actions] [, expected] [, complete] [, incomplete] [, before] [, after])
Creates instance of step.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
name |
string | Step name. |
||
income |
object | Income state. |
||
outcome |
object | Outcome state. |
||
usage |
number |
<optional> |
1 | Usage number. |
actions |
Array.<string> |
<optional> |
[] | Step actions. |
expected |
Array.<string> |
<optional> |
[] | Step expectations. |
complete |
Array.<string> |
<optional> <nullable> |
List of completenesses. |
|
incomplete |
Array.<string> |
<optional> <nullable> |
List of incompletenesses. |
|
before |
string |
<optional> <nullable> |
Name of step, which should be executed after this. |
|
after |
string |
<optional> <nullable> |
Name of step, which this step should be executed after. |
- Source:
Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
name |
string | Step name. |
||
income |
object | Income state. |
||
outcome |
object | Outcome state. |
||
usage |
number |
<optional> |
1 | Usage number. |
actions |
number |
<optional> |
[] | Step actions. |
expected |
Array.<string> |
<optional> |
[] | Step expectations. |
complete |
Array.<string> |
<optional> <nullable> |
List of completenesses. |
|
incomplete |
Array.<string> |
<optional> <nullable> |
List of incompletenesses. |
|
before |
string |
<optional> <nullable> |
Name of step, which should be executed after this. |
|
after |
string |
<optional> <nullable> |
Name of step, which this step should be executed after. |