Click or drag to resize

CsvDataStorage Class

Writes test or intermediate data to a CSV file
Inheritance Hierarchy

Namespace:  Hummingbird.TestFramework.Automation
Assembly:  Hummingbird.TestFramework.Automation (in Hummingbird.TestFramework.Automation.dll) Version: 1.2.0.0
Syntax
[SerializableAttribute]
[DataContractAttribute(Namespace = "http://www.hummingbird-alm.com/testframework/201610")]
public class CsvDataStorage : DataStorage

The CsvDataStorage type exposes the following members.

Constructors
  NameDescription
Public methodCsvDataStorage
Initializes a new instance of the CsvDataStorage class.
Top
Properties
  NameDescription
Public propertyDataTable
Gets the produced DataTable from the received data to store.
(Inherited from DataStorage.)
Public propertyFileName
Gets or sets the File name which data will be written. If HasHeader is set to , the first row of CSV will be headers.
Public propertyHasHeader
Gets or sets if the headers should be written to the data storage if supported
(Inherited from DataStorage.)
Protected propertyHeaders
Gets or sets the headers.
(Inherited from DataStorage.)
Public propertyInformation
Gets or sets the information generated by execution the data storage.
(Inherited from DataStorage.)
Public propertyOverwrite
Gets or sets a value indicating whether the data should be overwritten
(Inherited from DataStorage.)
Public propertySeparator
Gets or sets the separator of the CSV file, the default separator depends on your localization settings. For example, for US based culture
Public propertySortHeaders
Gets or sets a value indicating whether headers should be sorted alphabetically to the data storage.
(Inherited from DataStorage.)
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from DataStorage.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from DataStorage.)
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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnPropertyChanged
Called when property value has changed.
(Inherited from DataStorage.)
Public methodProcessData
Processes the received data and produce a DataTable
(Inherited from DataStorage.)
Public methodReceiveData
Receives a collection of data from data sender, such as DataDrivenTestCase. Data will be considered as
(Inherited from DataStorage.)
Public methodSave
This method should be implemented by sub classes by storing data to adapted place: Excel, CSV or SQL Database.
(Overrides DataStorageSave(TestCase).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from DataStorage.)
Top
Fields
  NameDescription
Protected fieldData
The data to be written to the data storage
(Inherited from DataStorage.)
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
Remarks
The property FileName and Separator support token replacement.
See Also