updateJob: Update Job

Description Usage Arguments See Also Examples

Description

Edit an existing job

Usage

1
2
3
updateJob(account, username = Sys.getenv("SLUSER"), jobID, name = NULL,
  tags = NULL, public = NULL, passed = NULL, build = NULL,
  custom_data = NULL, ...)

Arguments

account

An object of class "account". An account object see account.

username

SauceLabs username

jobID

Id of the job to edit

name

Change the job name

tags

Change the job tags

public

Set job visibility to "public", "public restricted", "share" (true), "team" (false) or "private"

passed

Set whether the job passed or not on the user end

build

The build number tested by this test

custom_data

A set of key-value pairs with any extra info that a user would like to add to the job. Note that the max data allowed is 64KB

...

Additonal function arguments - Currently unused.

See Also

Other jobMethods: deleteJobAssets, deleteJob, getJobAssetFiles, getJobAssetNames, getJobs, stopJob

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## Not run: 
myAcc <- account()
myJobs <- getJobs(myAcc)
#> myJobs$data[1,]
#id
#1: 4152e0a185f945bfa43e091eef1e7c30
myJobs <- getJobs(myAcc, getFullJobs = TRUE)
#> myJobs$data[1,.(id, browser)]
#id      browser
#1: 4152e0a185f945bfa43e091eef1e7c30 googlechrome
testId <- myJobs$data[1, id]

#> myJobs$data[1,.(build, passed)]
#build passed
#1:    24  FALSE

# update this job
updateJob(myAcc, jobID = testId, passed = TRUE, build = 20)
myJobs <- getJobs(myAcc, getFullJobs = TRUE)
#> myJobs$data[1,.(build, passed)]
#build passed
#1:    20   TRUE
# deleteJob(myAcc, jobID = testId)
stopJob(myAcc, jobID = testId)

jobAssets <- getJobAssetNames(myAcc, jobID = testId)
#> jobAssets[["selenium-log"]]
#[1] "selenium-server.log"

jobLog <- getJobAssetFiles(myAcc, jobID = testId)
# deleteJobAssets(myAcc, jobID = testId)

## End(Not run)

johndharrison/RSauceLabs documentation built on May 19, 2019, 4:22 p.m.