Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AutomatedTestPlatform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
王英豪
AutomatedTestPlatform
Commits
32a15e06
Commit
32a15e06
authored
Oct 14, 2022
by
王英豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上传参数化文件
parent
6a545869
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
jmeter_perform.py
automated_main/utils/jmeter_perform.py
+1
-1
No files found.
automated_main/utils/jmeter_perform.py
View file @
32a15e06
...
@@ -75,7 +75,7 @@ def create_para_jmx(jmx, jm_num_threads, jm_loops, jm_duration, jm_ramp_time, jm
...
@@ -75,7 +75,7 @@ def create_para_jmx(jmx, jm_num_threads, jm_loops, jm_duration, jm_ramp_time, jm
with
open
(
jmx
,
"r"
,
encoding
=
"utf-8"
)
as
file
:
with
open
(
jmx
,
"r"
,
encoding
=
"utf-8"
)
as
file
:
tmpstr
=
Template
(
file
.
read
())
.
safe_substitute
(
loops
=
jm_loops
,
num_threads
=
jm_num_threads
,
tmpstr
=
Template
(
file
.
read
())
.
safe_substitute
(
loops
=
jm_loops
,
num_threads
=
jm_num_threads
,
duration
=
jm_duration
,
scheduler
=
jm_scheduler
,
duration
=
jm_duration
,
scheduler
=
jm_scheduler
,
ramp_time
=
jm_ramp_time
,
csv_data_set
=
'/
data
/jmeter_data_set/'
+
test_data_jmeter
)
ramp_time
=
jm_ramp_time
,
csv_data_set
=
'/
home/quant_group/data/jmeter
/jmeter_data_set/'
+
test_data_jmeter
)
with
open
(
jmx
,
"w+"
,
encoding
=
"utf-8"
)
as
file
:
with
open
(
jmx
,
"w+"
,
encoding
=
"utf-8"
)
as
file
:
file
.
writelines
(
tmpstr
)
file
.
writelines
(
tmpstr
)
...
...
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