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
cc8f11ab
Commit
cc8f11ab
authored
Mar 08, 2022
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5e9b6d67
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
config.py
config.py
+1
-0
param.py
param.py
+20
-0
testcase.py
testcase.py
+6
-2
No files found.
config.py
View file @
cc8f11ab
...
...
@@ -13,3 +13,4 @@ url_prod = "http://gatling.reyun.com"
p2v
=
"/api-f/batchIm2Video/asyncBatchImg2V"
v2v
=
"/api-f/video2video/generatedAsync/false"
t2v
=
"/api-f/text2video/asyncGenerated"
param.py
View file @
cc8f11ab
...
...
@@ -102,4 +102,23 @@ v2v = json.dumps({
"name"
:
"项目名称_20220217145806_1"
}
]
})
t2v
=
json
.
dumps
({
"title"
:
"文字转视频_20220308161829"
,
"text2VideoList"
:
[
{
"filename"
:
"文字转视频_20220308161829_1"
,
"logoIndex"
:
1
,
"musicUrl"
:
""
,
"templateId"
:
"1483357236767072256"
,
"textId"
:
"1479412167945068544"
,
"warningContent"
:
""
,
"warningIndex"
:
9
,
"watermarkAlpha"
:
0.4
,
"watermarkSpeed"
:
2
}
],
"local"
:
False
,
"library"
:
True
})
\ No newline at end of file
testcase.py
View file @
cc8f11ab
...
...
@@ -22,4 +22,9 @@ class TestGatlingAPI:
def
test_v2v
(
self
):
r
=
requests
.
post
(
url
=
config
.
url_prod
+
config
.
v2v
,
data
=
param
.
v2v
,
headers
=
config
.
Headers
)
print
(
r
.
text
)
assert
r
.
status_code
==
200
\ No newline at end of file
assert
r
.
status_code
==
200
def
test_tv2
(
self
):
r
=
requests
.
post
(
url
=
config
.
url_prod
+
config
.
t2v
,
data
=
param
.
t2v
,
headers
=
config
.
Headers
)
print
(
r
.
text
)
assert
r
.
status_code
==
200
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