AllStepsPageCollection extends ScenarioSummaryPageCollection { public int getTotalNumberOfSteps() { return stepResultCounts.size(); } AllStepsPageCollection(List<Report> reports, final String pageTitle); Map<Step, ResultCount> getStepResultCounts(); Set<Step> getSteps(); int getTotalNumberOfSteps(); String getMinimumTimeFromStep(final Step step); int getMinimumTimeScenarioIndexFromStep(final Step step); String getMaximumTimeFromStep(final Step step); int getMaximumTimeScenarioIndexFromStep(final Step step); String getAverageTimeFromStep(final Step step);  }
@Test public void getStepResultsTest() { allStepsPageCollection = new AllStepsPageCollection(getTestReports(), ""); assertThat(allStepsPageCollection.getTotalNumberOfSteps(), is(2)); assertThat(allStepsPageCollection.getTotalNumberOfFailed(), is(1)); assertThat(allStepsPageCollection.getTotalNumberOfPassed(), is(1)); assertThat(allStepsPageCollection.getTotalNumberOfSkipped(), is(1)); }
@Test public void getTotalNumberOfStepsTest() { allStepsPageCollection = new AllStepsPageCollection(getTestReports(), ""); assertThat(allStepsPageCollection.getTotalNumberOfSteps(), is(2)); }