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的计算结果返回
  • 相关阅读:
    mongodb安装与启动
    js数组操作
    js字符串操作
    js原型对象和原型链
    Js 原型对象与原型链
    zepto
    闭包的理解
    JSON与XML的区别比较
    ajax 异步请求四个步骤
    angularJS之项目知识
  • 原文地址:https://www.cnblogs.com/yhleng/p/8074630.html
Copyright © 2011-2022 走看看