*** Settings ***
Library OperatingSystem
Library Selenium2Library
Library RequestsLibrary
Library Collections
Resource ../../03-Variable/BifangApiVariable.txt
*** Keywords ***
SystemCommands
[Arguments] ${commandstr} ${stringlist}
log toSystemCommand_SystemCommandTest
${commandreturn} OperatingSystem.Run ${commandstr}
Append To File ${path}/write_file.txt ${commandstr}
Append To File ${path}/write_file.txt %%%%%%%%%%%%%%newbat
Append To File ${path}/write_file.txt ${commandreturn}
${listlenth}= Get Length ${stringlist}
FOR ${var} IN RANGE ${listlenth}
#log ${var}
Should Contain ${commandreturn} ${stringlist}[${var}]
END
${rescode} Set Variable 200
log ${rescode}
[Return] ${rescode}
SystemCommand
[Arguments] ${commandstr} @{stringlist}
log dxytest${commandstr}
#nslookup -d www.jd.com
log ${commandreturn}
FOR ${var} IN @{stringlist}
log dxytest
log ${var}
Should Contain ${commandreturn} ${var}
#Should Contain ${commandreturn} ${qatype}