Class
DataInfo

Information pertaining to the data source to use for datadriven tests.

Definition

Namespace:ArtOfTest.Common.Design.Data

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
public class DataInfo : IExtensibleDataObject, INotifyPropertyChanged

Inheritance: objectDataInfo

Implements: IExtensibleDataObjectINotifyPropertyChanged

Constructors

DataInfo()

Create a new data info structure.

Declaration

cs-api-definition
public DataInfo()

DataInfo(DataInfo)

A deep cloning method.

Declaration

cs-api-definition
public DataInfo(DataInfo info)

Parameters

info

DataInfo

The info object to clone.

DataInfo(string, string, string, TestDataType)

Create a new data info

Declaration

cs-api-definition
public DataInfo(string connectionString, string dataTable, string dataProvider, TestDataType dataType)

Parameters

connectionString

string

connection string.

dataTable

string

data table

dataProvider

string

name of the provider

dataType

TestDataType

Properties

BuiltInDocument

Gets or sets the built in document table

Declaration

cs-api-definition
[DataMember(Name = "BuiltInData")]
public CustomizableDataTable BuiltInDocument { get; set; }

Property Value

CustomizableDataTable

BuiltInDocumentKey

Gets or sets the built in document key

Declaration

cs-api-definition
[DataMember(Name = "BuiltInDocumentKey")]
public string BuiltInDocumentKey { get; set; }

Property Value

string

ConnectionString

Gets or sets the connection string.

Declaration

cs-api-definition
[DataMember(Name = "ConnectionString", IsRequired = false, EmitDefaultValue = false)]
[Browsable(false)]
public string ConnectionString { get; set; }

Property Value

string

Remarks

Depricated. The Connection String now comes from the dbsrc file

DataEnabled

Gets or sets whether the data is enabled

Declaration

cs-api-definition
[DataMember(Name = "DataEnabled")]
public bool DataEnabled { get; set; }

Property Value

bool

DataProvider

Gets or sets the data provider name.

Declaration

cs-api-definition
[DataMember(Name = "DataProvider")]
public string DataProvider { get; set; }

Property Value

string

DataRangeString

Gets or sets the data range string.

Declaration

cs-api-definition
[DataMember(Name = "DataRange")]
public string DataRangeString { get; set; }

Property Value

string

DataTable

Gets or sets the data table name.

Declaration

cs-api-definition
[DataMember(Name = "DataTableName")]
public string DataTable { get; set; }

Property Value

string

DataType

Gets or set the data type

Declaration

cs-api-definition
[DataMember(Name = "DataType")]
public TestDataType DataType { get; set; }

Property Value

TestDataType

DefaultToGrid

Gets or sets whether to default the data source to the built-in grid if available.

Declaration

cs-api-definition
[DataMember(Name = "DefaultToGrid")]
public bool DefaultToGrid { get; set; }

Property Value

bool

ExtensionData

Declaration

cs-api-definition
public ExtensionDataObject ExtensionData { get; set; }

Property Value

ExtensionDataObject

Implements IExtensibleDataObject.ExtensionData

HasBuiltInGrid

Declaration

cs-api-definition
[DataMember(Name = "HasBuiltinGrid")]
public bool HasBuiltInGrid { get; set; }

Property Value

bool

LoadRecordsCount

Gets or sets the number of the records that should be load.

Declaration

cs-api-definition
[DataMember(Name = "LoadRecordsCount")]
public int? LoadRecordsCount { get; set; }

Property Value

int?

TSql

TSQL data for the database connection

Declaration

cs-api-definition
[DataMember(Name = "TSQL", IsRequired = false)]
public string TSql { get; set; }

Property Value

string

Methods

Clear()

Declaration

cs-api-definition
public void Clear()

Clone()

Clone the DataInfo.

Declaration

cs-api-definition
public DataInfo Clone()

Returns

DataInfo

CopyFrom(DataInfo)

Declaration

cs-api-definition
public void CopyFrom(DataInfo info)

Parameters

info

DataInfo

DetectVSBindingDataType2()

Set the data type of the provider.

Declaration

cs-api-definition
public void DetectVSBindingDataType2()

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GenerateXMLDocument()

Write the built-in document to a string.

Declaration

cs-api-definition
public string GenerateXMLDocument()

Returns

string

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

UpdateDataType()

Declaration

cs-api-definition
public void UpdateDataType()

UpgradeData(string)

Upgrade the Data Info object.

Declaration

cs-api-definition
public string UpgradeData(string testName)

Parameters

testName

string

Returns

string

List of data files to add to the project.

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged