Class TestSuite
The structure of a TestSuite.
When launch tests with WebRunner.exe, WebEngine will scan all the derived classes of TestSuite within your test DLL. Then it will launch every test cases of the test suite, which is defined in the property TestCases
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
public abstract class TestSuite
Properties
| Improve this Doc View SourceTestCases
A list of TestCases in the Test suite.
When using Data driven test, please generate your test cases from the TestData dynamically. when using fixed regression test campaign, you can initialize your test cases in get method of the property.
Declaration
public abstract KeyValuePair<string, TestCase>[] TestCases { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.KeyValuePair<System.String, TestCase>[] |
Remarks
The KeyValuePair dictionary has two parameters: key and value the key parameter is type of string, its value is the key to obtain test data from the class TestSuiteData. value parameter is type of TestCase, which defines one or more test steps (actions and sub-actions)
Methods
| Improve this Doc View SourceCleanUp(Settings)
Cleanup the global context for the test suite.
Declaration
public virtual void CleanUp(Settings s)
Parameters
Type | Name | Description |
---|---|---|
Settings | s |
Initialize(Settings)
Initialize the global context for the whole test suite.
Declaration
public virtual void Initialize(Settings s)
Parameters
Type | Name | Description |
---|---|---|
Settings | s |
Run()
Run the test suite and all the test cases in it.
Declaration
public TestSuiteReport Run()
Returns
Type | Description |
---|---|
TestSuiteReport |