cancelTest: Cancel test

Description Usage Arguments Value Examples

Description

cancel running/pending test

Usage

1
cancelTest(server, testId, key = Sys.getenv("WPTKEY"), dryRun = FALSE, ...)

Arguments

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

Value

A

Examples

 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)

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