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 StringID of the scenario.protected StringClass name where the feature is implemented.protected StringDescription of the feature.protected StringID of the test feature.protected StringName of the feature.protected StringName of the package where the feature is implemented.protected String[]All groups that the scenario depends on (see TestNG group dependencies).protected String[]scenario groups.protected StringIf there are multiple instances of a scenario (when you use data providers) each scenario instance has its own instance id.protected String[]All test methods the scenario depends on (see testNG method dependencies).protected MethodInfoEntityMethod info.protected ObjectOriginal event fired by the test framework (TestNG, Cucumber, ...).protected ObjectOriginal test instance object.protected Object[]Values of the parameters that were passed to the scenario.protected Class<?>Real class of the test class.protected Annotation[]Annotations of the test class.protected StringDescription of the scenario.protected DateEnd date of the scenario.protected StringID of the scenario.protected StringScenario Method Name.protected StringName of the scenario.protected Parameter[]Parameters that were passed to the scenario.protected DateStart date of the scenario.protected ScenarioStatusStatus of the scenario.protected ThreadThread the test was executed in.protected longThread ID of the scenario.protected StringThread name of the scenario. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet methodId.Get featureClassName.Get featureDescription.Get uniqueId.Get featureName.Get featurePackageName.String[]Get groupDependencies.String[]Get groups.Get instanceId.String[]Get methodDependencies.Get methodInfo.Get methodInfo.Get originalEvent.Get originalTestInstance.Object[]Get parameterValues.Class<?>Get realClass.Get realClassAnnotations.Get testDescription.Get testEnd.Get scenarioId.Get scenarioMethodName.Get testId.Get parameters.Get testStart.Get scenarioStatus.Get thread.longGet threadId.Get threadName.setAbstractScenarioId(String abstractScenarioId) Set methodId.setFeatureClassName(String featureClassName) Set featureClassName.setFeatureDescription(String featureDescription) Set featureDescription.setFeatureId(String featureId) Set uniqueId.setFeatureName(String featureName) Set featureName.setFeaturePackageName(String featurePackageName) Set featurePackageName.setGroupDependencies(String[] groupDependencies) Set groupDependencies.Set groups.setInstanceId(String instanceId) Set instanceId.setMethodDependencies(String[] methodDependencies) Set methodDependencies.setMethodInfo(MethodInfoEntity methodInfo) Set methodInfo.setOriginalEvent(Object originalEvent) Set originalEvent.setOriginalTestInstance(Object originalTestInstance) Set originalTestInstance.setParameterValues(Object[] parameterValues) Set parameterValues.setRealClass(Class<?> realClass) Set realClass.setRealClassAnnotations(Annotation[] realClassAnnotations) Set realClassAnnotations.setScenarioDescription(String scenarioDescription) Set testDescription.setScenarioEnd(Date scenarioEnd) Set testEnd.setScenarioId(String scenarioId) Set scenarioId.setScenarioMethodName(String scenarioMethodName) Set scenarioMethodName.setScenarioName(String scenarioName) Set testId.setScenarioParameters(Parameter[] scenarioParameters) Set parameters.setScenarioStart(Date scenarioStart) Set testStart.setScenarioStatus(ScenarioStatus scenarioStatus) Set scenarioStatus.Set thread.setThreadId(long threadId) Set threadId.setThreadName(String threadName) Set threadName.
-
Field Details
-
originalEvent
Original event fired by the test framework (TestNG, Cucumber, ...). -
originalTestInstance
Original test instance object. -
realClass
Real class of the test class. -
realClassAnnotations
Annotations of the test class. -
methodInfo
Method info. -
featureId
ID of the test feature. -
featureClassName
Class name where the feature is implemented. -
featurePackageName
Name of the package where the feature is implemented. -
featureName
Name of the feature. -
featureDescription
Description of the feature. -
scenarioId
ID of the scenario. -
abstractScenarioId
ID of the scenario. -
instanceId
If there are multiple instances of a scenario (when you use data providers) each scenario instance has its own instance id. -
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. -
thread
Thread the test was executed in. -
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). -
scenarioMethodName
Scenario Method Name.
-
-
Constructor Details
-
QtafTestEventPayload
public QtafTestEventPayload()
-
-
Method Details
-
getFeatureId
Get uniqueId.- Specified by:
getFeatureIdin interfaceIQtafTestEventPayload- Returns:
- uniqueId
-
setFeatureId
Set uniqueId.- Parameters:
featureId- UniqueId- Returns:
- this
-
getRealClass
Get realClass.- Returns:
- realClass
-
setRealClass
Set realClass.- Parameters:
realClass- RealClass- Returns:
- this
-
getRealClassAnnotations
Get realClassAnnotations.- Specified by:
getRealClassAnnotationsin interfaceIQtafTestEventPayload- Returns:
- realClassAnnotations
-
setRealClassAnnotations
Set realClassAnnotations.- Parameters:
realClassAnnotations- RealClassAnnotations- Returns:
- this
-
getMethodInfoEntity
Get methodInfo.- Specified by:
getMethodInfoEntityin interfaceIQtafTestEventPayload- Returns:
- methodInfo
-
setMethodInfo
Set methodInfo.- Parameters:
methodInfo- MethodInfo- Returns:
- this
-
getFeatureClassName
Get featureClassName.- Returns:
- featureClassName
-
setFeatureClassName
Set featureClassName.- Parameters:
featureClassName- FeatureClassName- 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
-
getAbstractScenarioId
Get methodId.- Specified by:
getAbstractScenarioIdin interfaceIQtafTestEventPayload- Returns:
- methodId
-
getInstanceId
Get instanceId.- Specified by:
getInstanceIdin interfaceIQtafTestEventPayload- Returns:
- instanceId
-
setInstanceId
Set instanceId.- Parameters:
instanceId- InstanceId- Returns:
- this
-
getFeaturePackageName
Get featurePackageName.- Returns:
- featurePackageName
-
setFeaturePackageName
Set featurePackageName.- Parameters:
featurePackageName- FeaturePackageName- Returns:
- this
-
getMethodInfo
Get methodInfo.- Returns:
- methodInfo
-
getScenarioId
Get scenarioId.- Specified by:
getScenarioIdin interfaceIQtafTestEventPayload- Returns:
- scenarioId
-
setScenarioId
Set scenarioId.- Parameters:
scenarioId- ScenarioId- Returns:
- this
-
getScenarioMethodName
Get scenarioMethodName.- Specified by:
getScenarioMethodNamein interfaceIQtafTestEventPayload- Returns:
- scenarioMethodName
-
setScenarioMethodName
Set scenarioMethodName.- Parameters:
scenarioMethodName- ScenarioMethodName- Returns:
- this
-
setAbstractScenarioId
Set methodId.- Parameters:
abstractScenarioId- 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
-
getOriginalTestInstance
Get originalTestInstance.- Specified by:
getOriginalTestInstancein interfaceIQtafTestEventPayload- Returns:
- originalTestInstance
-
setOriginalTestInstance
Set originalTestInstance.- Parameters:
originalTestInstance- OriginalTestInstance- Returns:
- this
-
getThread
Get thread.- Returns:
- thread
-
setThread
Set thread.- Parameters:
thread- Thread- Returns:
- this
-