@Test void getStepStatistics() { givenScenarioPagesAndSteps(); whenGettingPageStatisticsForPage1SecondOccurrence(); expectTotalNumberOfStepsInStatisticsEquals(7); expectTotalNumberOfStepsInPageOccurrenceInStatisticsEquals(4); expectTotalNumberOfPagesInScenarioInStatisticsEquals(3); }
public StepStatistics getStepStatistics(final String pageName, final int pageOccurrence) { StepStatistics statistics = new StepStatistics(); statistics.setTotalNumberOfStepsInScenario(getTotalNumberOfStepsInScenario()); statistics .setTotalNumberOfStepsInPageOccurrence(getTotalNumberOfStepsInPageOccurrence(pageName, pageOccurrence)); statistics.setTotalNumberOfPagesInScenario(getTotalNumberOfPagesInScenario()); return statistics; }
ScenarioPageSteps { public StepStatistics getStepStatistics(final String pageName, final int pageOccurrence) { StepStatistics statistics = new StepStatistics(); statistics.setTotalNumberOfStepsInScenario(getTotalNumberOfStepsInScenario()); statistics .setTotalNumberOfStepsInPageOccurrence(getTotalNumberOfStepsInPageOccurrence(pageName, pageOccurrence)); statistics.setTotalNumberOfPagesInScenario(getTotalNumberOfPagesInScenario()); return statistics; } }
ScenarioPageSteps { public StepStatistics getStepStatistics(final String pageName, final int pageOccurrence) { StepStatistics statistics = new StepStatistics(); statistics.setTotalNumberOfStepsInScenario(getTotalNumberOfStepsInScenario()); statistics .setTotalNumberOfStepsInPageOccurrence(getTotalNumberOfStepsInPageOccurrence(pageName, pageOccurrence)); statistics.setTotalNumberOfPagesInScenario(getTotalNumberOfPagesInScenario()); return statistics; }  }
ScenarioPageSteps { public StepStatistics getStepStatistics(final String pageName, final int pageOccurrence) { StepStatistics statistics = new StepStatistics(); statistics.setTotalNumberOfStepsInScenario(getTotalNumberOfStepsInScenario()); statistics .setTotalNumberOfStepsInPageOccurrence(getTotalNumberOfStepsInPageOccurrence(pageName, pageOccurrence)); statistics.setTotalNumberOfPagesInScenario(getTotalNumberOfPagesInScenario()); return statistics; }  Scenario getScenario(); void setScenario(final Scenario scenario); ScenarioStatistics getScenarioStatistics(); UseCase getUseCase(); void setUseCase(final UseCase useCase); List<PageSteps> getPagesAndSteps(); void setPagesAndSteps(final List<PageSteps> pagesAndSteps); int getTotalNumberOfStepsInScenario(); StepStatistics getStepStatistics(final String pageName, final int pageOccurrence); int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence); StepDescription getStepDescription(final String pageName, final int pageOccurrence, final int stepInPageOccurrence); }
ScenarioPageSteps { public StepStatistics getStepStatistics(final String pageName, final int pageOccurrence) { StepStatistics statistics = new StepStatistics(); statistics.setTotalNumberOfStepsInScenario(getTotalNumberOfStepsInScenario()); statistics .setTotalNumberOfStepsInPageOccurrence(getTotalNumberOfStepsInPageOccurrence(pageName, pageOccurrence)); statistics.setTotalNumberOfPagesInScenario(getTotalNumberOfPagesInScenario()); return statistics; }  Scenario getScenario(); void setScenario(final Scenario scenario); ScenarioStatistics getScenarioStatistics(); UseCase getUseCase(); void setUseCase(final UseCase useCase); List<PageSteps> getPagesAndSteps(); void setPagesAndSteps(final List<PageSteps> pagesAndSteps); int getTotalNumberOfStepsInScenario(); StepStatistics getStepStatistics(final String pageName, final int pageOccurrence); int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence); StepDescription getStepDescription(final String pageName, final int pageOccurrence, final int stepInPageOccurrence);  }