The Response type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
Response |
For internal use only. Of no interest to the user.
|
Methods
Name | Description | |
---|---|---|
ContainsHeader |
Determines whether this Response contains a particular HTTP
response header.
| |
Dispose | Releases all resources used by the Response | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Extract(List String , String) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found.
| |
Extract(String, String) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found.
| |
Extract(List String , String, ActionType) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found,
and specifying what action to take in case of failure.
| |
Extract(List String , String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(List String , String, String) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning the defaultValue if they cannot be found.
| |
Extract(String, String, ActionType) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
and specifying what action to take in case of failure.
| |
Extract(String, String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(String, String, String) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning the defaultValue if they cannot be found.
| |
Extract(ExtractionCursor, List String , String) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found.
| |
Extract(ExtractionCursor, String, String) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found.
| |
Extract(List String , String, ActionType, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found,
specifying whether the search will be case-sensitive,
and what action to take in case of failure.
| |
Extract(List String , String, String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning the defaultValue if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(String, String, ActionType, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
specifying whether the search will be case-sensitive,
and specifying what action to take in case of failure.
| |
Extract(String, String, String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning the defaultValue if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(ExtractionCursor, List String , String, ActionType) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found,
and specifying what action to take in case of failure.
| |
Extract(ExtractionCursor, List String , String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(ExtractionCursor, List String , String, String) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning the defaultValue if they cannot be found.
| |
Extract(ExtractionCursor, String, String, ActionType) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
and specifying what action to take in case of failure.
| |
Extract(ExtractionCursor, String, String, SearchFlags) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found.
| |
Extract(ExtractionCursor, String, String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(ExtractionCursor, String, String, String) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning the defaultValue if they cannot be found.
| |
Extract(ExtractionCursor, List String , String, ActionType, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning an empty string if they cannot be found,
specifying whether the search will be case-sensitive,
and what action to take in case of failure.
| |
Extract(ExtractionCursor, List String , String, String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified list of before and after string objects -
returning the defaultValue if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(ExtractionCursor, String, String, ActionType, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
specifying whether the search will be case-sensitive,
and specifying what action to take in case of failure.
| |
Extract(ExtractionCursor, String, String, SearchFlags, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning an empty string if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
Extract(ExtractionCursor, String, String, String, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified before and after string objects -
returning the defaultValue if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
ExtractForm(Int32) |
Extracts the nth HTML Form from the response content.
| |
ExtractForm(String) |
Extracts an HTML Form with the specified formName from the response content.
| |
ExtractForm(Int32, ActionType) |
Extracts the nth HTML Form from the response content,
and take the specified failAction if no matching form can be found.
| |
ExtractForm(String, ActionType) |
Extracts an HTML Form with the specified formName from the response content,
and take the specified failAction if no matching form can be found.
| |
ExtractForms |
Extracts all the HTML Form objects from the response content.
| |
ExtractFromEnd(List String , String) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(String, String) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, ActionType) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, Boolean) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, String) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(String, String, ActionType) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(String, String, Boolean) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(String, String, String) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, ActionType, Boolean) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, Boolean, SearchFlags) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, String, Boolean) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(String, String, ActionType, Boolean) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(String, String, Boolean, SearchFlags) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(String, String, String, Boolean) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, ActionType) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, Boolean) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, String) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, ActionType) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, Boolean) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, String) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
If either value cannot be found, the defaultValue will be returned.
| |
ExtractFromEnd(List String , String, ActionType, Boolean, SearchFlags) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(List String , String, String, Boolean, SearchFlags) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(String, String, ActionType, Boolean, SearchFlags) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(String, String, String, Boolean, SearchFlags) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, ActionType, Boolean) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, Boolean, SearchFlags) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, String, Boolean) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, ActionType, Boolean) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, Boolean, SearchFlags) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, String, Boolean) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
If either value cannot be found, the defaultValue will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, ActionType, Boolean, SearchFlags) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, List String , String, String, Boolean, SearchFlags) |
Extracts text from the response content starting from the end. Everything between (but not including)
the specified list of after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, ActionType, Boolean, SearchFlags) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
| |
ExtractFromEnd(ExtractionCursor, String, String, String, Boolean, SearchFlags) |
Extracts text from the response content, starting from the end. Everything between (but not including)
the specified after and before string objects will be returned.
If either value cannot be found, the defaultValue will be returned.
| |
ExtractList(String, String) |
Extracts a list of items from this Response.
| |
ExtractList(String, String, Boolean) |
Extracts a list of items from this Response,
specifying whether the search should be case-sensitive.
| |
ExtractList(ExtractionCursor, String, String) |
Extracts a list of items from this Response,
specifying whether the search should be case-sensitive,
and the maximum number of items to extract.
| |
ExtractList(String, String, Boolean, Int32) |
Extracts a list of items from this Response,
specifying whether the search should be case-sensitive,
and the maximum number of items to extract.
| |
ExtractList(ExtractionCursor, String, String, SearchFlags) |
Extracts a list of items from this Response.
| |
ExtractList(ExtractionCursor, String, String, String) |
Extracts a list of items from this Response,
specifying whether the search should be case-sensitive,
and the maximum number of items to extract.
| |
ExtractList(ExtractionCursor, String, String, SearchFlags, String) |
Extracts a list of items from this Response.
| |
ExtractList(ExtractionCursor, String, String, String, Boolean) |
Extracts a list of items from this Response,
specifying whether the search should be case-sensitive,
and the maximum number of items to extract.
| |
ExtractList(ExtractionCursor, String, String, SearchFlags, String, Boolean) |
Extracts a list of items from this Response.
| |
ExtractList(ExtractionCursor, String, String, String, Boolean, Int32) |
Extracts a list of items from this Response,
specifying whether the search should be case-sensitive,
and the maximum number of items to extract.
| |
ExtractList(ExtractionCursor, String, String, SearchFlags, String, Boolean, Int32) |
Extracts a list of items from this Response.
| |
ExtractRegExp(ExtractionCursor, String) |
Extracts multiple string objects from the response content,
wherever the specified regular expression matches.
| |
ExtractRegExp(ExtractionCursor, String, Boolean) |
Extracts multiple string objects from the response content,
wherever the specified regular expression matches,
and specifying whether the search will be case-sensitive.
| |
ExtractRegExp(ExtractionCursor, String, String, SearchFlags) |
Extracts text from the response content - everything between (but not including)
the specified beforeRegExp and afterRegExp string objects -
returning an empty string if they cannot be found.
| |
ExtractRegExp(ExtractionCursor, String, String, SearchFlags, Boolean) |
Extracts text from the response content - everything between (but not including)
the specified beforeRegExp and afterRegExp string objects -
returning an empty string if they cannot be found,
and specifying whether the search will be case-sensitive.
| |
ExtractXPath |
Returns a string object from the HTML or XML response content that matches the
given XPath expression.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find(ExtractionCursor, String) |
Finds the specified text within this Response.
| |
Find(ExtractionCursor, String, ActionType) |
Finds the specified text within this Response,
specifying what action to take in case of failure.
| |
Find(ExtractionCursor, String, Boolean) |
Finds the specified text within this Response,
specifying whether the search will be case-sensitive.
| |
Find(ExtractionCursor, String, ActionType, Boolean) |
Finds the specified text within this Response,
specifying whether the search will be case-sensitive,
and what action to take in case of failure.
| |
GetAnchor |
Gets the nth anchor in this Response.
| |
getCPtr |
For internal use only. Of no interest to the user.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetHeaderValue(String) |
Gets the value of an HTTP response header contained in this Response.
| |
GetHeaderValue(String, Int32) |
Gets the value of the nth instance of an HTTP response header
contained in this Response.
| |
GetRedirectedFrom |
Gets the Response from which this Response has been redirected.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResetCharEncoding |
Resets the character encoding that is used to decode the data contained
in this Response. This will force the character encoding to be re-calculated, using
the methods described in SetCharEncoding(String).
| |
Rfind(ExtractionCursor, String) |
Finds the specified text within this Response,
starting from the end of the content.
| |
Rfind(ExtractionCursor, String, ActionType) |
Finds the specified text within this Response,
starting from the end of the content,
specifying what action to take in case of failure.
| |
Rfind(ExtractionCursor, String, Boolean) |
Finds the specified text within this Response,
starting from the end of the content,
and specifying whether the search will be case-sensitive.
| |
Rfind(ExtractionCursor, String, ActionType, Boolean) |
Finds the specified text within this Response,
starting from the end of the content,
specifying whether the search will be case-sensitive,
and what action to take in case of failure.
| |
SetCharEncoding |
Sets the character encoding that is used to decode the data contained
in this Response.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
VerifyContains(String) |
Determines whether the content of this Response contains the specified text.
| |
VerifyContains(String, ActionType) |
Determines whether the content of this Response contains the specified text,
specifying what action to take in case of failure.
| |
VerifyContains(String, Boolean) |
Determines whether the content of this Response contains the specified text,
specifying whether the search will be case-sensitive.
| |
VerifyContains(String, ActionType, Boolean) |
Determines whether the content of this Response contains the specified text,
specifying whether the search will be case-sensitive,
and what action to take in case of failure.
| |
VerifyResult(HttpStatus) |
Verify that the response code of this Response matches the specifed expectedResult | |
VerifyResult(HttpStatus, ActionType) |
Verify that the response code of this Response matches the specifed expectedResult,
and takes the specified action if it does not.
| |
VerifyTitle(String) |
Verifies that the title of this Response page matches the specified title.
| |
VerifyTitle(String, ActionType) |
Verifies that the title of this Response page matches the specified title,
and takes the specified action if it does not.
|
Properties
Name | Description | |
---|---|---|
BytesDownloaded |
Gets the number of bytes downloaded from the server.
| |
CharEncoding |
Gets or sets the character encoding that is used to decode the data contained
in this Response, for example "UTF-8".
| |
CharSet |
Gets the value of the "charset" parameter specified in the
"Content-Type" HTTP response header.
| |
Content |
Gets the content of this Response, using the
current encoding (as defined by CharEncoding) to decode the data.
| |
ContentAsJson |
Gets a Newtonsoft JSON object representation of this Response.
| |
ContentAsXml |
Gets an XML DOM representation of this Response.
| |
ContentEncoding |
Gets the value of the "Content-Encoding" HTTP response header.
| |
ContentLength |
Gets the length in bytes of the response content.
| |
ContentType |
Gets the value of the "Content-Type" HTTP response header.
| |
HasReferer |
Gets a value that indicates whether this Response contains an HTTP "Referer" response header.
| |
HasTitle |
Gets a value that indicates whether this Response contains an HTML title.
| |
HeaderKeys |
Gets a list of names of all the HTTP response headers set in this Response.
| |
MessageBody |
Gets the body of the message from the corresponding Request.
| |
Method |
Gets the HttpMethod that was used to send the Request.
| |
RawContent |
Gets the raw content of this Response. If the content is expected to be text, then
you should use Content instead of this property.
| |
ReceiveTime |
Gets the time at which the response was received from the server
(measured in milliseconds since the start of the test).
| |
RedirectedFrom |
Gets the Response from which this Response has been redirected.
| |
Referer |
Gets the value of the "Referer" HTTP response header.
| |
Result |
Gets the HTTP status code received from the server when this Response was
served.
| |
ResultString |
Gets the HTTP result returned by the server, e.g. HTTP/1.1 200 OK | |
SendTime |
Gets the time at which the request was sent to the server
(measured in milliseconds since the start of the test).
| |
SubResponses |
Gets a list of Response objects that describe HTTP responses
to sub-requests associated with the top-level Request sent to the web server.
| |
Title |
Gets the HTML title of this Response. Gets a value that determines whether this Response contains an HTML title.
| |
Url | ||
UrlString |
Gets the URL that was used in the corresponding Request, as a string.
| |
UserAgent |
Gets the value of the "User-Agent" HTTP response header.
| |
Version |
Gets the version of HTTP that was used to send this response
| |
WasRedirected |
Gets a value that indicates whether this Response was the result of a
redirected request.
|
See Also