#!/usr/bin/env php > 这个是测试用例100 使用不存在的用例id查询用例详情 >> 404 Not found */ global $token; $header = array('Token' => $token->token); $existCase = $rest->get('/testcases/100', $header); $noCase = $rest->get('/testcases/100001', $header); $existCase->body = array($existCase->body); $noCase->body = array($noCase->body); r($existCase) && c(200) && p('title') && e('这个是测试用例100'); // 使用正确用例id查询用例详情 r($noCase) && c(404) && p('error') && e('404 Not found'); // 使用不存在的用例id查询用例详情