Robot Framework

Robot Framework

  1. Log level for robot test
    (Reference link: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html)
    We can add log level when debug, in order to see more code information in the log.
    在这里插入图片描述

–loglevel DEBUG
–loglevel TRACE
–loglevel INFO

  1. Passing parameters with Int type
    By default, all the parameters passed from Robot is String, if you want to pass a int, just add ${}, example: ${200}.

  2. A good example of Case Organization:
    https://bitbucket.org/robotframework/webdemo/src/9206bb637e9d15d45d33a35a55f7f4c1de898898/login_tests/invalid_login.robot?at=master&fileviewer=file-view-default

  3. How to specify relative path in Robot Framework
    TEST PROJECT (Root folder)
    |
    |_____ Resource (folder)
    | |_____ MyProfile.txt
    | |_____ MyPicture.jpg
    |
    |_____ Test (folder)
    |_____ MyTest.robot

I want to access the MyProfile.txt in MyTest.robot using relative reference instead of absolute path, solution should be: C U R D I R {CURDIR} CURDIR{/}…\Resource\MyProfile.txt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值