Description Usage Arguments Value Examples
cancel running/pending test
1 | cancelTest(server, testId, key = Sys.getenv("WPTKEY"), dryRun = FALSE, ...)
|
server |
A WebPagetest server |
testId |
test ID string |
key |
API key (if assigned). Contact the WebPageTest server administrator for a key if required |
dryRun |
If TRUE just return the RESTful API URL. Defaults to FALSE |
... |
Additonal function arguments |
A
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
WPT <- server()
locs <- getLocations(WPT)
lMax <- which.max(vapply(locs,
function(x) x$PendingTests$Total, integer(1)))
maxLoc <-locs[[lMax]]
test <- runTest(WPT, "r-project.org",
location = paste0(maxLoc$location,
":Chrome"))
cTest <- cancelTest(WPT, test$testId)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.