Class AllScenariosPageCollection

    • Constructor Detail

      • AllScenariosPageCollection

        public AllScenariosPageCollection​(String pageTitle)
        Constructor.
        Parameters:
        pageTitle - The page title.
    • Method Detail

      • getReports

        public List<Report> getReports()
        Get all reports.
        Returns:
        The list of Report instances.
      • getElementsByFeatureIndex

        public List<Element> getElementsByFeatureIndex​(int featureIndex)
        Get scenarios by feature index.
        Parameters:
        featureIndex - The feature index.
        Returns:
        The list of related Element instances.
      • clearReports

        public void clearReports()
        Empty report list.
      • addReports

        public void addReports​(Report[] reportList)
        Add reports to the existing report list.
        Parameters:
        reportList - An array of Report instances to add.
      • getTotalNumberOfScenarios

        public int getTotalNumberOfScenarios()
        Return the total scenario count.
        Returns:
        The scenario count.
      • hasFailedScenarios

        public boolean hasFailedScenarios()
        Check if there are failed scenarios.
        Returns:
        true if there are failed scenarios.
      • hasFailedScenariosNotPassedOnLastRun

        public boolean hasFailedScenariosNotPassedOnLastRun()
        Check if there are failed scenarios.
        Returns:
        true if there are failed scenarios.
      • hasPassedScenarios

        public boolean hasPassedScenarios()
        Check if there are passed scenarios.
        Returns:
        true if there are passed scenarios.
      • hasSkippedScenarios

        public boolean hasSkippedScenarios()
        Check if there are skipped scenarios.
        Returns:
        true if there are skipped scenarios.
      • hasNotLastRunScenarios

        public boolean hasNotLastRunScenarios()
        Check if there are scenarios run multiple times.
        Returns:
        true if there are scenarios run multiple times.
      • getTotalNumberOfPassedScenarios

        public int getTotalNumberOfPassedScenarios()
        Return the number of passed scenarios.
        Returns:
        The scenario count.
      • getTotalNumberOfFailedScenarios

        public int getTotalNumberOfFailedScenarios()
        Return the number of failed scenarios.
        Returns:
        The scenario count.
      • getTotalNumberOfFailedScenarioWithoutLaterRuns

        public int getTotalNumberOfFailedScenarioWithoutLaterRuns()
        Return the number of scenarios runs that failed and were either single runs or the last of multiple runs.
        Returns:
        The scenario count.
      • getTotalNumberOfSkippedScenarios

        public int getTotalNumberOfSkippedScenarios()
        Return the number of skipped scenarios.
        Returns:
        The scenario count.
      • getTotalNumberOfNotLastScenariosRuns

        public int getTotalNumberOfNotLastScenariosRuns()
        Return the number of scenarios runs that were not the last.
        Returns:
        The scenario count.
      • getTotalDurationString

        public String getTotalDurationString()
        Return a human-readable time string of the total duration.
        Returns:
        The time string.
      • returnStartDateTimeString

        public String returnStartDateTimeString()
        Return the start date and time string of the earliest scenario that was started in the test run.
        Returns:
        The time string.
      • returnEndDateTimeString

        public String returnEndDateTimeString()
        Return the human-readable time and date string of the latest scenario end.
        Returns:
        The time string.
      • getTagFilter

        public Tag getTagFilter()
        Get the current tag filter to filter scenario by a specific tag.
        Returns:
        The Tag to filter by.
      • setTagFilter

        public void setTagFilter​(Tag tagFilter)
        Set the current tag filter to filter scenario by a specific tag.
        Parameters:
        tagFilter - The Tag to filter by.
      • getFeatureFilter

        public Feature getFeatureFilter()
        Return the feature by which scenarios are filtered.
        Returns:
        The Feature to filter by.
      • setFeatureFilter

        public void setFeatureFilter​(Feature featureFilter)
        Set the feature by which scenarios should be filtered.
        Parameters:
        featureFilter - The Feature to filter by.
      • getStepFilter

        public Step getStepFilter()
        Return the step by which scenarios are filtered.
        Returns:
        The Step to filter by.
      • setStepFilter

        public void setStepFilter​(Step stepFilter)
        Set the step by which scenarios should be filtered.
        Parameters:
        stepFilter - The Step to filter by.
      • isGroupPreviousScenarioRuns

        public boolean isGroupPreviousScenarioRuns()
        This determines whether the scenarios run multiple times should be grouped and the show not last run toggle should be shown.
        Overrides:
        isGroupPreviousScenarioRuns in class PageCollection
        Returns:
        true means scenarios should be grouped and toggle should be shown.
      • setGroupPreviousScenarioRuns

        public void setGroupPreviousScenarioRuns​(boolean groupPreviousScenarioRuns)
        Set whether the scenarios run multiple times should be grouped and the show not last run toggle should be shown.
        Overrides:
        setGroupPreviousScenarioRuns in class PageCollection
        Parameters:
        groupPreviousScenarioRuns - true means scenarios should be grouped and toggle should be shown.
      • isExpandPreviousScenarioRuns

        public boolean isExpandPreviousScenarioRuns()
        This determines whether the not last run elements should be expanded and shown.
        Overrides:
        isExpandPreviousScenarioRuns in class PageCollection
        Returns:
        true means it should be expanded.
      • setExpandPreviousScenarioRuns

        public void setExpandPreviousScenarioRuns​(boolean expandPreviousScenarioRuns)
        Set whether the not last run elements should be expanded and shown.
        Overrides:
        setExpandPreviousScenarioRuns in class PageCollection
        Parameters:
        expandPreviousScenarioRuns - true means elements should be expanded.