docs » cp.spec.Run.This
A token passed to test functions to allow them to indicate if a test run will complete asynchronously.
- Constants - Useful values which cannot be changed
- state
- Functions - API calls offered directly by the extension
- defaultTimeout
- Constructors - API calls which return an object, typically one that offers API methods
- This
- Methods - API calls which can only be made on an object returned by a constructor
- abort
- cleanup
- done
- expectAbort
- expectFail
- fail
- isActive
- isDone
- isWaiting
- log
- prepare
- run
- toObserver
- wait
Signature | cp.spec.Run.This.state |
---|---|
Type | Constant |
Description | A collection of states that a Run.This can be in. |
Notes |
|
Signature | cp.spec.Run.This.defaultTimeout([timeout]) -> number |
---|---|
Type | Function |
Description | Gets and/or sets the default timeout for asynchronous tests. |
Parameters |
|
Returns |
|
Signature | cp.spec.Run.This(run, actionFn, index) -> cp.spec.Run.This |
---|---|
Type | Constructor |
Description | Creates a new Run.This instance for a Run. |
Parameters |
|
Returns |
|
Signature | cp.spec.Run.This:abort([message]) |
---|---|
Type | Method |
Description | Indicates the stage has aborted. |
Parameters |
|
Signature | cp.spec.Run.This:cleanup() |
---|---|
Type | Method |
Description | Cleans up This after a step. |
Signature | cp.spec.Run.This:done() |
---|---|
Type | Method |
Description | Indicates that the test is completed. |
Signature | cp.spec.Run.This:expectAbort([messagePattern]) -> Run.This |
---|---|
Type | Method |
Description | Indicates that this spec is expecting an abort/error to occur. |
Parameters |
|
Returns |
|
Signature | cp.spec.Run.This:expectFail([messagePattern]) -> Run.This |
---|---|
Type | Method |
Description | Indicates that this spec is expecting an assert/fail to occur. |
Parameters |
|
Returns |
|
Signature | cp.spec.Run.This:fail([message]) |
---|---|
Type | Method |
Description | Indicates the run has failed. |
Parameters |
|
Signature | cp.spec.Run.This:isActive() -> boolean |
---|---|
Type | Method |
Description | Checks if the this is in an active state - either running or waiting . |
Returns |
|
Signature | cp.spec.Run.This:isDone() -> boolean |
---|---|
Type | Method |
Description | Returns true if this is done. |
Signature | cp.spec.Run.This:isWaiting() -> boolean |
---|---|
Type | Method |
Description | Checks if the Run is waiting for this execution to complete via the |
Returns |
|
Signature | cp.spec.Run.This:log(message[, ...]) |
---|---|
Type | Method |
Description | When the current Run is in debug mode, output the message to the console. |
Parameters |
|
Signature | cp.spec.Run.This:prepare() |
---|---|
Type | Method |
Description | Prepares this to run. |
Signature | cp.spec.Run.This:run() -> cp.spec.Run |
---|---|
Type | Method |
Description | Returns the current Run |
Signature | cp.spec.Run.This:toObserver([onNext[, onError[, onCompleted]]) -> cp.rx.Observer |
---|---|
Type | Method |
Description | Creates an Observer. If the onNext /onError /onCompleted functions are |
Parameters |
|
Signature | cp.spec.Run.This:wait([timeout]) |
---|---|
Type | Method |
Description | Indicates that the test is continuing asynchronously, and will |
Parameters |
|
Notes |
|