Message Class |
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
Namespace: Hummingbird.TestFramework.Messaging
The Message type exposes the following members.
Name | Description | |
---|---|---|
CreateDate |
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.
| |
CreateDateString |
Gets the string representation of the Creation date.
| |
Direction |
Direction of the current operation: Outgoing : Hummingbird as Driver; Incoming : Hummingbird as Stub
| |
ElapsedTime |
Gets the elapsed time.
| |
ErrorMessage |
Error messages are stored in this String object.
| |
InQueueDate |
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.
| |
IsAuthenticated |
Gets the flag if the transaction is treated with authentication used: Basic Authentication, Windows integrated authentication, ...
| |
IsAutomationMessage |
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)
| |
IsError |
Gets a value indicating whether the request/response is error.
| |
IsFlagged |
Gets of Sets the value indicate where this message is flagged
| |
IsSecured |
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.
| |
IsTerminiated |
Gets the value if the current transaction is terminated.
| |
Metadata |
Gets or sets the metadata related to this Message
| |
MetadataId |
Unique Identifier of the AbstractMetadata, it is used to identify the meta data related to the current request or response.
| |
RequestDate |
Gets or sets a DateTime object indicates the time where the request starts to send.
| |
RequestHttpHeaders |
Gets or sets the HTTP headers used in the Request
| |
RequestObject |
An .NET object representation of the request. This member will not be saved in your Hummingbird profile.
| |
RequestText |
Text representation of the request message. This message is often serialized in XML, JSON or Text from RequestObject
| |
ResponseDate |
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.
| |
ResponseHttpHeaders |
Gets or sets the response HTTP headers.
| |
ResponseObject |
An .NET object representation of the response. This member will not be saved in your Hummingbird profile
| |
ResponseText |
Text representation of the response message. This message is often serialized in XML, JSON or Text form ResponseObject
| |
ResponseTime |
Gets the response time of the current service. if the service does not have a response time, the value will be -1;
| |
Status |
The status of the current operation.
| |
StatusString |
The string expression of the current status. the expression is culture dependence, it will load the key "String_Status_[Status]" from the resource.
| |
Tag |
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.
| |
Title |
The title of the message, a friendly message show in hummingbird user interface
| |
Uri |
Gets or Sets of the Uri used to send or receive the current message.
|
Name | Description | |
---|---|---|
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
| |
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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
PropertyChanged |
Event to be triggered when the Status property of the message changes.
|
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.) |