Beispiel #1
0
 /**
  *
  */
 public static function create_new_testsuite($testsuite_name)
 {
     # Build dict
     $data = array("name" => time() . $testsuite_name, "description" => TestRailApiWrapper::$testrail_testrun_description);
     $response = TestRailApiWrapper::$testrail_context->send_post("add_suite/" . TestRailApiWrapper::$testrail_project_id, $data);
     TestRailApiWrapper::$testrail_testplan_id = $response["id"];
     return $response["id"];
 }
Beispiel #2
0
 private function initRails()
 {
     $param = $this->container->getParameter("mink.parameters")["browser_name"];
     TestRailApiWrapper::set_testrun_context($this->testrail_username, $this->testrail_password, $this->testrail_url, " " . $param . " " . $this->testrun_basename, $this->testrun_description, $this->project_id, $this->testsuite_id);
 }