Class TestSuiteData
The test data of a test suite, which contains data for one or several test cases. Each test data is identified by its name Each TestSuiteData are represented in XML file
Inheritance
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestSuiteData
Constructors
| Improve this Doc View SourceTestSuiteData()
Default constructor
Declaration
public TestSuiteData()
Properties
| Improve this Doc View SourceCurrent
Get the instance of the current loaded TestSuiteData.
Declaration
public static TestSuiteData Current { get; }
Property Value
Type | Description |
---|---|
TestSuiteData |
TestDataList
A list of test data (one TestData element contains all parameter needed for a single test case)
Declaration
public List<TestData> TestDataList { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<TestData> |
Methods
| Improve this Doc View SourceGetTestData(String)
Get the test data for a single test case from the loaded XML File
Declaration
public TestData GetTestData(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | name of the test case |
Returns
Type | Description |
---|---|
TestData | the TestData structure which contains a list of Parameters (Test Data) |
GetValue(String, String)
Get the value of an variable in given test case
Declaration
public string GetValue(string testName, string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | testName | Name of the test case |
System.String | parameterName | Name of the parameter |
Returns
Type | Description |
---|---|
System.String |
InitializeEmpty()
Initialize Test Data as Empty.
Declaration
public static void InitializeEmpty()
LoadFrom(String)
Load the test data from an XML file.
Declaration
public static string LoadFrom(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | the full path of the file |
Returns
Type | Description |
---|---|
System.String | The filename (without path) |
SetValue(String, String, String)
Set the value of an variable in given test case
Declaration
public void SetValue(string testName, string parameterName, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | testName | Name of the test case |
System.String | parameterName | Name of the parameter |
System.String | value | Value of the parameter |