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:
| Sleep | 42 | |
| Sleep | 1.5 | |
| Sleep | 2 minutes 10 seconds | |
| Sleep | 10s | Wait for a reply |
没有评论:
发表评论