public class TestCaseMain
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
beforeStart()Setup test case or test suite before executing. |
|
public static Map<String, Object> |
getGlobalVariables(String profileName) |
|
public static Map<String, Object> |
getProtectedGlobalVariables() |
|
public static ScriptEngine |
getScriptEngine() |
|
public static void |
invokeEndSuite(String testSuiteId) |
|
public static void |
invokeStartSuite(String testSuiteId) |
|
public static void |
logGlobalVariableError(Exception e) |
|
public static TestResult |
runFeatureFile(String featureFile) |
|
public static TestResult |
runTestCase(String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl) |
|
public static TestResult |
runTestCase(String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl, boolean doCleanUp) |
|
public static TestResult |
runTestCase(String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl, boolean isMain, boolean doCleanUp) |
|
public static TestResult |
runTestCase(String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl, boolean doCleanUp, Map<String, String> tcProperties) |
|
public static TestResult |
runTestCase(String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl, boolean isMain, boolean doCleanUp, Map<String, String> tcProperties) |
|
public static void |
runTestCaseBindingRawScript(String testScript, String testCaseId, File testCaseBindingFile, FailureHandling flowControl, boolean doCleanUp) |
|
public static TestResult |
runTestCaseRawScript(String testScript, String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl) |
|
public static TestResult |
runTestCaseRawScript(String testScript, String testCaseId, TestCaseBinding testCaseBinding, FailureHandling flowControl, boolean doCleanUp) |
|
public static TestResult |
runWSVerificationScript(String verificationScript, FailureHandling flowControl, boolean doCleanUp) |
|
public static TestResult |
runWSVerificationScript(TestCaseBinding testCaseBinding, String verificationScript, FailureHandling flowControl, boolean doCleanUp) |
|
public static void |
setUpScriptEngineAndScriptClasses()Sets up the script engine and the classes a script can reference. |
|
public static void |
startTestCaseBinding(String testCaseId, File testCaseBindingFile) |
|
public static void |
startTestCaseBinding(String testCaseId, File testCaseBindingFile, Map<String, String> tcProperties) |
|
public static void |
startTestSuite(String testSuiteId, Map<String, String> suiteProperties, File testCaseBindingFile) |
|
public static void |
startTestSuiteAfterListeners(String testSuiteId) |
|
public static void |
startTestSuiteBeforeListeners(String testSuiteId) |
Setup test case or test suite before executing. CustomKeywords now has many custom keyword static methods, each one is named with format [packageName].[className].[keywordName] but Groovy compiler itself cannot invoke that formatted name. Therefore, we must change the meta class of CustomKeywords to another one.
Sets up the script engine and the classes a script can reference. Called by beforeStart(), and directly by callers that only need Global Variables resolved and so can skip log reconfiguration and Test Listener loading - neither of which can change a resolved value.