Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gatling-monitor
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reyun
gatling-monitor
Commits
a8c60702
Commit
a8c60702
authored
Mar 09, 2022
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6f756105
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
report.html
report.html
+5
-5
testcase.py
testcase.py
+3
-3
title_id.json
title_id.json
+2
-1
No files found.
report.html
View file @
a8c60702
...
...
@@ -243,7 +243,7 @@ function filterTable(elem) { // eslint-disable-line no-unused-vars
}
</script>
<h1>
report.html
</h1>
<p>
Report generated on 0
8-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 0
9-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.
3
7 seconds.
</p>
<p>
3 tests ran in 0.
5
7 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.0
8
</td>
<td
class=
"col-duration"
>
0.0
5
</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.0
5
</td>
<td
class=
"col-duration"
>
0.0
6
</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.0
6
</td>
<td
class=
"col-duration"
>
0.0
5
</td>
<td
class=
"col-links"
></td></tr>
<tr>
<td
class=
"extra"
colspan=
"4"
>
...
...
testcase.py
View file @
a8c60702
...
...
@@ -13,15 +13,15 @@ import param
import
config
def
get
T
oken
():
def
get
t
oken
():
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"
+
" "
+
get
T
oken
()
token
=
"Bearer"
+
" "
+
get
t
oken
()
headers
=
{
"authorization"
:
token
,
'Content-Type'
:
'application/json;charset=UTF-8'
...
...
title_id.json
View file @
a8c60702
{
"title_id"
:
2022035
8
"title_id"
:
2022035
9
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment