Class QTAFCucumberScenarioEntity

java.lang.Object
de.qytera.qtaf.cucumber.entity.QTAFCucumberScenarioEntity

public class QTAFCucumberScenarioEntity extends Object
Entity class that holds information about a scenario
  • Constructor Details

    • QTAFCucumberScenarioEntity

      public QTAFCucumberScenarioEntity()
  • Method Details

    • getFeatureName

      public String getFeatureName()
      Get featureName
      Returns:
      featureName
    • setFeatureName

      public QTAFCucumberScenarioEntity setFeatureName(String featureName)
      Set featureName
      Parameters:
      featureName - FeatureName
      Returns:
      this
    • getFeatureTag

      public String getFeatureTag(String key)
      Get feature Tag
      Parameters:
      key - Tag key
      Returns:
      feature Tag value
    • getFeatureTags

      public Map<String,String> getFeatureTags()
      Get featureTags
      Returns:
      featureTags
    • hasFeatureTag

      public boolean hasFeatureTag(String key)
      Check if feature tag exists
      Parameters:
      key - Tag key
      Returns:
      true if feature tag exists, false otherwise
    • addFeatureTag

      public QTAFCucumberScenarioEntity addFeatureTag(String key, String value)
      Add feature tag
      Parameters:
      key - Tag key
      value - Tag value
      Returns:
      this
    • setFeatureTags

      public QTAFCucumberScenarioEntity setFeatureTags(Map<String,String> featureTags)
      Set featureTags
      Parameters:
      featureTags - FeatureTags
      Returns:
      this
    • removeFeatureTag

      public QTAFCucumberScenarioEntity removeFeatureTag(String key)
      Remove feature tag
      Parameters:
      key - Tag key
      Returns:
      this
    • getScenarioName

      public String getScenarioName()
      Get scenarioName
      Returns:
      scenarioName
    • setScenarioName

      public QTAFCucumberScenarioEntity setScenarioName(String scenarioName)
      Set scenarioName
      Parameters:
      scenarioName - ScenarioName
      Returns:
      this
    • getScenarioTag

      public List<String> getScenarioTag(String key)
      Get scenario Tag
      Parameters:
      key - Tag key
      Returns:
      scenario Tag value
    • getScenarioTags

      public Map<String,List<String>> getScenarioTags()
      Get scenarioTags
      Returns:
      scenarioTags
    • hasScenarioTag

      public boolean hasScenarioTag(String key)
      Check if scenario tag exists
      Parameters:
      key - Tag key
      Returns:
      true if scenario tag exists, false otherwise
    • addScenarioTag

      public QTAFCucumberScenarioEntity addScenarioTag(String key, String value)
      Add scenario tag
      Parameters:
      key - Tag key
      value - Tag value
      Returns:
      this
    • addScenarioTag

      public QTAFCucumberScenarioEntity addScenarioTag(String key, List<String> values)
      Add scenario tag
      Parameters:
      key - Tag key
      values - List of values
      Returns:
      this
    • setScenarioTags

      public QTAFCucumberScenarioEntity setScenarioTags(Map<String,List<String>> scenarioTags)
      Set scenarioTags
      Parameters:
      scenarioTags - ScenarioTags
      Returns:
      this
    • removeScenarioTag

      public QTAFCucumberScenarioEntity removeScenarioTag(String key)
      Remove scenario tag
      Parameters:
      key - Tag key
      Returns:
      this
    • getGroupNames

      public List<String> getGroupNames()
      Get groupNames
      Returns:
      groupNames
    • addGroupName

      public QTAFCucumberScenarioEntity addGroupName(String groupName)
      Add group name
      Parameters:
      groupName - Name of group
      Returns:
      this
    • setGroupNames

      public QTAFCucumberScenarioEntity setGroupNames(List<String> groupNames)
      Set groupNames
      Parameters:
      groupNames - GroupNames
      Returns:
      this
    • hasGroupName

      public boolean hasGroupName(String groupName)
      Check if scenario entity has group name
      Parameters:
      groupName - Group name
      Returns:
      true if entity has group name, false otherwise
    • hasAllGroupNames

      public boolean hasAllGroupNames(List<String> names)
      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

      public boolean hasAnyGroupName(List<String> names)
      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

      public List<String> getTestSets()
      Get test sets
      Returns:
      List of test sets
    • addTestSet

      public QTAFCucumberScenarioEntity addTestSet(String testSet)
      Add test set
      Parameters:
      testSet - Name of test set
      Returns:
      this
    • setTestSet

      public QTAFCucumberScenarioEntity setTestSet(List<String> testSets)
      Set test sets
      Parameters:
      testSets - List of test sets
      Returns:
      this
    • removeTestSet

      public QTAFCucumberScenarioEntity removeTestSet(String testSet)
      Remove test set
      Parameters:
      testSet - test set
      Returns:
      this
    • belongsToTestSet

      public boolean belongsToTestSet(String testSet)
      Check if scenario entity belongs to test set
      Parameters:
      testSet - test set name
      Returns:
      true if entity belongs to test set, false otherwise
    • belongsToAnyTestSet

      public boolean belongsToAnyTestSet(List<String> testSets)
      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

      public boolean belongsToAllTestSets(List<String> names)
      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

      public QTAFCucumberScenarioEntity removeGroupName(String groupName)
      Remove group name
      Parameters:
      groupName - Group name
      Returns:
      this
    • parseGroupTags

      public QTAFCucumberScenarioEntity parseGroupTags()
      Parse group tag
      Returns:
      this
    • parseTestSetTags

      public QTAFCucumberScenarioEntity parseTestSetTags()
      Parse test set tag
      Returns:
      this