zoukankan      html  css  js  c++  java
  • RF内置库函数学习(一)

    Builtin库(固定库)

    evaluate(求值)求表达式的值并返回结果。

    Arguments:

    [ expression | modules=None | namespace=None ]

    Evaluates the given expression in Python and returns the results.

    expression is evaluated in Python as explained in `Evaluating expressions`.

     

    modules argument can be used to specify a comma separated list of Python modules to be imported and added to the evaluation namespace.

    Modules 参数用来指定是从python的哪个模块导入,并增加到namespace。即在调用python的函数时,在此指明函数所在的模块。

    释义:返回一个随机数。调用了random模块,sys模块。此处modules可以不写。

          Maxint sys中的最大整数值。即在0和最大整数值间随机一个数。

    namespace argument can be used to pass a custom evaluation namespace as a dictionary. Possible modules are added to this namespace. This is a new feature in Robot Framework 2.8.4.

    namespace 用来指定自定义的词典。即指明表达式计算的时候,变量值从那个自定义的区间去取。Namespace单词必须写。

     

    释义:创建一个${ns}的词典,调用词典中的x,y并将计算结果给result。

  • 相关阅读:
    高级树,AVL树和红黑树
    递归分治和动态规划
    树的便利
    undefined: balancer.PickOptions 报错
    微服务常用中间件
    golang中间件的实现
    OpenTracing与Jaeger
    selenium中driver.close()与driver.quit()的区别
    20201016_苹果开发者证书申请流程
    20201016_苹果开发者证书申请
  • 原文地址:https://www.cnblogs.com/morwind/p/6672029.html
Copyright © 2011-2022 走看看