ClassDataSourceItem
Represents a file based data source item in the Data folder in the project
Definition
Namespace:ArtOfTest.Common.Design.Data
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public abstract class DataSourceItem
Inheritance: objectDataSourceItem
Constructors
DataSourceItem(string)
Create a new DataSourceItem
Declaration
public DataSourceItem(string file)
Parameters
file
Full fill path
Properties
DataSourceName
The data source name
DataType
Get the DataType.
Declaration
public abstract TestDataType DataType { get; }
Property Value
DirectoryName
Get the directory name
FileExtension
Get the file extension
FileName
Get the file name
FilePath
Get the directory path.
IsMultiTableSource
Whether the data source item is a multi table
Methods
CheckFileType(string)
Declaration
public static TestDataType CheckFileType(string fileName)
Parameters
fileName
Returns
GetData(DataInfo, bool)
Given the DataInfo of a test, return the appropriate data table
GetDataCount(DataInfo)
Given the DataInfo of a test, return the data table rows count
GetDataSource(string)
Determine what is the TestDataType based on the filename
Declaration
public static DataSourceItem GetDataSource(string filePath)
Parameters
filePath
Returns
The TestDataType
GetTablesList()
Return the tables list contained in this sheet
UpdateFile(string)
Update the file information for this DataSourceItem