Class AllScenariosPageCollection
- java.lang.Object
-
- com.trivago.cluecumber.engine.rendering.pages.pojos.pagecollections.PageCollection
-
- com.trivago.cluecumber.engine.rendering.pages.pojos.pagecollections.AllScenariosPageCollection
-
public class AllScenariosPageCollection extends PageCollection implements Visitable
Page collection for the scenario overview page.
-
-
Constructor Summary
Constructors Constructor Description AllScenariosPageCollection(String pageTitle)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PageVisitor visitor)Method to accept aPageVisitor.voidaddReports(Report[] reportList)Add reports to the existing report list.voidclearReports()Empty report list.AllScenariosPageCollectionclone()Function to clone theAllScenariosPageCollectionincluding all included data.List<Element>getElementsByFeatureIndex(int featureIndex)Get scenarios by feature index.FeaturegetFeatureFilter()Return the feature by which scenarios are filtered.List<Report>getReports()Get all reports.StepgetStepFilter()Return the step by which scenarios are filtered.TaggetTagFilter()Get the current tag filter to filter scenario by a specific tag.StringgetTotalDurationString()Return a human-readable time string of the total duration.intgetTotalNumberOfFailedScenarios()Return the number of failed scenarios.intgetTotalNumberOfPassedScenarios()Return the number of passed scenarios.intgetTotalNumberOfScenarios()Return the total scenario count.intgetTotalNumberOfSkippedScenarios()Return the number of skipped scenarios.booleanhasFailedScenarios()Check if there are failed scenarios.booleanhasPassedScenarios()Check if there are passed scenarios.booleanhasSkippedScenarios()Check if there are skipped scenarios.StringreturnEndDateTimeString()Return the human-readable time and date string of the latest scenario end.StringreturnStartDateTimeString()Return the start date and time string of the earliest scenario that was started in the test run.voidsetFeatureFilter(Feature featureFilter)Set the feature by which scenarios should be filtered.voidsetStepFilter(Step stepFilter)Set the step by which scenarios should be filtered.voidsetTagFilter(Tag tagFilter)Set the current tag filter to filter scenario by a specific tag.-
Methods inherited from class com.trivago.cluecumber.engine.rendering.pages.pojos.pagecollections.PageCollection
getCustomParameters, getDisplayMode, getNavigationLinks, getPageTitle, getReportDetails, hasCustomParameters, isExpandAttachments, isExpandBeforeAfterHooks, isExpandDocStrings, isExpandStepHooks, setCustomParameters, setDisplayMode, setExpandAttachments, setExpandBeforeAfterHooks, setExpandDocStrings, setExpandStepHooks, setNavigationLinks
-
-
-
-
Constructor Detail
-
AllScenariosPageCollection
public AllScenariosPageCollection(String pageTitle)
Constructor.- Parameters:
pageTitle- The page title.
-
-
Method Detail
-
getElementsByFeatureIndex
public List<Element> getElementsByFeatureIndex(int featureIndex)
Get scenarios by feature index.- Parameters:
featureIndex- The feature index.- Returns:
- The list of related
Elementinstances.
-
clearReports
public void clearReports()
Empty report list.
-
addReports
public void addReports(Report[] reportList)
Add reports to the existing report list.- Parameters:
reportList- An array ofReportinstances 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.
-
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.
-
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.
-
getTotalNumberOfSkippedScenarios
public int getTotalNumberOfSkippedScenarios()
Return the number of skipped scenarios.- 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
Tagto filter by.
-
setTagFilter
public void setTagFilter(Tag tagFilter)
Set the current tag filter to filter scenario by a specific tag.- Parameters:
tagFilter- TheTagto filter by.
-
getFeatureFilter
public Feature getFeatureFilter()
Return the feature by which scenarios are filtered.- Returns:
- The
Featureto filter by.
-
setFeatureFilter
public void setFeatureFilter(Feature featureFilter)
Set the feature by which scenarios should be filtered.- Parameters:
featureFilter- TheFeatureto filter by.
-
getStepFilter
public Step getStepFilter()
Return the step by which scenarios are filtered.- Returns:
- The
Stepto filter by.
-
setStepFilter
public void setStepFilter(Step stepFilter)
Set the step by which scenarios should be filtered.- Parameters:
stepFilter- TheStepto filter by.
-
clone
public AllScenariosPageCollection clone() throws CloneNotSupportedException
Function to clone theAllScenariosPageCollectionincluding all included data.- Overrides:
clonein classPageCollection- Returns:
- The clone of the
AllScenariosPageCollection - Throws:
CloneNotSupportedException- Thrown if cloning failed.
-
accept
public void accept(PageVisitor visitor) throws CluecumberException
Method to accept aPageVisitor.- Specified by:
acceptin interfaceVisitable- Parameters:
visitor- ThePageVisitorinstance.- Throws:
CluecumberException- thrown on any error.
-
-