|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionStepObject
Basic information about an individual HTTP request during a test.
Method Summary | |
---|---|
long |
getBlockedTime()
Deprecated. This API is not available and just returns 0. |
long |
getBytes()
Returns the total number of bytes transferred while making the HTTP request. |
long |
getConnectTime()
The time spent connected to server |
long |
getDnsLookupTime()
The time spent to lookup DNS from DNS server. |
java.util.Date |
getEnd()
Returns the time and date the HTTP request ended. |
java.lang.String |
getErrorMessage()
Returns descriptive text of any error that occurred while making the HTTP request. |
java.lang.String |
getHost()
Returns the host part of the URL. |
java.lang.String |
getMethod()
The HTTP method used for this request (usually "GET" or "POST"). |
java.lang.String |
getPath()
Returns the path of the URL. |
java.lang.String |
getPostBody()
The captured POST body (File/Bytes as request body) during validation in the HAR file. |
java.util.Map<java.lang.String,java.lang.String[]> |
getPostParams()
The captured POST params during validation in the HAR file. |
java.lang.String |
getProtocol()
Returns the protocol part of the URL, usually "http" or "https". |
java.lang.String |
getQueryString()
Returns the query string of the URL. |
java.lang.String |
getReasonPhrase()
The HTTP reason phrase that the server responded with for the object. |
long |
getReceiveTime()
The time in milliseconds for when data was received from server |
java.lang.String |
getRedirectUrl()
The redirecting url of the request |
java.util.Map<java.lang.String,java.lang.String[]> |
getRequestHeaders()
The request's headers made to server |
java.lang.String |
getResolvedIpAddress()
Returns the resolved IP address from the request made. |
java.util.Map<java.lang.String,java.lang.String[]> |
getResponseHeaders()
The response's headers from the server. |
long |
getSendTime()
The time in milliseconds for when data was sent server |
long |
getSslHandshakeTime()
The time spent performing an SSL handshake with server |
java.util.Date |
getStart()
Returns the time and date the HTTP request started. |
int |
getStatusCode()
Returns the HTTP status code (eg: 200, 404, etc) that resulted when this request was made. |
long |
getTimeActive()
Returns the total time the request was active, usually the time for the last byte to be received, but sometimes the time in which the request was aborted because the script had completed. |
long |
getTimeToFirstByte()
Returns the time to receive the first byte back from the server. |
java.lang.String |
getUrl()
Returns the full URL that this object represents. |
int |
getWebSocketId()
The websocket id |
java.util.List<WebSocketMessage> |
getWebSocketMessages()
The websocket messages |
boolean |
wasBlacklisted()
Was the item blacklisted? If it was a HTTP request was never made and no content was downloaded. |
Method Detail |
---|
java.util.Date getStart()
java.util.Date getEnd()
long getBytes()
java.lang.String getUrl()
int getStatusCode()
The code may be a non-standard HTTP code, in the 9xx range, which indicates that the object did not download because of a problem connecting to the server or completing the HTTP request. For a detailed list of custom status codes and what they mean, see WPM Custom Status Codes.
java.lang.String getReasonPhrase()
java.lang.String getHost()
java.lang.String getProtocol()
java.lang.String getPath()
java.lang.String getQueryString()
long getTimeActive()
long getTimeToFirstByte()
java.lang.String getMethod()
java.lang.String getErrorMessage()
This message is usually coupled with an HTTP status code in the 9xx range, which is a WPM-specific indicator that the request could not complete, usually due to some I/O exception. This error message can usually shed light on what the I/O issue was and is suitable to be thrown as an exception within the underlying script that made the HTTP request.
For a list of possible error messages and what they mean see WPM Custom Status Codes.
java.lang.String getResolvedIpAddress()
long getDnsLookupTime()
long getSslHandshakeTime()
long getConnectTime()
@Deprecated long getBlockedTime()
long getSendTime()
long getReceiveTime()
java.util.Map<java.lang.String,java.lang.String[]> getRequestHeaders()
java.util.Map<java.lang.String,java.lang.String[]> getResponseHeaders()
java.util.Map<java.lang.String,java.lang.String[]> getPostParams()
int getWebSocketId()
java.util.List<WebSocketMessage> getWebSocketMessages()
java.lang.String getPostBody()
java.lang.String getRedirectUrl()
boolean wasBlacklisted()
Not matching the whitelist also counts as blacklisted.
|
© 2023 Vercara, LLC. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |