Package de.qytera.qtaf.cucumber.entity
Class QTAFCucumberScenarioEntity
java.lang.Object
de.qytera.qtaf.cucumber.entity.QTAFCucumberScenarioEntity
Entity class that holds information about a scenario
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeatureTag(String key, String value) Add feature tagaddGroupName(String groupName) Add group nameaddScenarioTag(String key, String value) Add scenario tagaddScenarioTag(String key, List<String> values) Add scenario tagaddTestSet(String testSet) Add test setbooleanbelongsToAllTestSets(List<String> names) Check if scenario entity belongs to all of the given test setsbooleanbelongsToAnyTestSet(List<String> testSets) Check if scenario entity belongs to any of the given test setsbooleanbelongsToTestSet(String testSet) Check if scenario entity belongs to test setGet featureNamegetFeatureTag(String key) Get feature TagGet featureTagsGet groupNamesGet scenarioNamegetScenarioTag(String key) Get scenario TagGet scenarioTagsGet test setsbooleanhasAllGroupNames(List<String> names) Check if scenario entity has all of the given group namesbooleanhasAnyGroupName(List<String> names) Check if scenario entity has any of the given group namesbooleanhasFeatureTag(String key) Check if feature tag existsbooleanhasGroupName(String groupName) Check if scenario entity has group namebooleanhasScenarioTag(String key) Check if scenario tag existsParse group tagParse test set tagremoveFeatureTag(String key) Remove feature tagremoveGroupName(String groupName) Remove group nameremoveScenarioTag(String key) Remove scenario tagremoveTestSet(String testSet) Remove test setsetFeatureName(String featureName) Set featureNamesetFeatureTags(Map<String, String> featureTags) Set featureTagssetGroupNames(List<String> groupNames) Set groupNamessetScenarioName(String scenarioName) Set scenarioNamesetScenarioTags(Map<String, List<String>> scenarioTags) Set scenarioTagssetTestSet(List<String> testSets) Set test sets
-
Constructor Details
-
QTAFCucumberScenarioEntity
public QTAFCucumberScenarioEntity()
-
-
Method Details
-
getFeatureName
Get featureName- Returns:
- featureName
-
setFeatureName
Set featureName- Parameters:
featureName- FeatureName- Returns:
- this
-
getFeatureTag
Get feature Tag- Parameters:
key- Tag key- Returns:
- feature Tag value
-
getFeatureTags
Get featureTags- Returns:
- featureTags
-
hasFeatureTag
Check if feature tag exists- Parameters:
key- Tag key- Returns:
- true if feature tag exists, false otherwise
-
addFeatureTag
Add feature tag- Parameters:
key- Tag keyvalue- Tag value- Returns:
- this
-
setFeatureTags
Set featureTags- Parameters:
featureTags- FeatureTags- Returns:
- this
-
removeFeatureTag
Remove feature tag- Parameters:
key- Tag key- Returns:
- this
-
getScenarioName
Get scenarioName- Returns:
- scenarioName
-
setScenarioName
Set scenarioName- Parameters:
scenarioName- ScenarioName- Returns:
- this
-
getScenarioTag
Get scenario Tag- Parameters:
key- Tag key- Returns:
- scenario Tag value
-
getScenarioTags
Get scenarioTags- Returns:
- scenarioTags
-
hasScenarioTag
Check if scenario tag exists- Parameters:
key- Tag key- Returns:
- true if scenario tag exists, false otherwise
-
addScenarioTag
Add scenario tag- Parameters:
key- Tag keyvalue- Tag value- Returns:
- this
-
addScenarioTag
Add scenario tag- Parameters:
key- Tag keyvalues- List of values- Returns:
- this
-
setScenarioTags
Set scenarioTags- Parameters:
scenarioTags- ScenarioTags- Returns:
- this
-
removeScenarioTag
Remove scenario tag- Parameters:
key- Tag key- Returns:
- this
-
getGroupNames
Get groupNames- Returns:
- groupNames
-
addGroupName
Add group name- Parameters:
groupName- Name of group- Returns:
- this
-
setGroupNames
Set groupNames- Parameters:
groupNames- GroupNames- Returns:
- this
-
hasGroupName
Check if scenario entity has group name- Parameters:
groupName- Group name- Returns:
- true if entity has group name, false otherwise
-
hasAllGroupNames
Check if scenario entity has all of the given group names- Parameters:
names- List of group names- Returns:
- true if entity has all of the given group names, false otherwise
-
hasAnyGroupName
Check if scenario entity has any of the given group names- Parameters:
names- List of group names- Returns:
- true if entity has at least one of the given group names, false otherwise
-
getTestSets
Get test sets- Returns:
- List of test sets
-
addTestSet
Add test set- Parameters:
testSet- Name of test set- Returns:
- this
-
setTestSet
Set test sets- Parameters:
testSets- List of test sets- Returns:
- this
-
removeTestSet
Remove test set- Parameters:
testSet- test set- Returns:
- this
-
belongsToTestSet
Check if scenario entity belongs to test set- Parameters:
testSet- test set name- Returns:
- true if entity belongs to test set, false otherwise
-
belongsToAnyTestSet
Check if scenario entity belongs to any of the given test sets- Parameters:
testSets- List of test sets- Returns:
- true if entity belongs at least to one of the given test sets, false otherwise
-
belongsToAllTestSets
Check if scenario entity belongs to all of the given test sets- Parameters:
names- List of test sets- Returns:
- true if entity belongs to all of the given test sets, false otherwise
-
removeGroupName
Remove group name- Parameters:
groupName- Group name- Returns:
- this
-
parseGroupTags
Parse group tag- Returns:
- this
-
parseTestSetTags
Parse test set tag- Returns:
- this
-