用例调试
<p><strong>简要描述:</strong> </p>
<ul>
<li>进行用例调试</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/v1/case/debug</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">url</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>请求地址</td>
</tr>
<tr>
<td style="text-align: left;">method</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>请求方法 1 get , 2 post, 3 put, 4 delete</td>
</tr>
<tr>
<td style="text-align: left;">submit</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>提交方式 1 -> json提交 2 -> 表单提交</td>
</tr>
<tr>
<td style="text-align: left;">header</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>请求头</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>请求体</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"cookies": {
"_gh_sess": "m3SYFHKMlMsomUDNXYXcuqcOPIH2zGb5WyJmmFgwO4iZuwTbvHCN%2F%2FrG2qGj65xVWxfr80O08yG8LkywahKT22ije4IIEdnq7xGDBRG5RQ9HSZ9%2B%2BZ8bfx1d%2FSfriU%2FCoYqD42e5g%2Bh1EUM3%2B%2BsWIKmlZjnv05AzogNgqZZtcSZmyRZjb3Zg8tKytn0f4OqVDIlMqNH34V1iAIhxdmhGQTzme3jtATrq66gH%2BJvsUUb0BBVK21nnQCxy%2Bq0ZTUgIRxWc7%2BH92I0ECHb6KNGsUg%3D%3D--%2F94O6RfbnsG5AX94--Ubad4hAC2H7Z5xDyHCUbCg%3D%3D",
"_octo": "GH1.1.1808290682.1586482201",
"logged_in": "no"
},
"data": {
"icons": [
{
"sizes": "114x114",
"src": "https://github.githubassets.com/apple-touch-icon-114x114.png"
},
{
"sizes": "72x72",
"src": "https://github.githubassets.com/apple-touch-icon-72x72.png"
},
{
"sizes": "76x76",
"src": "https://github.githubassets.com/apple-touch-icon-76x76.png"
}
],
"name": "GitHub"
},
"encoding": "utf-8",
"headers": {
"Accept-Ranges": "bytes",
"Content-Encoding": "gzip",
"Content-Length": "210",
"Set-Cookie": "_gh_sess=m3SYFHKMlMsomUDNXYXcuqcOPIH2zGb5WyJmmFgwO4iZuwTbvHCN%2F%2FrG2qGj65xVWxfr80O08yG8LkywahKT22ije4IIEdnq7xGDBRG5RQ9HSZ9%2B%2BZ8bfx1d%2FSfriU%2FCoYqD42e5g%2Bh1EUM3%2B%2BsWIKmlZjnv05AzogNgqZZtcSZmyRZjb3Zg8tKytn0f4OqVDIlMqNH34V1iAIhxdmhGQTzme3jtATrq66gH%2BJvsUUb0BBVK21nnQCxy%2Bq0ZTUgIRxWc7%2BH92I0ECHb6KNGsUg%3D%3D--%2F94O6RfbnsG5AX94--Ubad4hAC2H7Z5xDyHCUbCg%3D%3D; Path=/; HttpOnly; Secure, _octo=GH1.1.1808290682.1586482201; Path=/; Domain=github.com; Expires=Sat, 10 Apr 2021 01:30:01 GMT; Secure, logged_in=no; Path=/; Domain=github.com; Expires=Sat, 10 Apr 2021 01:30:01 GMT; HttpOnly; Secure",
"X-GitHub-Request-Id": "D6B7:4729:7275DC:94443E:5E8FCC19",
"cache-control": "max-age=604800, public",
"content-security-policy": "default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com",
"content-type": "application/manifest+json; charset=utf-8",
"date": "Fri, 10 Apr 2020 01:30:00 GMT",
"etag": "W/\"fc98210d9a2739bfcd9b805459fef518\"",
"expect-ct": "max-age=2592000, report-uri=\"https://api.github.com/_private/browser/errors\"",
"referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"server": "GitHub.com",
"status": "304 Not Modified",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"vary": "X-PJAX, Accept-Encoding, Accept, X-Requested-With",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-xss-protection": "1; mode=block"
},
"statusCode": 200,
"totalSeconds": 1.304233
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">statusCode</td>
<td style="text-align: left;">int</td>
<td>HTTP状态码</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">string</td>
<td>返回体</td>
</tr>
<tr>
<td style="text-align: left;">headers</td>
<td style="text-align: left;">string</td>
<td>返回头</td>
</tr>
<tr>
<td style="text-align: left;">cookies</td>
<td style="text-align: left;">string</td>
<td>cookies</td>
</tr>
<tr>
<td style="text-align: left;">encoding</td>
<td style="text-align: left;">string</td>
<td>编码</td>
</tr>
<tr>
<td style="text-align: left;">totalSeconds</td>
<td style="text-align: left;">int</td>
<td>响应时间,单位秒</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>