Class TestData
The data for a single test, identified with it's name.
Inheritance
System.Object
TestData
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestData
Properties
| Improve this Doc 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 |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetValue(String)
Get the value of a test data.
Declaration
public string GetValue(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the name of the variable |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.String | name | name of the parameter to update |
System.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 |
---|---|---|
System.String | name | the name of the variable |
Returns
Type | Description |
---|---|
System.String | Value of Parameter if the parameter. |
Remarks
If the given parameter does not exist, null will be returned.