getTestResults: Get HAR data

Description Usage Arguments Value Examples

Description

get the HTTP Archive (HAR) from test

Usage

1
2
3
getTestResults(server, testId, requestId = NULL, breakDown = FALSE,
  domains = FALSE, pageSpeed = FALSE, requests = FALSE,
  medianMetric = NULL, medianRun = NULL, dryRun = FALSE, ...)

Arguments

server

A WebPagetest server

testId

test ID string

requestId

request ID, useful to track asynchronous requests

breakDown

include the breakdown of requests and bytes by mime type. Defaults to NULL = FALSE

domains

include the breakdown of requests and bytes by domain. Defaults to NULL = FALSE

pageSpeed

logical value include the PageSpeed score in the response (may be slower). Defaults to NULL = FALSE

requests

include the request data in the response (slower and results in much larger responses). Defaults to NULL = FALSE

medianMetric

A string. Set the metric used to calculate median for multiple runs tests. Defaults to "loadTime" = NULL. Other options include "visualComplete", "SpeedIndex", "titleTime", "domTime", "docTime", "fullyLoaded", "render", "TTFB"

medianRun

set the run used for median for multiple runs tests. Defaults to "median = NULL. Other acceptable values include "fastest".

dryRun

If TRUE just return the RESTful API URL. Defaults to FALSE

...

Additonal function arguments

Value

returns a parsed HAR object from readHAR

Examples

1
2
3
4
5
6
7
## Not run: 
  WPT <- server()
  history <- getHistory(WPT, filter = "London")
  tID <- as.character(history[dim(history)[1], "Test ID"])
  testresults <- getTestResults(WPT, tID, requestId = "someID")

## End(Not run)

johndharrison/webpagetestr documentation built on May 19, 2019, 5:14 p.m.