From 29ffbbe225b6307e3e474893073c3c5f304d494e Mon Sep 17 00:00:00 2001 From: dongxiaoyan Date: Fri, 8 May 2020 13:51:03 +0800 Subject: [PATCH] =?UTF-8?q?cli=E5=91=BD=E4=BB=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA=E7=BB=93=E6=9D=9F=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=EF=BC=8C=E6=81=A2=E5=A4=8Dtsg=5Fshow=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E4=BD=BF=E7=94=A8=E6=8D=A2=E8=A1=8C=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=88=AA=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-Keyword/tsg_cli/Interface.robot | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/02-Keyword/tsg_cli/Interface.robot b/02-Keyword/tsg_cli/Interface.robot index cb07bac..f75e725 100644 --- a/02-Keyword/tsg_cli/Interface.robot +++ b/02-Keyword/tsg_cli/Interface.robot @@ -434,10 +434,13 @@ Run5 Write ${command} ${r} Read delay=10s Should Not Be Empty ${r} - #${str} Replace String ${r} ${\n} - - ${index} Evaluate '${r}'.rindex('tsgcli >') + ${str} Replace String ${r} ${\n} - + ${index} Evaluate '${str}'.rindex('-') ${len} Convert To Integer ${index} - ${json} Evaluate '${r}'[0:${len}] + ${json} Evaluate '${str}'[0:${len}] + #${index} Evaluate '${r}'.rindex('tsgcli >') + #${len} Convert To Integer ${index} + #${json} Evaluate '${r}'[0:${len}] ${dict} json.Loads ${json} ${list} Convert To List ${dict} [Return] ${list}