Class TestData
The data for a single test, identified with it's name.
Inheritance
object
TestData
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestData
Properties
| Edit this page View SourceData
The test data, provided as a list of Name-Value pair
Declaration
public Variable[] Data { get; set; }
Property Value
Type | Description |
---|---|
Variable[] |
TestName
The Name of the test case. It is used as a Key to find reladed testdata for a test case. TestName should be unique, or only the first matching data will be selected
Declaration
public string TestName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetValue(string)
Get the value of a test data.
Declaration
public string GetValue(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | the name of the variable |
Returns
Type | Description |
---|---|
string | Value of Parameter if the parameter. |
Remarks
If the given parameter does not exist, an Exception will be thrown.
SetValue(string, string)
Update a value of a parameter
Declaration
public void SetValue(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
string | name | name of the parameter to update |
string | value | value of the parameter |
Remarks
If the variable does not exist in the test data, this function will do nothing.
TryGetValue(string)
Try gets the value of a test data.
Declaration
public string TryGetValue(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | the name of the variable |
Returns
Type | Description |
---|---|
string | Value of Parameter if the parameter. |
Remarks
If the given parameter does not exist, null will be returned.