Commit 32a15e06 authored by 王英豪's avatar 王英豪

修改上传参数化文件

parent 6a545869
...@@ -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)
......
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