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); }
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); }