Class TestSuite

java.lang.Object
org.simple4j.wsfeeler.model.TestSuite

public class TestSuite extends Object
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 Details

    • TestSuite

      public TestSuite()
  • Method Details

    • getTestSuiteRoot

      public String getTestSuiteRoot()
    • setTestSuiteRoot

      public void setTestSuiteRoot(String testSuiteRoot)
    • getTestSuiteDirectory

      public File getTestSuiteDirectory()
    • setTestSuiteDirectory

      public void setTestSuiteDirectory(File testSuiteDirectory)
    • getMainApplicationContext

      public org.springframework.context.ApplicationContext getMainApplicationContext()
    • setMainApplicationContext

      public void setMainApplicationContext(org.springframework.context.ApplicationContext mainApplicationContext)
    • getIncludesTestCasesRegex

      public String getIncludesTestCasesRegex()
    • setIncludesTestCasesRegex

      public void setIncludesTestCasesRegex(String includesTestCasesRegex)
    • getExcludesTestCasesRegex

      public String getExcludesTestCasesRegex()
    • setExcludesTestCasesRegex

      public void setExcludesTestCasesRegex(String excludesTestCasesRegex)
    • 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

      public boolean canExecute(String testCaseName)
    • getTestSuiteVariableValue

      public Object getTestSuiteVariableValue(String variableName)
    • getTestSuiteVariables

      public Map<String,Object> getTestSuiteVariables()
    • setTestSuiteVariables

      public void setTestSuiteVariables(Map<String,Object> testSuiteVariables)
    • addFailedTestCases

      public void addFailedTestCases(TestCase testCase)
    • getTestCases

      public List<TestCase> getTestCases()
    • getFailedTestCases

      public List<TestCase> getFailedTestCases()
    • getIndentation

      public StringBuilder getIndentation(int level)