Class QtafTestEventPayload
java.lang.Object
de.qytera.qtaf.core.events.payload.QtafTestEventPayload
- All Implemented Interfaces:
IQtafTestEventPayload
- Direct Known Subclasses:
CucumberScenarioEventPayload,TestNGTestEventPayload
Entity class for test events
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDescription of the featureprotected intID of the test featureprotected StringName of the featureprotected String[]All groups that the scenario depends on (see TestNG group dependencies)protected String[]scenario groupsprotected String[]All test methods the scenario depends on (see testNG method dependencies)protected ObjectOriginal event fired by the test framework (TestNG, Cucumber, ...)protected Object[]Values of the parameters that were passed to the scenarioprotected StringDescription of the scenarioprotected DateEnd date of the scenarioprotected StringID of the scenarioprotected StringName of the scenarioprotected Parameter[]Parameters that were passed to the scenarioprotected DateStart date of the scenarioprotected ScenarioStatusStatus of the scenarioprotected longThread ID of the scenarioprotected StringThread name of the scenario -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet featureDescriptionintGet uniqueIdGet featureNameString[]Get groupDependenciesString[]Get groupsString[]Get methodDependenciesGet originalEventObject[]Get parameterValuesGet testDescriptionGet testEndGet methodIdGet testIdGet parametersGet testStartGet scenarioStatuslongGet threadIdGet threadNamesetFeatureDescription(String featureDescription) Set featureDescriptionsetFeatureId(int featureId) Set uniqueIdsetFeatureName(String featureName) Set featureNamesetGroupDependencies(String[] groupDependencies) Set groupDependenciesSet groupssetMethodDependencies(String[] methodDependencies) Set methodDependenciessetOriginalEvent(Object originalEvent) Set originalEventsetParameterValues(Object[] parameterValues) Set parameterValuessetScenarioDescription(String scenarioDescription) Set testDescriptionsetScenarioEnd(Date scenarioEnd) Set testEndsetScenarioId(String scenarioId) Set methodIdsetScenarioName(String scenarioName) Set testIdsetScenarioParameters(Parameter[] scenarioParameters) Set parameterssetScenarioStart(Date scenarioStart) Set testStartsetScenarioStatus(ScenarioStatus scenarioStatus) Set scenarioStatussetThreadId(long threadId) Set threadIdsetThreadName(String threadName) Set threadName
-
Field Details
-
originalEvent
Original event fired by the test framework (TestNG, Cucumber, ...) -
featureId
protected int featureIdID of the test feature -
featureName
Name of the feature -
featureDescription
Description of the feature -
scenarioId
ID of the scenario -
scenarioName
Name of the scenario -
scenarioDescription
Description of the scenario -
scenarioStatus
Status of the scenario -
scenarioStart
Start date of the scenario -
scenarioEnd
End date of the scenario -
threadId
protected long threadIdThread ID of the scenario -
threadName
Thread name of the scenario -
scenarioParameters
Parameters that were passed to the scenario -
parameterValues
Values of the parameters that were passed to the scenario -
groups
scenario groups -
groupDependencies
All groups that the scenario depends on (see TestNG group dependencies) -
methodDependencies
All test methods the scenario depends on (see testNG method dependencies)
-
-
Constructor Details
-
QtafTestEventPayload
public QtafTestEventPayload()
-
-
Method Details
-
getFeatureId
public int getFeatureId()Get uniqueId- Specified by:
getFeatureIdin interfaceIQtafTestEventPayload- Returns:
- uniqueId
-
setFeatureId
Set uniqueId- Parameters:
featureId- UniqueId- Returns:
- this
-
getFeatureName
Get featureName- Specified by:
getFeatureNamein interfaceIQtafTestEventPayload- Returns:
- featureName
-
setFeatureName
Set featureName- Parameters:
featureName- FeatureName- Returns:
- this
-
getFeatureDescription
Get featureDescription- Specified by:
getFeatureDescriptionin interfaceIQtafTestEventPayload- Returns:
- featureDescription
-
setFeatureDescription
Set featureDescription- Parameters:
featureDescription- FeatureDescription- Returns:
- this
-
getScenarioId
Get methodId- Specified by:
getScenarioIdin interfaceIQtafTestEventPayload- Returns:
- methodId
-
setScenarioId
Set methodId- Parameters:
scenarioId- MethodId- Returns:
- this
-
getScenarioName
Get testId- Specified by:
getScenarioNamein interfaceIQtafTestEventPayload- Returns:
- testId
-
setScenarioName
Set testId- Parameters:
scenarioName- TestId- Returns:
- this
-
getScenarioDescription
Get testDescription- Specified by:
getScenarioDescriptionin interfaceIQtafTestEventPayload- Returns:
- testDescription
-
getScenarioStatus
Get scenarioStatus- Specified by:
getScenarioStatusin interfaceIQtafTestEventPayload- Returns:
- scenarioStatus
-
setScenarioStatus
Set scenarioStatus- Parameters:
scenarioStatus- ScenarioStatus- Returns:
- this
-
getScenarioStart
Get testStart- Specified by:
getScenarioStartin interfaceIQtafTestEventPayload- Returns:
- testStart
-
setScenarioStart
Set testStart- Parameters:
scenarioStart- TestStart- Returns:
- this
-
getScenarioEnd
Get testEnd- Specified by:
getScenarioEndin interfaceIQtafTestEventPayload- Returns:
- testEnd
-
setScenarioEnd
Set testEnd- Parameters:
scenarioEnd- TestEnd- Returns:
- this
-
getThreadId
public long getThreadId()Get threadId- Specified by:
getThreadIdin interfaceIQtafTestEventPayload- Returns:
- threadId
-
setThreadId
Set threadId- Parameters:
threadId- ThreadId- Returns:
- this
-
getThreadName
Get threadName- Specified by:
getThreadNamein interfaceIQtafTestEventPayload- Returns:
- threadName
-
setThreadName
Set threadName- Parameters:
threadName- ThreadName- Returns:
- this
-
getScenarioParameters
Get parameters- Returns:
- parameters
-
setScenarioParameters
Set parameters- Parameters:
scenarioParameters- Parameters- Returns:
- this
-
getParameterValues
Get parameterValues- Returns:
- parameterValues
-
setParameterValues
Set parameterValues- Parameters:
parameterValues- ParameterValues- Returns:
- this
-
setScenarioDescription
Set testDescription- Parameters:
scenarioDescription- TestDescription- Returns:
- this
-
getGroups
Get groups- Specified by:
getGroupsin interfaceIQtafTestEventPayload- Returns:
- groups
-
setGroups
Set groups- Parameters:
groups- Groups- Returns:
- this
-
getGroupDependencies
Get groupDependencies- Specified by:
getGroupDependenciesin interfaceIQtafTestEventPayload- Returns:
- groupDependencies
-
setGroupDependencies
Set groupDependencies- Parameters:
groupDependencies- GroupDependencies- Returns:
- this
-
getMethodDependencies
Get methodDependencies- Specified by:
getMethodDependenciesin interfaceIQtafTestEventPayload- Returns:
- methodDependencies
-
setMethodDependencies
Set methodDependencies- Parameters:
methodDependencies- MethodDependencies- Returns:
- this
-
getOriginalEvent
Get originalEvent- Specified by:
getOriginalEventin interfaceIQtafTestEventPayload- Returns:
- originalEvent
-
setOriginalEvent
Set originalEvent- Parameters:
originalEvent- OriginalEvent- Returns:
- this
-