public SELF a_report_model_with_name(String name) { a_report_model(); reportModel.setClassName(name); for (ScenarioModel model : reportModel.getScenarios()) { model.setClassName(name); } return self(); }
private void createScenarioModel(String description, String testMethodName) { ScenarioModel scenarioModel = new ScenarioModel(); scenarioModel.setClassName(reportModel.getClassName()); scenarioModel.setDescription(description); scenarioModel.setTestMethodName(testMethodName); addDefaultCase(scenarioModel); reportModel.getScenarios().add(scenarioModel); }