Click or drag to resize

AbstractSerializer Class

AbstractSerializer converts test object in string format or from string format to test object.

Serializer is used to serialize and visualize test objects: including requests or responses, They will be stored in history, log and automation scripts.

Please note that the Serializer has nothing to do with the data sent to your target application, this will be guaranteed by Automation framework and its extensions.

This is the base class of all Serializers. Hummingbird TestFramework provides XmlSerializer to convert objects to XML, JsonSerializer to convert object to Json, SoapSerializer to convert object to SoapMessage, ...

Inheritance Hierarchy
SystemObject
  Hummingbird.TestFramework.SerializationAbstractSerializer
    More...

Namespace:  Hummingbird.TestFramework.Serialization
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public abstract class AbstractSerializer

The AbstractSerializer type exposes the following members.

Constructors
  NameDescription
Protected methodAbstractSerializer
Initializes a new instance of the AbstractSerializer class.
Top
Properties
  NameDescription
Public propertyCanDeserialize
Gets or sets a value indicating whether this instance can be deserialized.
Public propertyDocumentFormat
Gets the type of the text folding (XML, C#, ...)
Top
Methods
  NameDescription
Public methodDeserialize(String, Type)
Deserializes the specified value.
Public methodDeserialize(String, Type, AbstractMetadata, ListSerializationException)
Deserializes the specified value.
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 methodStatic memberGetInstance
Gets or sets static instance of the serializer.
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 methodSerialize(Object, Type)
Serialize the object "o", in type of objectType. with out using metadata;
Public methodSerialize(Object, Type, AbstractMetadata)
Serialize the object "o", in type of objectType, with the metadata provided (optional)
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
See Also
Inheritance Hierarchy
SystemObject
  Hummingbird.TestFramework.SerializationAbstractSerializer
    Hummingbird.TestFramework.SerializationAutomationProjectSerializer
    Hummingbird.TestFramework.SerializationBase64Serializer
    Hummingbird.TestFramework.SerializationDataContractSerializer
    Hummingbird.TestFramework.SerializationFormUrlEncodedSerializer
    Hummingbird.TestFramework.SerializationHttpRequestSerializer
    Hummingbird.TestFramework.SerializationHttpResponseSerializer
    Hummingbird.TestFramework.SerializationJsonSerializer
    Hummingbird.TestFramework.SerializationSoapSerializer
    Hummingbird.TestFramework.SerializationXamlSerializer
    Hummingbird.TestFramework.SerializationXmlSerializer
    Hummingbird.TestFramework.SerializationXmlSerializerExtraTypes
    Hummingbird.TestFramework.SerializationXmlSerializerWithoutXmlns