zoukankan      html  css  js  c++  java
  • RobotFramework用例执行的几种命令

    1.指定robot文件(套件文件)

      执行命令:

    robot test.robot

    2.指定整个套件目录,会执行目录下所有的测试用例

     执行命令:

    robot testcase

    3.当引用外部文件(包括资源文件和py测试库文件) 

     还是使用命令:robot testcase 

     报错: Error in file 'D:iToolsspj estcase est2.robot': Resource file 'rflib cfile.robot' does not exist.

     解决方法:

        执行命令:

    robot -P . testcase
    或robot --pythonpath . testcase

     4.套件目录下,指定用例执行

       执行命令:【其中*是模糊匹配】

    robot -P . -t  *Lara   testcase
    或者robot -P . --test  *Lara   testcase

     5.指定套件下的子套件中的用例

     我想执行套件suite1下的子套件st1的所有用例

        执行命令:

    robot -s st1 suite1
    或robot --suite st1 suite1

       执行结果:

       

      

  • 相关阅读:
    excelhelp
    导入数据到GridView
    sql2005悠改sa
    状态存储管理 encode,decode,transfer
    Session持久化
    Microsoft SQL Server 2005 数据类型
    Cookie (HttpCookie的实例)
    role设计
    ajax
    poj 3370 Halloween treats 夜
  • 原文地址:https://www.cnblogs.com/Lara1798/p/12950366.html
Copyright © 2011-2022 走看看