Show / Hide Table of Contents

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
Object
TestSuiteData
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestSuiteData

Constructors

| Edit this page View Source

TestSuiteData()

Default constructor

Declaration
public TestSuiteData()

Properties

| Edit this page View Source

Current

Get the instance of the current loaded TestSuiteData.

Declaration
public static TestSuiteData Current { get; }
Property Value
Type Description
TestSuiteData
| Edit this page View Source

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
List<TestData>

Methods

| Edit this page View Source

GetTestData(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
String name

name of the test case

Returns
Type Description
TestData

the TestData structure which contains a list of Parameters (Test Data)

| Edit this page View Source

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
String testName

Name of the test case

String parameterName

Name of the parameter

Returns
Type Description
String
| Edit this page View Source

InitializeEmpty()

Initialize Test Data as Empty.

Declaration
public static void InitializeEmpty()
| Edit this page View Source

LoadFrom(String)

Load the test data from an XML file.

Declaration
public static string LoadFrom(string filePath)
Parameters
Type Name Description
String filePath

the full path of the file

Returns
Type Description
String

The filename (without path)

| Edit this page View Source

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
String testName

Name of the test case

String parameterName

Name of the parameter

String value

Value of the parameter

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