AbstractSerializer Class |
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, ...
Namespace: Hummingbird.TestFramework.Serialization
The AbstractSerializer type exposes the following members.
Name | Description | |
---|---|---|
AbstractSerializer |
Initializes a new instance of the AbstractSerializer class.
|
Name | Description | |
---|---|---|
CanDeserialize |
Gets or sets a value indicating whether this instance can be deserialized.
| |
DocumentFormat |
Gets the type of the text folding (XML, C#, ...)
|
Name | Description | |
---|---|---|
Deserialize(String, Type) |
Deserializes the specified value.
| |
Deserialize(String, Type, AbstractMetadata, ListSerializationException) |
Deserializes the specified value.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInstance |
Gets or sets static instance of the serializer.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Serialize(Object, Type) |
Serialize the object "o", in type of objectType. with out using metadata;
| |
Serialize(Object, Type, AbstractMetadata) |
Serialize the object "o", in type of objectType, with the metadata provided (optional)
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ToStringOrXml |
Converts any Object to string representation in String or XML format.
(Defined by ExtensionMethods.) | |
ToXmlString |
Converts any Object to string representation in XML format.
(Defined by ExtensionMethods.) |