Nested loop in RobotFramework

前端 未结 3 1257
走了就别回头了
走了就别回头了 2020-12-12 07:29

I need to create a nested loop in Robot framework. Can you please Help me do it?

${contents}=    Get File    ${file path}
 @{lines}=    Split to lines    ${         


        
3条回答
  •  甜味超标
    2020-12-12 08:06

    It isn't possible without custom keyword containing the inner loop. See doc: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#nested-for-loops

    I'd say that such logic should be always written using some stronger language (python, java...) and then just called from RF.

提交回复
热议问题