RobotFramework内置变量:Built-in Variables(转载)
来源:互联网 发布:网络打印机ip地址查询 编辑:程序博客网 时间:2024/06/06 01:42
Built-in Variables
Robot Framework provides some built-in variables that are available automatically.Operating System Variables
Built-in variables related to the operating system ease making the test data operating-system-agnostic.Available operating-system-related built-in variables:Variable Explanation${CURDIR} An absolute path to the directory where the test data file is located. This variable is case-sensitive.${TEMPDIR} An absolute path to the system temporary directory. In UNIX-like systems this is typically /tmp, and in Windows c:\Documents andSettings\\Local Settings\Temp.${EXECDIR} An absolute path to the directory where test execution was started from.${/} The system directory path separator. / in UNIX-like systems, \ in Windows.${:} The system path element separator. : in UNIX-like systems and ; in Windows.Using operating-system-related built-in variablesNumber Variables
The variable syntax can be used for creating both integers and floating point numbers, as illustrated in the example below. This is useful when a keyword expects to get an actual number, and not a string that just looks like a number, as an argument.Example:Boolean and None Variables
Also Boolean values and Python None can be created using the variable syntax similarly as numbers.Example:Space and Empty Variables
It is possible to create spaces and empty strings using variables ${SPACE} and ${EMPTY}, respectively. These variables are useful, for example, when there would otherwise be a need to escape spaces or empty cells with a backslash. If more than one space is needed, it is possible to use the extended variable syntax like ${SPACE * 5}. In the following example, Should Be Equal keyword gets identical arguments but those using variables are easier to understand than those using backslashes.Example:Automatic Variables
Some automatic variables can also be used in the test data. These variables can have different values during the test execution and some of them are not even available all the time.Available automatic variables更多详情:https://twiki.cern.ch/twiki/bin/view/EMI/RobotFrameworkAdvancedGuide#Built_in_Variables
0 0
- RobotFramework内置变量:Built-in Variables(转载)
- nginx built-in variables (nginx 内置的变量)
- Unity Shader 内置变量(Built-in shader variables)
- Built-in shader variables //内置的着色器变量
- Built-in shader variables 内置的着色器变量
- Built-in shader variables
- Built-in shader variables
- R内置常数(Built-in Constants)
- 《我的RobotFramework书》1-6-3 内建变量, Build-in Variables
- 为bash添加内置命令(built-in)的方法
- Python内置函数(built-in function)
- The Python Built-in Functions(内置函数)
- python Built-in Functions(python内置函数)
- stylus之内置方法(Built-in Functions)
- 变量(variables)
- 5. 变量(Variables)
- 《我的RobotFramework书》1-6-1 创建变量, Creating Variables
- Oracle Built-in Data Types(Oracle内置数据类型)
- windows+php7安装laravel
- Linux系统常用基本操作(二)
- jqGrid文档
- telnet不能用!!!提示:-bash: telnet: command not found
- 关于 UART
- RobotFramework内置变量:Built-in Variables(转载)
- 分治算法
- 在Linux上安装Memcached服务(自己测试过了)
- 关闭 135 445端口
- DBUtils开源框架
- Commands out of sync; you can't run this command now?
- 对php中的二维数组进行排序
- 配置FTP服务,内网可以访问到,外网访问不到的解决办法(win 2008)
- Spring事务管理(详解+实例)