Beispiel #1
0
 public function set_testingbot_info($field, $value)
 {
     if ($this->running_at_testingbot()) {
         $payload = "test[{$field}]={$value}";
         $url_parts = parse_url($this->server_url);
         WebDriver::Curl("PUT", "https://" . $url_parts['user'] . "api.testingbot.com/v2/tests/" . $this->session_id, $payload);
     }
 }
Beispiel #2
0
 public function set_sauce_context($field, $value)
 {
     if ($this->running_at_sauce()) {
         $payload = json_encode(array($field => $value));
         $url_parts = parse_url($this->server_url);
         WebDriver::Curl("PUT", "http://" . $url_parts['user'] . ":" . $url_parts['pass'] . "@saucelabs.com/rest/v1/" . $url_parts['user'] . "/jobs/" . $this->session_id, $payload);
     }
 }