GET All Objects for a Test Run

Objects refer to each of the network requests that are made when testing a URL in Eggplant Web Performance Analyzer. For example, each row you see on a waterfall chart corresponds to an object (i.e., a .css file or .png image). You will typically get all of the objects for a given test run, as shown here. If you only want one object, use the sref to request it individually.

Request

Note that you are searching for objects based on the given sref for the test run.

Method GET
Path /objects?testRun=test_run_sref
Header

Realm: account_realm

Authorization: Bearer access_token

The sref for the test run must be URL encoded, so your request will look something like this:

Path /objects?testRun=testRuns%2F123456789

Response

The response for this request is an array of objects:

Body

"results": [

{

"url": "http://my.url.com/home.html",

"mimeType": "text/html",

"result": 301,

"requestHeaderSize": 663,

"responseHeaderSize": 659,

"transmittedSize": 20,

"uncompressedSize": 20,

"offsetDuration": 0,

"blockDuration": null,

"dnsDuration": 0,

"connectDuration": 0,

"sslDuration": 0,

"sendDuration": null,

"dataStartDuration": 0.052,

"receiveDuration": 0,

"cacheDuration": null,

"networkDuration": 0.052,

"ttfbDuration": 0.052,

"downloadDuration": 0.052,

"responseBodyChecksum": "d91492d55d6e977a0bfe790238b24a76677b85",

"sref": "objects/345678",

"testRunUri": "testRuns/123456789",

"headersUri": "headers?object=objects%2F345678"

},

{

"url": " http://my.url.com/styles/main.css",

"mimeType": "text/css",

"result": 200,

"requestHeaderSize": 358,

"responseHeaderSize": 345,

"transmittedSize": 519,

"uncompressedSize": 1066,

"offsetDuration": 0.055,

"blockDuration": null,

"dnsDuration": 0.005,

"connectDuration": 0.004,

"sslDuration": 0.048,

"sendDuration": null,

"dataStartDuration": 0.031,

"receiveDuration": 0,

"cacheDuration": null,

"networkDuration": 0.088,

"ttfbDuration": 0.088,

"downloadDuration": 0.088,

"responseBodyChecksum": "d91492d55d6e977a0bfe79022b384a76677b85",

"sref": "objects/456789",

"testRunUri": "testRuns/123456789",

"headersUri": "headers?object=objects%2F456789"

}

...

]

Object Parameters

Parameter Description
url The URL of the requested object
mimeType The mime (content ) type of the object
result The status code for the object

requestHeaderSize

The size of the request header in bytes

responseHeaderSize

The size of the response header in bytes

transmittedSize

The size in bytes of the response body (on the wire), showing the compressed size if relevant

uncompressedSize

The size in bytes of the response body, in its uncompressed state

offsetDuration

The number of seconds from when the test starts to when the browser starts the request for the object

blockDuration

Deprecated. Generally returns null.

dnsDuration

The number of seconds spent resolving a host name into an IP address

connectDuration

The number of seconds required to create a TCP connection to the web server. This does not include SSL/TLS handshake time for HTTPS requests.

sslDuration

The number of seconds spent performing SSL/TLS handshake for HTTPS requests

sendDuration

Deprecated. Generally returns null.

dataStartDuration

The number of seconds spent waiting for a response from the web server

receiveDuration

The number of seconds taken to read the response from the web server

cacheDuration

Deprecated. Generally returns null.

networkDuration

The number of seconds spent on all network related operations for the request (this will typically be the same as downloadDuration)

ttfbDuration

Time To First Byte is the number of seconds from the initial network request to the first byte of data being received

downloadDuration

The total amount of time in seconds (including all network activity) that the request took to complete (typically be the same as networkDuration)

responseBodyChecksum

The total amount of time in seconds (including all network activity) that the request took to complete (typically be the same as networkDuration)

sref

The self-reference path that describes how you can request the object

testRunUri

The URI of the test run that this test object is from
headersUri The URI for querying the HTTP request and response headers for this object

 

This topic was last updated on August 19, 2021, at 03:30:47 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant