C# Класс Microsoft.Protocols.TestSuites.MS_ASHTTP.MS_ASHTTPAdapter

Adapter class of MS-ASHTTP.
Наследование: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_ASHTTPAdapter
Показать файл Открыть проект

Открытые методы

Метод Описание
ConfigureRequestPrefixFields ( string>.IDictionary requestPrefixFields ) : void

Configure the fields in request line or request headers besides command name and command parameters.

HTTPOPTIONS ( ) : OptionsResponse

Send HTTP OPTIONS request to the server and get the response.

HTTPPOST ( CommandName commandName, object>.IDictionary commandParameters, string requestBody ) : SendStringResponse

Send HTTP POST request to the server and get the response.

Initialize ( ITestSite testSite ) : void

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.

Приватные методы

Метод Описание
VerifyHTTPOPTIONSHeaders ( OptionsResponse optionsResponse ) : void

Verify requirements about HTTP OPTIONS response headers.

VerifyHTTPOPTIONSResponse ( OptionsResponse optionsResponse ) : void

Verify requirements about HTTP OPTIONS response.

VerifyHTTPPOSTHeaders ( SendStringResponse postResponse ) : void

Verify requirements about HTTP POST response headers.

VerifyHTTPPOSTResponse ( SendStringResponse postResponse ) : void

Verify requirements about HTTP POST response.

VerifyHTTPResponse ( ) : void

Verify requirements about HTTP response.

VerifyTransportType ( ) : void

Verify the transport related requirements.

Описание методов

ConfigureRequestPrefixFields() публичный Метод

Configure the fields in request line or request headers besides command name and command parameters.
public ConfigureRequestPrefixFields ( string>.IDictionary requestPrefixFields ) : void
requestPrefixFields string>.IDictionary The fields in request line or request headers which need to be configured besides command name and command parameters.
Результат void

HTTPOPTIONS() публичный Метод

Send HTTP OPTIONS request to the server and get the response.
public HTTPOPTIONS ( ) : OptionsResponse
Результат OptionsResponse

HTTPPOST() публичный Метод

Send HTTP POST request to the server and get the response.
public HTTPPOST ( CommandName commandName, object>.IDictionary commandParameters, string requestBody ) : SendStringResponse
commandName CommandName The name of the command to send.
commandParameters object>.IDictionary The command parameters.
requestBody string The plain text request.
Результат SendStringResponse

Initialize() публичный Метод

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite Transfer ITestSite into adapter, make adapter can use ITestSite's function.
Результат void