Click or drag to resize

Message Class

Message is the a basic operation of Hummingbird TestFramework. It can be a message sent to target server, or an message received by Hummingbird virtualized service. A Message object stores the Status of the operation, the Direction and several time tags.

If the operation is send, RequestObject contains the data sent to the server, and ResponseObject stores the response of the server

If the operation is receive, RequestObject contains the data received by virtualized service, and ResponseObject stores the simulated reply

Inheritance Hierarchy
SystemObject
  Hummingbird.TestFramework.MessagingMessage

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

The Message type exposes the following members.

Constructors
  NameDescription
Public methodMessage
Default constructor
Top
Properties
  NameDescription
Public propertyCreateDate
The DateTime object indicate the time when the operation is created. The date is managed by the Framework itself, Never change this value in code.
Public propertyCreateDateString
Gets the string representation of the Creation date.
Public propertyDirection
Direction of the current operation: Outgoing : Hummingbird as Driver; Incoming : Hummingbird as Stub
Public propertyElapsedTime
Gets the elapsed time.
Public propertyErrorMessage
Error messages are stored in this String object.
Public propertyInQueueDate
The DateTime object indicate the time when the operation is placed InQueue (before sending). The date is managed by the Framework itself, Never change this value in code.
Public propertyIsAuthenticated
Gets the flag if the transaction is treated with authentication used: Basic Authentication, Windows integrated authentication, ...
Public propertyIsAutomationMessage
Gets a value indicating whether this message is added by automation engine. The value is automatically set to true when the message is generated and automated test is running (Global.IsAutomatedTestRunning = True)
Public propertyIsError
Gets a value indicating whether the request/response is error.
Public propertyIsFlagged
Gets of Sets the value indicate where this message is flagged
Public propertyIsSecured
An indicator to end user, if the message is handled in a Secured context : whether it is encrypted, send via HTTPS channel or digitally signed.
Public propertyIsTerminiated
Gets the value if the current transaction is terminated.
Public propertyMetadata
Gets or sets the metadata related to this Message
Public propertyMetadataId
Unique Identifier of the AbstractMetadata, it is used to identify the meta data related to the current request or response.
Public propertyRequestDate
Gets or sets a DateTime object indicates the time where the request starts to send.
Public propertyRequestHttpHeaders
Gets or sets the HTTP headers used in the Request
Public propertyRequestObject
An .NET object representation of the request. This member will not be saved in your Hummingbird profile.
Public propertyRequestText
Text representation of the request message. This message is often serialized in XML, JSON or Text from RequestObject
Public propertyResponseDate
The DateTime object indicate the time when the operation gets response. The date is managed by the Framework itself, Never change this value in code.
Public propertyResponseHttpHeaders
Gets or sets the response HTTP headers.
Public propertyResponseObject
An .NET object representation of the response. This member will not be saved in your Hummingbird profile
Public propertyResponseText
Text representation of the response message. This message is often serialized in XML, JSON or Text form ResponseObject
Public propertyResponseTime
Gets the response time of the current service. if the service does not have a response time, the value will be -1;
Public propertyStatus
The status of the current operation.
Public propertyStatusString
The string expression of the current status. the expression is culture dependence, it will load the key "String_Status_[Status]" from the resource.
Public propertyTag
The Tag can be freely used by different AbstractServer to store any kind of objects. The Tag is not serialized so it can not be recovered after restart.
Public propertyTitle
The title of the message, a friendly message show in hummingbird user interface
Public propertyUri
Gets or Sets of the Uri used to send or receive the current message.
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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventPropertyChanged
Event to be triggered when the Status property of the message 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