zoukankan      html  css  js  c++  java
  • RF基础(一) RF内建函数库BuiltIn

    Robot framework做为一个测试框架,并不是只能做selenium测试,是支持扩展的, 比如说,你引用requests库就可以做接口测试, 那么无论你用什么库

    首先要了解, RF本身提供的内建函库BuiltIn中的内建函数 ,这是RF本身带的.下面开始了解一下RF库中都有哪些内建函数,

    1>Convert 系列函数

    2>Run keyword 系列函数

    根据条件决定是否执行关键字

    Run Keyword If
    Run Keyword If All Critical Tests Passed
    Run Keyword If All Tests Passed
    Run Keyword If Any Critical Tests Failed
    Run Keyword If Any Tests Failed
    Run Keyword If Test Failed
    Run Keyword If Test Passed
    Run、Keyword If Timeout Occurred
     
    3>Should 系列函数
    这些关键字都是用作判断时用的
    Should Be Empty
    Should Be Equal
    Should Be Equal As Integers 
    Should Be Equal As Numbers
    Should Be Equal As Strings
    Should Be True
    Should Contain
    Should Contain X Times
    Should End With
    Should Match
    Should Match Regexp 
    Should Not Be Empty
    Should Not Be Equal
    Should Not Be Equal As Integers
    Should Not Be Equal As Numbers
    Should Not Be Equal As Strings
    Should Not Be True
    Should Not Contain
    Should Not End With
    Should Not Match 
    Should Not Match Regexp
    Should Not Start With
    Should Start With
     

    4>Evaluate 关键字:

    数值运算并得到结果
    Evaluate把想要计算的表达式直接传递给Python,Python的计算结果返回
  • 相关阅读:
    毕业季 | 如何做出99分的答辩PPT
    git: error setting certificate verify locations解决办法
    获取表格里面的内容
    MD5加密算法
    mybatis多条件批量删除
    layer.confirm
    DevExpress控件的GridControl实现行多选
    sz与rz命令
    @TableField的使用
    C# WinForm 中Label自动换行 解决方法
  • 原文地址:https://www.cnblogs.com/yhleng/p/8074630.html
Copyright © 2011-2022 走看看