RobotFramework:查询条件为最近一个月的数据(2019-07-09 00:00:00.000 到 2019-08-07 23:59:59.999)

 自动化测试中遇到,默认查询条件为最近一个月,所以起始时间就应该为(2019-07-09 00:00:00.000 到  2019-08-07 23:59:59.999)

test
    ${current_date}    Get Current Date    result_format=%Y-%m-%d 23:59:59.999
    log    ${current_date}
    ${current_date-30}    Add Time To Date    ${current_date}    -719:59:59.999
    log    ${current_date-30}

猜你喜欢

转载自www.cnblogs.com/gcgc/p/11315975.html