Description Usage Arguments Value Examples
get the HTTP Archive (HAR) from test
1 2 3 |
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 |
returns a parsed HAR object from readHAR
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.