Show / Hide Table of Contents

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 Source

Data

The test data, provided as a list of Name-Value pair

Declaration
public Variable[] Data { get; set; }
Property Value
Type Description
Variable[]
| Edit this page View Source

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 Source

GetValue(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.

| Edit this page View Source

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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.