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 suiteorg.springframework.context.ApplicationContextgetIndentation(int level) org.springframework.context.ApplicationContextintgetTestSuiteVariableValue(String variableName) voidsetConnectorsApplicationContext(org.springframework.context.ApplicationContext mainApplicationContext) voidsetExcludesTestCasesRegex(String excludesTestCasesRegex) voidsetIncludesTestCasesRegex(String includesTestCasesRegex) voidsetTestApplicationContext(org.springframework.context.ApplicationContext testApplicationContext) 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
-
getConnectorsApplicationContext
public org.springframework.context.ApplicationContext getConnectorsApplicationContext() -
setConnectorsApplicationContext
public void setConnectorsApplicationContext(org.springframework.context.ApplicationContext mainApplicationContext) -
getIncludesTestCasesRegex
-
setIncludesTestCasesRegex
-
getExcludesTestCasesRegex
-
setExcludesTestCasesRegex
-
getTestCaseExecutorThreadPoolSize
public int getTestCaseExecutorThreadPoolSize() -
setTestCaseExecutorThreadPoolSize
public void setTestCaseExecutorThreadPoolSize(int testCaseExecutorThreadPoolSize) -
getTestApplicationContext
public org.springframework.context.ApplicationContext getTestApplicationContext() -
setTestApplicationContext
public void setTestApplicationContext(org.springframework.context.ApplicationContext testApplicationContext) -
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
-