C# Class Objectivity.Test.Automation.Tests.NUnit.DataDriven.DataDrivenHelper

XML DataDriven methods for NUnit test framework
Afficher le fichier Open project: ObjectivityBSS/Test.Automation Class Usage Examples

Méthodes publiques

Méthode Description
ReadDataDriveFile ( string folder, string testData ) : IEnumerable

Reads the data drive file without setting test name.

ReadDataDriveFile ( string folder, string testData, string diffParam, [ testName ) : IEnumerable

Reads the data drive file and set test name.

Private Methods

Méthode Description
TestCaseName ( string diffParam, string>.Dictionary testParams, string testCaseName ) : string

Get the name of test case from value of parameters.

Method Details

ReadDataDriveFile() public static méthode

Reads the data drive file without setting test name.
Exception when element not found in file
public static ReadDataDriveFile ( string folder, string testData ) : IEnumerable
folder string Full path to XML DataDriveFile file
testData string Name of the child element in xml file.
Résultat IEnumerable

ReadDataDriveFile() public static méthode

Reads the data drive file and set test name.
Exception when element not found in file Exception when parameter not found in row
public static ReadDataDriveFile ( string folder, string testData, string diffParam, [ testName ) : IEnumerable
folder string Full path to XML DataDriveFile file
testData string Name of the child element in xml file.
diffParam string Values of listed parameters will be used in test case name.
testName [ Name of the test, use as prefix for test case name.
Résultat IEnumerable