html tool

2020年5月8日星期五

轉: robotframework sleep

可以內置使用Sleep



Pauses the test executed for the given time.

time may be either a number or a time string. Time strings are in a format such as 1 day 2 hours 3 minutes 4 seconds 5milliseconds or 1d 2h 3m 4s 5ms, and they are fully explained in an appendix of Robot Framework User Guide. Optional reason can be used to explain why sleeping is necessary. Both the time slept and the reason are logged.

Examples:

Sleep42
Sleep1.5
Sleep2 minutes 10 seconds
Sleep10sWait for a reply

没有评论:

发表评论