mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-28 11:01:30 +08:00
Deployed e49ba59 with MkDocs version: 1.1.2
This commit is contained in:
@@ -348,6 +348,13 @@
|
||||
TestCase ID & Request ID
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#client-server-ipport" class="md-nav__link">
|
||||
Client & Server IP:PORT
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -376,6 +383,18 @@
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../run_loadtest/" title="Run load test" class="md-nav__link">
|
||||
Run load test
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
</li>
|
||||
@@ -463,6 +482,13 @@
|
||||
TestCase ID & Request ID
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#client-server-ipport" class="md-nav__link">
|
||||
Client & Server IP:PORT
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -886,6 +912,25 @@ timestamp_six_digits = str(int(time.time() * 1000))[-6:])
|
||||
|
||||
|
||||
<p>In other words, all requests in one testcase will have the same <code>HRUN-Request-ID</code> prefix, and each request will have a unique <code>HRUN-Request-ID</code> suffix.</p>
|
||||
<h2 id="client-server-ipport">Client & Server IP:PORT<a class="headerlink" href="#client-server-ipport" title="Permanent link">¶</a></h2>
|
||||
<p>Sometimes, logging remote server IP and port can be great helpful for trouble shooting, especially when there are multiple servers and we want to checkout which one returns error.</p>
|
||||
<p>Since version <code>3.0.13</code>, HttpRunner will log client & server IP:Port in debug level. </p>
|
||||
<div class="codehilite"><pre><span></span><code>2020-06-18 11:32:38.366 | INFO | httprunner.runner:__run_step:278 - run step begin: post raw text >>>>>>
|
||||
2020-06-18 11:32:38.687 | DEBUG | httprunner.client:request:187 - client IP: 10.90.205.63, Port: 62802
|
||||
2020-06-18 11:32:38.687 | DEBUG | httprunner.client:request:195 - server IP: 34.233.204.163, Port: 443
|
||||
</code></pre></div>
|
||||
|
||||
|
||||
<p>as well as testcase summary.</p>
|
||||
<div class="codehilite"><pre><span></span><code>"address": {
|
||||
"client_ip": "10.90.205.63",
|
||||
"client_port": 62802,
|
||||
"server_ip": "34.233.204.163",
|
||||
"server_port": 443
|
||||
},
|
||||
</code></pre></div>
|
||||
|
||||
|
||||
<h2 id="arguments-for-v2x-compatibility">arguments for v2.x compatibility<a class="headerlink" href="#arguments-for-v2x-compatibility" title="Permanent link">¶</a></h2>
|
||||
<p>Besides all the arguments of <code>pytest</code>, <code>hrun</code> also has several other arguments to keep compatibility with HttpRunner v2.x.</p>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user