Show / Hide Table of Contents

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

Inheritance
Object
TestSuite
TestSuiteApp
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
public abstract class TestSuite

Properties

| Edit this page View Source

TestCases

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
KeyValuePair<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

| Edit this page View Source

CleanUp(Settings)

Cleanup the global context for the test suite.

Declaration
public virtual void CleanUp(Settings s)
Parameters
Type Name Description
Settings s
| Edit this page View Source

Initialize(Settings)

Initialize the global context for the whole test suite.

Declaration
public virtual void Initialize(Settings s)
Parameters
Type Name Description
Settings s
| Edit this page View Source

Run()

Run the test suite and all the test cases in it.

Declaration
public TestSuiteReport Run()
Returns
Type Description
TestSuiteReport
  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.