Click or drag to resize

AbstractMetadataUriTemplate Property

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

Namespace:  Hummingbird.TestFramework.Services
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public string UriTemplate { get; set; }

Property Value

Type: String
Examples

As Client

1http://{serviceip}/contract/create?id={id}

Above Uri template contains 2 variables: server ip and id, which is between { and }. In the runtime, Hummingbird Test Framework will retrieve the value from Request itself, or by the environment variables (Profile)

As Server

1/contract/create

Above Uri template matches all URIs under the path /contract/. such as /contract/create/200012 and /contract/create/200000

See Also