Robotframework 如何使用robot框架以异步方式运行命令
如何使用robot框架异步执行命令。 下面的示例代码是使用ansible完成的,需要使用robot框架实现Robotframework 如何使用robot框架以异步方式运行命令,robotframework,Robotframework,如何使用robot框架异步执行命令。 下面的示例代码是使用ansible完成的,需要使用robot框架实现 - name: Capturing the Data flow shell: tcpdump -v -U -i eth1 host 8.8.8.8 -w /tmp/temhost.pcap become: yes async: 60 poll: 0 使用我们可以实现的库,下面是一段示例代码: Library Process S
- name: Capturing the Data flow
shell: tcpdump -v -U -i eth1 host 8.8.8.8 -w /tmp/temhost.pcap
become: yes
async: 60
poll: 0
使用我们可以实现的库,下面是一段示例代码:
Library Process
Suite Setup Open Connection And Log In
Suite Teardown Close Connection
*** Test Cases ***
Capturing The Traffic Flow
${tcpdump}= Write nohup sudo tcpdump -v -U host ${public_ip_gateway} -w ${TCPDUMPFILE} &
Log ${tcpdump} console=${True}
${ping_out}= Execute Command ping -c 15 8.8.8.8 return_stdout=True
Log ${ping_out} console=${True}