WebDriver\SauceLabs\SauceRest::updateJob PHP Method

updateJob() public method

Update existing job: /rest/v1/:userId/jobs/:jobId (PUT)
public updateJob ( string $jobId, array $jobInfo ) : array
$jobId string Job ID
$jobInfo array Job information
return array
    public function updateJob($jobId, $jobInfo)
    {
        return $this->execute('PUT', $this->userId . '/jobs/' . $jobId, $jobInfo);
    }

Usage Example

 /**
  * Update status of the test, that was executed in the given session.
  *
  * @param string  $session_id  Session ID.
  * @param boolean $test_status Test status.
  *
  * @return boolean
  */
 public function updateStatus($session_id, $test_status)
 {
     return $this->_sauceRest->updateJob($session_id, array('passed' => $test_status));
 }