com.automationrockstars.bmo.TestScriptBase Maven / Gradle / Ivy
/*
*
*/
package com.automationrockstars.bmo;
import groovy.lang.Closure;
import groovy.lang.Script;
import java.util.Map;
public abstract class TestScriptBase extends Script {
public String scriptName;
public Object step(Object name, Object execute, Object verify) {
try {
Object execCall = null;
Object verifyCall = null;
if (execute != null) {
execCall = ((Closure) execute).call();
}
if (verify != null) {
verifyCall = ((Closure) verify).call(execCall);
}
return verifyCall;
} finally {
}
}
Object step(Map m) {
return step(m.get("title"), m.get("execute"), m.get("verify"));
}
Object step(String title, Map m) {
return step(title, m.get("execute"), m.get("verify"));
}
public void testScript(String name) {
scriptName = name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy