From 81c4d772b00adcfa88e3f3cb583b5e36b6256e16 Mon Sep 17 00:00:00 2001 From: chras-fu Date: Tue, 16 Jan 2024 16:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=89=8D=E5=90=8E=E7=BD=AE?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2sql=E8=8E=B7=E5=8F=96=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=B8=BA=E5=85=83=E7=BB=84=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/api/teststep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api/teststep.py b/core/api/teststep.py index 1dbd4ed..6dde761 100644 --- a/core/api/teststep.py +++ b/core/api/teststep.py @@ -187,7 +187,7 @@ def exec_sql(self, sql, case): continue if j >= len(values): raise IndexError("变量数错误, 请检查变量数配置是否与查询语句一致,当前查询结果:
{}".format(results)) - self.context[n] = values[j] # 保存变量到变量空间 + self.context[n] = list(values[j]) # 保存变量到变量空间 def save_response(self, res): """保存响应结果"""