Exemplo n.º 1
0
  @Override
  protected boolean hasNext(TestStep testStep, SecurityTestRunContext context) {
    if (!context.hasProperty(PARAMETERS_INITIALIZED)) {
      parameters = new StringToStringMap();
      initParameters(parameters);
      context.put(PARAMETERS_INITIALIZED, "true");
      hasNext = true;
    }

    if (!hasNext) {
      context.remove(PARAMETERS_INITIALIZED);
      scriptEngine.clearVariables();
    }

    return hasNext;
  }