From ac1c86e145b0bf7d999750748f20322a89e8b759 Mon Sep 17 00:00:00 2001 From: zengln Date: Fri, 9 Apr 2021 14:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=AD=E5=AE=9A=E4=B9=89=E7=9A=84=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=9C=A8=E6=9C=AC=E5=9C=B0=E4=BF=9D=E5=AD=98=E4=B8=80?= =?UTF-8?q?=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jmeter2Blade/adapter/zxyAdapter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jmeter2Blade/adapter/zxyAdapter.py b/Jmeter2Blade/adapter/zxyAdapter.py index f52f8ba..d1c6675 100644 --- a/Jmeter2Blade/adapter/zxyAdapter.py +++ b/Jmeter2Blade/adapter/zxyAdapter.py @@ -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) @@ -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" # 检查字符串, 根路径 @@ -357,6 +359,9 @@ def deal_threadgroup(root, node_path): "default": "ibps_jmeter_oracle" } +# 本地保存用户定义变量, 在其他组件中到变量直接替换数据 +arguments_local = dict() + # 读取xml文件 tree = ET.parse('../jmxfile/网银贷记往账.jmx')