背景
继续学习RobotFramework框架,这次看的是DateTime库。
DateTime库是RobotFramework操作时间的一个库,可以进行很多时间方面的操作。
DateTime is a Robot Framework standard library that supports creating and converting date and time values (e.g. Get Current Date, Convert Time), as well as doing simple calculations with them (e.g. Subtract Time From Date, Add Time To Time). It supports dates and times in various formats, and can also be used by other libraries programmatically.
Get Current Date
示例代码
*** Settings ***
Library DateTime
*** Test Cases ***
test1
${tm} get_current_date
l