Click or drag to resize

HttpMetadata Properties

The HttpMetadata type exposes the following members.

Properties
  NameDescription
Public propertyApplicationName
Level 1 description of a service, in which the application/system it belongs
(Inherited from AbstractMetadata.)
Public propertyBodySerializer
This serializer is used to serialize HTTP Body content.

For Restful Web Services, methods such as POST or PUT will sent data in HTTP Body in XML or JSON format. Hummingbird Test Framework defines these XML or JSON objects into C# classes and can be edited, shared, automated easily. This serializer converts C# object to HTTP Body Text or converts HTTP Body text back to C# objects. According to the type of Restful service, the serializer can be XMLSerializer for XML based WebServices or JSONSerializer for JSON based WebServices.

Public propertyContentType
Gets or sets the Content-Type of the HTTP Request, Default value is "application/xml"
Public propertyDescription
An description of the functionality of the current service. This description will be shown as Tool-tip on service selector user interface.
(Inherited from AbstractMetadata.)
Public propertyErrorTypes
Type of the object which an error could be received from the server.
(Inherited from AbstractMetadata.)
Public propertyFriendlyUriTemplate
This is a friendly version of Uri displayed to the users, taken account the binding ip, parameters and variables. so the user can understand better where is service is.
(Inherited from AbstractMetadata.)
Public propertyHttpMethod
Gets or set the HTTP Method: GET, POST, PUT, ... The default value is POST
Public propertyHttpVersion
HttpVersion, Default value is HttpVersion11, that represents HTTP/1.1
Public propertyId
This property must be initialized in the constructor of derived class and must be given a fixed GUID. the GUID must be a constant in code, and should not equals to any other classes derived from AbstractService.
(Inherited from Identifier.)
Public propertyIsUniqueMethodOfService Obsolete.
If there are no different Method (MethodName) in the same Service (ServiceName) => true, Else false;
(Inherited from AbstractMetadata.)
Public propertyOperationName
An additional Level 4 description of a service, for a subservice or a subworkflow. Example: for a SOAP web service, it may contains more soap action for a single endpoint
(Inherited from AbstractMetadata.)
Public propertyReferencedService
Gets or Sets referenced AbstractService (Client of Server) which the current request/response is used. For services that based on HTTP Client, HTTP Server, SOAP Client and SOAP Server, this value can be assigned automatically, When creating an extension that implements a new AbstractService, you must assign all request / responses with the service.
(Inherited from AbstractMetadata.)
Public propertyRequestEditorType
Type of a CustomObjectEditor to edit the request data (used as Driver). If the value is not provided, Hummingbird default editor will be used. the request data is type of RequestType.
(Inherited from AbstractMetadata.)
Public propertyRequestSerializer
Gets or sets the serializer used to serialize and deserialize request objects.
(Inherited from AbstractMetadata.)
Public propertyRequestType
Type of the object which the request will be in .NET framework. The injector service will convert this object to real request (such as Soap or HTTP request). For a service stub, this is the type of object RECEIVED by the service stub.
(Inherited from AbstractMetadata.)
Public propertyRequiredExtension
Gets the required extension about this AbstractMetadata
(Inherited from AbstractMetadata.)
Public propertyResponseEditorType
Type of a CustomObjectEditor to edit the response data (used as Stub). If the value is not provided, Hummingbird default editor will be used.
(Inherited from AbstractMetadata.)
Public propertyResponseSerializer
Gets or sets the serializer used to serialize and deserialize response objects..
(Inherited from AbstractMetadata.)
Public propertyResponseType
Type of the object which the reply will be received from the server. For a mocking service, this is the type of object which will be sent to the caller.
(Inherited from AbstractMetadata.)
Public propertyServiceCategory
Level 2 description of a service, in which the category/module it belongs
(Inherited from AbstractMetadata.)
Public propertyServiceName
Level 3 description of a service, in which the service/workflow it belongs
(Inherited from AbstractMetadata.)
Public propertyCode exampleUriTemplate

When used as Server to simulate responses, UriTemplate is the absolute path of the service, starts always by /. If the service is HTTP based, the HTTP service handler will route the received http message by it's URL. if the Uri matches the UriTemplate, then such handler is chosen.

When used as drivers, The Uri template there the request will be send.

UriTemplate supports variables and processing functions in order make the extension reusable to different test environments and configurations

(Inherited from AbstractMetadata.)
Public propertyVisualizerType
The type of WPF control which shows the result of the type must be derived from Hummingbird.TestFramework.DataVisualizer
(Inherited from AbstractMetadata.)
Top
See Also