Skip to content

Commit

Permalink
自定义变量组件中定义的变量在本地保存一份
Browse files Browse the repository at this point in the history
  • Loading branch information
zengln committed Apr 9, 2021
1 parent 31eb3a4 commit ac1c86e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jmeter2Blade/adapter/zxyAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def deal_arguments(root, node_name):
if variable_remark is not None:
data["variableRemark"] = variable_remark.text

arguments_local[var_name.text] = var_content.text
variable_date.set_data(data)

resp = post_blade.dealVariableData(variable_date)
Expand Down Expand Up @@ -342,6 +343,7 @@ def deal_threadgroup(root, node_path):
if resp is not None:
logger.error(thread_group_name + resp)


# 根URL, 添加脚本时使用
root_url = "ibps_jmeter_http"
# 检查字符串, 根路径
Expand All @@ -357,6 +359,9 @@ def deal_threadgroup(root, node_path):
"default": "ibps_jmeter_oracle"
}

# 本地保存用户定义变量, 在其他组件中到变量直接替换数据
arguments_local = dict()

# 读取xml文件
tree = ET.parse('../jmxfile/网银贷记往账.jmx')

Expand Down

0 comments on commit ac1c86e

Please sign in to comment.