RF库关键字get time测试

Posted 垄上行

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RF库关键字get time测试相关的知识,希望对你有一定的参考价值。

 

*** Test Cases ***
Timestamp
${time} GET TIME
${secs} GET TIME epoch
${year} GET TIME return year
${yyyy} ${mm} ${dd} GET TIME year,month,day
@{time} GET TIME year month day hour min sec
${y} ${s} GET TIME seconds and year
${date} set variable ${yyyy}${mm}${dd}
log ------------------------------------------------------
${time} get time \\ 1177654467 # Time given as epoch seconds
${secs} get time sec 2007-04-27 09:14:27 # Time given as a timestamp
${year} get time year NOW # The local time of execution
${month} get time year month NOW
${yesterday} get time year month day NOW - 1 day
${tomorrow} get time year month day NOW + 1 day
@{time} get time hour min sec NOW + 1h 2min 3s # 1h 2min 3s added to the local time
@{utc} get time hour min sec UTC # The UTC time of execution
${hour} get time hour UTC-1 hour # 1h subtracted from the UTC time

 

 

以上是关于RF库关键字get time测试的主要内容,如果未能解决你的问题,请参考以下文章

RF之关键字和循环

RF自定义库

RF(数据库测试)

rf相关库说明

RF变量的共享使用、python测试库

Robot FrameworkBuiltIn库