Esempio n. 1
0
  public XmlBombSecurityScan(
      TestStep testStep, SecurityScanConfig config, ModelItem parent, String icon) {
    super(testStep, config, parent, icon);
    if (config.getConfig() == null || !(config.getConfig() instanceof XmlBombSecurityScanConfig))
      initXmlBombConfig();
    else xmlBombConfig = (XmlBombSecurityScanConfig) config.getConfig();

    getExecutionStrategy().setImmutable(true);
  }
Esempio n. 2
0
  public GroovySecurityScan(
      TestStep testStep, SecurityScanConfig config, ModelItem parent, String icon) {

    super(testStep, config, parent, icon);
    if (config.getConfig() == null) {
      groovyscc = GroovySecurityScanConfig.Factory.newInstance();
      groovyscc.setExecuteScript(ScriptConfig.Factory.newInstance());
      groovyscc.getExecuteScript().setLanguage("groovy");
      groovyscc.getExecuteScript().setStringValue("");
      config.setConfig(groovyscc);
    } else {
      groovyscc = (GroovySecurityScanConfig) config.getConfig();
      if (groovyscc.getExecuteScript() == null) {
        groovyscc.setExecuteScript(ScriptConfig.Factory.newInstance());
        groovyscc.getExecuteScript().setLanguage("groovy");
        groovyscc.getExecuteScript().setStringValue("");
      }
    }

    scriptEngine = SoapUIScriptEngineRegistry.create(this);

    getExecutionStrategy().setImmutable(true);
  }