public abstract class SAFSSteps
extends java.lang.Object
It is not absolutely necessary to subclass this class, but it is necessary to provide the functionality provided herein to any cukes step definitions class planning to use the SAFS framework in its implementation.
The functionality provided is, essentially:
Note this abstract class MUST NOT attempt to implement or even appear to implement any Cukes step definitions or Hook implementations directly. The Cukes runtime will initialization runtime errors and abort execution to avoid DuplicateStepDefinition errors if it thinks it is attempting to load multiple copies of the same Hook or step definition via subclassing.
JSAFSDriver
,
TestRecordData.getStatusCode()
,
TestRecordData.getStatusInfo()
,
StatusCodes
Modifier and Type | Field and Description |
---|---|
protected static TestRecordHelper |
helper
Access to a SAFS TestRecordHelper to retrieve status information about SAFS execution.
|
protected static JSAFSDriver |
safs
Optional access to the underlying JSAFSDriver exposing a great deal of SAFS functionality.
|
protected static StepDefinitions |
safsstep
Access to predefined SAFS Cukes StepDefinition implementations callable from custom step definition implementations.
|
Constructor and Description |
---|
SAFSSteps() |
Modifier and Type | Method and Description |
---|---|
abstract void |
beforeAll()
All subclass step definition implementations MUST implement a beforeAll Cukes hook using the
cucumber.api.java.Before hook annotation.
|
protected static TestRecordHelper helper
protected static StepDefinitions safsstep
protected static JSAFSDriver safs
public abstract void beforeAll()
The method signature and implementation for the concrete implementation should minimally be:
@JSAFSBefore(order=10)
public void beforeAll(){
safsstep.beforeAll();
}
Before
Copyright © SAS Institute. All Rights Reserved.