Click or drag to resize

TableDataGenerator Class

Generates test data from a Table, each column represents a variable while each row represents an iteration.
Inheritance Hierarchy
SystemObject
  Hummingbird.TestFramework.Automation.DataGeneratorAbstractDataGenerator
    Hummingbird.TestFramework.Automation.DataGeneratorTableDataGenerator

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

The TableDataGenerator type exposes the following members.

Constructors
  NameDescription
Public methodTableDataGenerator
Initializes a new instance of the TableDataGenerator class.
Top
Properties
  NameDescription
Public propertyDataSource
Gets or sets the data source of this DataGenerator
Public propertyId
Gets or sets the identifier of this TableDataGenerator
Public propertyIsRandom
Gets or sets a value indicating whether to generate data randomly.
(Inherited from AbstractDataGenerator.)
Public propertyName
Gets or sets the name of the current DataGenerator
(Inherited from AbstractDataGenerator.)
Top
Methods
  NameDescription
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 methodGenerate
Generates data at the current cursor and move the cursor to next position.
(Overrides AbstractDataGeneratorGenerate(TestCase).)
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.)
Public methodReset
Resets the cursor to 0.
(Overrides AbstractDataGeneratorReset.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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 TableDataGenerator is used in an API Performance test case. For each iteration, it will select a data row and converts it's value into variable.

DataGenerator uses static cache to store data, the data will be loaded at the first time it will be called. Data is loaded from the file described in DataSource property.

See Also