使用robotframework,我需要发送2个curl命令。第一个curl命令取决于第二个curl命令的完成情况,但是直到第一个curl命令开始之前,才可以发送第二个curl命令。
我发现了用于robotframework的进程库,该库允许您在后台运行进程,但是我无法确定所需的语法。
*** Test Cases ***
Post Request curl1 /test/update/v1 data=${data} headers=${headers}
Post Request curl2 /test/data/v1 data=${data} headers=${headers}
*** Test Cases ***
Example
Start Process program arg1 arg2 alias=First
${handle} = Start Process command.sh arg | command2.sh shell=True
cwd=/path
${result} = Run Process ${CURDIR}/script.py
Should Not Contain ${result.stdout} FAIL
Terminate Process ${handle}
${result} = Wait For Process First
Should Be Equal As Integers ${result.rc} 0
我不知道如何将示例中的语法与我的代码相匹配。