我正在使用机器人框架进行自动化,但是我收到了这个错误
No keyword with name 'Fetch From Left' found.
我不明白原因,我是这个工具的新手
这是我的代码:
${FILE_RUTS_INFORMACION_PERSONAL} archivo2.csv
我正在阅读带有三个DNI的CSV文件
Carga RUTs
[Documentation] Carga lista de RUTs a validar desde archivo csv
[Arguments] ${file_name}
${data}= read csv file ${file_name}
[return] ${data}
这是错误:
Consultar WS
[Documentation] Lee RUTs de archivo csv y consulta cada uno al Experto Original y Migrado.
[Arguments] ${data}
${rutsd}= Set Variable 0
${dv} = Set Variable 0
Log To Console .
:FOR ${element} IN ${data}
\ ${rutsd}= Fetch From Left @{element}[0] ;
\ ${dvymas}= Get Substring @{element}[0] -1
\ ${dv}= Fetch From Left ${dvymas} ;
\ Log To Console Consultando RUT ${rutsd}...
\ Run Keyword And Continue On Failure WS Experto Orignal ${rutsd} ${dv}
ERROR:
FOR ${element} IN [ ${data} ]
Start / End / Elapsed: 20170823 10:00:11.149 / 20170823 10:00:11.151 / 00:00:00.002
00:00:00.002VAR ${element} = [['169233xxx;'], ['169129xxx;'], ['189925xxx;']]
Start / End / Elapsed: 20170823 10:00:11.149 / 20170823 10:00:11.151 / 00:00:00.002
00:00:00.000KEYWORD ${rutsd}= = Fetch From Left @{element}[0], ;
Start / End / Elapsed: 20170823 10:00:11.151 / 20170823 10:00:11.151 / 00:00:00.000
10:00:11.151 FAIL No keyword with name 'Fetch From Left' found.
答案 0 :(得分:3)
您需要导入String library。有关详细信息,请参阅user guide。只需要导入BuiltIn库。查看您发布的代码,您似乎无法导入它。
将此添加到您的设置部分应该可以解决问题
*** Settings ***
Library String