Esempio n. 1
0
 // ******************** Alternative ********************
 Scenario alternative(String id, String title, Scenario scenario, String action) {
   if (id == null) {
     id = "A" + (alternativeFlows.size() + 1);
   }
   currentAlternativeFlow = new AlternativeFlow(id, title, selectedSteps, action);
   currentFlow = currentAlternativeFlow;
   currentFlow.setPrefix(currentFlow.getId().concat("."));
   alternativeFlows.add(currentAlternativeFlow);
   selectedSteps.clear();
   return this;
 }
Esempio n. 2
0
 Scenario exception(String id, String title, Scenario scenario, Object... objects) {
   Condition condition = new Condition(objects);
   if (id == null) {
     id = "E" + (exceptionFlows.size() + 1);
   }
   currentExceptionFlow = new ExceptionFlow(id, title, selectedSteps, condition);
   currentFlow = currentExceptionFlow;
   currentFlow.setPrefix(currentFlow.getId().concat("."));
   exceptionFlows.add(currentExceptionFlow);
   selectedSteps.clear();
   return this;
 }