Package org.simple4j.wsfeeler.model
Class TestSuite
java.lang.Object
org.simple4j.wsfeeler.model.TestSuite
This class represents the test suite and entry point to trigger execution of test suite.
TestSuite consists of nested hierarchy of TestCases which can contain TestSteps.
Sibling test cases are executed in parallel and the test steps are executed in ascending sequence.
More details about the usage and structure of the test suite are documented in readme files and
test step configuration files under src/test/resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFailedTestCases(TestCase testCase) booleancanExecute(String testCaseName) booleanexecute()This is the entrypoint method to trigger execution of the test suitegetIndentation(int level) org.springframework.context.ApplicationContextintgetTestSuiteVariableValue(String variableName) voidsetExcludesTestCasesRegex(String excludesTestCasesRegex) voidsetIncludesTestCasesRegex(String includesTestCasesRegex) voidsetMainApplicationContext(org.springframework.context.ApplicationContext mainApplicationContext) voidsetTestCaseExecutorThreadPoolSize(int testCaseExecutorThreadPoolSize) voidsetTestSuiteDirectory(File testSuiteDirectory) voidsetTestSuiteRoot(String testSuiteRoot) voidsetTestSuiteVariables(Map<String, Object> testSuiteVariables)
-
Constructor Details
-
TestSuite
public TestSuite()
-
-
Method Details
-
getTestSuiteRoot
-
setTestSuiteRoot
-
getTestSuiteDirectory
-
setTestSuiteDirectory
-
getMainApplicationContext
public org.springframework.context.ApplicationContext getMainApplicationContext() -
setMainApplicationContext
public void setMainApplicationContext(org.springframework.context.ApplicationContext mainApplicationContext) -
getIncludesTestCasesRegex
-
setIncludesTestCasesRegex
-
getExcludesTestCasesRegex
-
setExcludesTestCasesRegex
-
getTestCaseExecutorThreadPoolSize
public int getTestCaseExecutorThreadPoolSize() -
setTestCaseExecutorThreadPoolSize
public void setTestCaseExecutorThreadPoolSize(int testCaseExecutorThreadPoolSize) -
execute
public boolean execute()This is the entrypoint method to trigger execution of the test suite- Returns:
- - success boolean response
-
canExecute
-
getTestSuiteVariableValue
-
getTestSuiteVariables
-
setTestSuiteVariables
-
addFailedTestCases
-
getTestCases
-
getFailedTestCases
-
getIndentation
-