Package org.simple4j.wsfeeler.model
Class TestStep
java.lang.Object
org.simple4j.wsfeeler.model.TestStep
- All Implemented Interfaces:
ReportGenerator
- Direct Known Subclasses:
BeanShellStep,DelayStep,WSTestStep
This class represents an abstract test step. Concrete implementation could be for a specific connector/protocol
-
Field Summary
FieldsModifier and TypeFieldDescriptionName of the test stepParent test case objectShort name of the test step.File object of the input properties fileTest step variablesTest suite object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanexecute()Abstract entry point method to execute the test stepvoidgenerateReport(int level) Generates report and prints out in the loggerstatic TestStepgetInstance(String typeOfStep, Map<String, Object> testStepInputVariables, File testStepInputFile, TestCase parent, TestSuite testSuite) Factory method to get an instance of test stepgetProperty(String key) Get test step property for cross referenceResult of the test step executionvoidsetSuccess(Boolean success) toString()
-
Field Details
-
name
Name of the test step -
shortName
Short name of the test step. This will be the input properties filename without the suffix -input.properties -
testStepInputFile
File object of the input properties file -
parent
Parent test case object -
testSuite
Test suite object -
testStepVariables
Test step variables
-
-
Constructor Details
-
TestStep
-
-
Method Details
-
getSuccess
Result of the test step execution- Returns:
- - true if successful
-
setSuccess
-
execute
public abstract boolean execute()Abstract entry point method to execute the test step- Returns:
- true if success
-
getProperty
Get test step property for cross reference- Parameters:
key-- Returns:
-
getInstance
public static TestStep getInstance(String typeOfStep, Map<String, Object> testStepInputVariables, File testStepInputFile, TestCase parent, TestSuite testSuite) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundExceptionFactory method to get an instance of test step -
toString
-
generateReport
public void generateReport(int level) Generates report and prints out in the logger- Specified by:
generateReportin interfaceReportGenerator- Parameters:
level-
-