Skip to content

Commit

Permalink
TestingBot: Retrieve information about the current session
Browse files Browse the repository at this point in the history
  • Loading branch information
chibimagic committed Mar 21, 2015
1 parent f2dbfa3 commit bfeec73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WebDriver/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ public function get_cache_status_string() {
return $status_strings[$status_code];
}

// See http://testingbot.com/support/api#singletest
public function get_testingbot_info() {
$response = WebDriver::Curl("GET", "https://" . kTestingBotAPIKey . "@api.testingbot.com/v1/tests/" . $this->session_id);
return json_decode(trim($response['body']), true);
}

/********************************************************************
* Setters
*/
Expand Down

0 comments on commit bfeec73

Please sign in to comment.