Click or drag to resize

DataSource Class

The base class of the Data Source, this class cannot be instanced.
Inheritance Hierarchy

Namespace:  Hummingbird.TestFramework.Automation
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
[DataContractAttribute(Namespace = "http://www.hummingbird-alm.com/testframework/201610")]
public abstract class DataSource : IDisposable, 
	INotifyPropertyChanged

The DataSource type exposes the following members.

Constructors
  NameDescription
Protected methodDataSource
Initializes a new instance of the DataSource class
Top
Properties
  NameDescription
Protected propertyData
Gets or sets the Data after the ImportData method
Public propertyDataTable
Gets a DataTable object which represents the current imported data
Public propertyHasHeader
Gets or sets a value indicating whether the data source has header.
Public propertyHeaders
Gets or Sets the headers. if the file data source contains header (for example, The first row of a CSV the headers), headers will be refilled after the call of ImportData. The headers can be used as an variable. For example, the token ${name} will be replace by the value where the header name is "name"
Public propertyMaxRows
Gets or sets the maximum rows can be imported
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImportData
Import Data from the given data source. After a successful import, the Data property will be filled. If HasHeader is set to True, the Headers property will be automatically assigned.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnPropertyChanged
Called when property value has changed.
Public methodReadData
Fetches the next row from the Data. This function can only be called when Headers and Data are imported.
Public methodResetCursor
Resets the current cursor to line 0, This function will be called systematically by the DataDrivenTestCase before the test.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Extension Methods
  NameDescription
Public Extension MethodToStringOrXml
Converts any Object to string representation in String or XML format.
(Defined by ExtensionMethods.)
Public Extension MethodToXmlString
Converts any Object to string representation in XML format.
(Defined by ExtensionMethods.)
Top
See Also