Commit a8c60702 by zhaihuitao

update

parent 6f756105
......@@ -243,7 +243,7 @@ function filterTable(elem) { // eslint-disable-line no-unused-vars
}
</script>
<h1>report.html</h1>
<p>Report generated on 08-Mar-2022 at 16:51:09 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.1.1</p>
<p>Report generated on 09-Mar-2022 at 10:51:12 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.1.1</p>
<h2>Environment</h2>
<table id="environment">
<tr>
......@@ -262,7 +262,7 @@ function filterTable(elem) { // eslint-disable-line no-unused-vars
<td>Python</td>
<td>3.9.0</td></tr></table>
<h2>Summary</h2>
<p>3 tests ran in 0.37 seconds. </p>
<p>3 tests ran in 0.57 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="passed">3 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="failed">0 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>
<h2>Results</h2>
<table id="results-table">
......@@ -278,7 +278,7 @@ function filterTable(elem) { // eslint-disable-line no-unused-vars
<tr>
<td class="col-result">Passed</td>
<td class="col-name">testcase.py::TestGatlingAPI::test_p2v</td>
<td class="col-duration">0.08</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
......@@ -287,7 +287,7 @@ function filterTable(elem) { // eslint-disable-line no-unused-vars
<tr>
<td class="col-result">Passed</td>
<td class="col-name">testcase.py::TestGatlingAPI::test_v2v</td>
<td class="col-duration">0.05</td>
<td class="col-duration">0.06</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
......@@ -296,7 +296,7 @@ function filterTable(elem) { // eslint-disable-line no-unused-vars
<tr>
<td class="col-result">Passed</td>
<td class="col-name">testcase.py::TestGatlingAPI::test_tv2</td>
<td class="col-duration">0.06</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
......
......@@ -13,15 +13,15 @@ import param
import config
def getToken():
def gettoken():
r = requests.post(url=config.token_url, data=param.token_data, headers={'Content-Type': 'application/json;charset=UTF-8'})
print(r.json())
# print(r.json())
t = r.json()["data"]["access_token"]
return t
class TestGatlingAPI:
token = "Bearer" + " " + getToken()
token = "Bearer" + " " + gettoken()
headers = {
"authorization": token,
'Content-Type': 'application/json;charset=UTF-8'
......
{
"title_id": 20220358
"title_id": 20220359
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment