* $toolresultsService = new Google\Service\ToolResults(...); * $testCases = $toolresultsService->testCases; * */ class ProjectsHistoriesExecutionsStepsTestCases extends \Google\Service\Resource { /** * Gets details of a Test Case for a Step. Experimental test cases API. Still in * active development. May return any of the following canonical error codes: - * PERMISSION_DENIED - if the user is not authorized to write to project - * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the * containing Test Case does not exist (testCases.get) * * @param string $projectId A Project id. Required. * @param string $historyId A History id. Required. * @param string $executionId A Execution id Required. * @param string $stepId A Step id. Note: This step must include a * TestExecutionStep. Required. * @param string $testCaseId A Test Case id. Required. * @param array $optParams Optional parameters. * @return TestCase */ public function get($projectId, $historyId, $executionId, $stepId, $testCaseId, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'testCaseId' => $testCaseId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], TestCase::class); } /** * Lists Test Cases attached to a Step. Experimental test cases API. Still in * active development. May return any of the following canonical error codes: - * PERMISSION_DENIED - if the user is not authorized to write to project - * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the * containing Step does not exist * (testCases.listProjectsHistoriesExecutionsStepsTestCases) * * @param string $projectId A Project id. Required. * @param string $historyId A History id. Required. * @param string $executionId A Execution id Required. * @param string $stepId A Step id. Note: This step must include a * TestExecutionStep. Required. * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of TestCases to fetch. Default * value: 100. The server will use this default if the field is not set or has a * value of 0. Optional. * @opt_param string pageToken A continuation token to resume the query at the * next item. Optional. * @return ListTestCasesResponse */ public function listProjectsHistoriesExecutionsStepsTestCases($projectId, $historyId, $executionId, $stepId, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListTestCasesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsHistoriesExecutionsStepsTestCases::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsTestCases');