HEY ,
i want run python script in my robot file
i use this code but i can get output
Get Permission Value
[Arguments] ${user} ${context} ${views}
${command}= Set Variable python ${PERMISSION_SCRIPT} ${user} ${context} ${views}
${output}= Run ${command}
Log ${output}
[Return] ${output}
Did you get any error?
Run
documentation recommends using Run Process
from Process library. Try this:
*** Settings ***
Library Process
*** Keywords ***
Get Permission Value
[Arguments] ${user} ${context} ${views}
${command}= Set Variable python
${arguments}= Set Variable ${PERMISSION_SCRIPT} ${user} ${context} ${views}
${result}= Run Process ${command} ${arguments}
Log ${result.output}
RETURN ${result.output}
3 Likes