2021-09-21 07:36:53 +03:00
|
|
|
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/error-assert-variable</span></span>
|
2022-11-11 16:25:00 +03:00
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
2023-04-11 18:28:28 +03:00
|
|
|
<span class="line"><span class="section-header">[Captures]</span></span>
|
2023-04-17 14:05:34 +03:00
|
|
|
<span class="line"><span class="name">status</span>: <span class="query-type">status</span></span>
|
|
|
|
<span class="line"><span class="name">length</span>: <span class="query-type">header</span> <span class="string">"content-length"</span></span>
|
|
|
|
<span class="line"><span class="name">type</span>: <span class="query-type">header</span> <span class="string">"content-type"</span></span>
|
2023-04-11 18:28:28 +03:00
|
|
|
<span class="line"><span class="section-header">[Asserts]</span></span>
|
2021-09-21 07:36:53 +03:00
|
|
|
<span class="line"><span class="query-type">variable</span> <span class="string">"toto"</span> <span class="predicate-type">equals</span> <span class="string">"tata"</span></span>
|
|
|
|
<span class="line"><span class="query-type">variable</span> <span class="string">"status"</span> <span class="predicate-type">equals</span> <span class="expr">{{unknown}}</span></span>
|
|
|
|
<span class="line"><span class="query-type">variable</span> <span class="string">"status"</span> <span class="predicate-type">equals</span> <span class="expr">{{type}}</span></span>
|
|
|
|
<span class="line"><span class="query-type">variable</span> <span class="string">"status"</span> <span class="predicate-type">equals</span> <span class="expr">{{length}}</span></span>
|
2022-10-24 12:37:11 +03:00
|
|
|
</span></span></code></pre>
|