【RF库Collections测试】Dictionaries Should Be Equal
Name:
Dictionaries Should Be Equal
Source:
Collections <test library>
Arguments:
[ dict1 | dict2 | msg=None | values=True ]
Fails if the given dictionaries are not equal.
First the equality of dictionaries' keys is checked and after that all the key value pairs. If there are differences between the values, those are listed in the error message.
See `Lists Should Be Equal` for an explanation of `msg`. The given dictionaries are never altered by this keyword.
The error message can be configured using `msg` and `values` arguments:
If `msg` is not given, the default error message is used.
If `msg` is given and `values` is either Boolean False or a string 'False' or 'No Values', the error message is simply `msg`.
Otherwise the error message is `msg` + 'new line' + default.
首先判断字典所有的键是否相等,若相等,则判断所有键的值是否相同。
场景1:


场景2:


场景3:


场景4:msg=${D2} not equal ${D4} ,values为空
`msg` + 'new line' + default.


场景5:msg=${D2} not equal ${D4} ,values=False


场景6;msg=${D2} not equal ${D4} ,values=Boolean False


场景7;msg=${D2} not equal ${D4} ,values=No Values


【RF库Collections测试】Dictionaries Should Be Equal的更多相关文章
- 【RF库Collections测试】lists should be equal
场景一:msg=None 场景二:自定义msg 场景三:自定义msg和values,且values为布尔类型False或者字符串False和No Values 场景四:自定义msg和values,且v ...
- 【RF库Collections测试】Dictionary Should Contain Sub Dictionary
Name:Dictionary Should Contain Sub DictionarySource:Collections <test library>Arguments:[ dict ...
- 【RF库Collections测试】List Should Contain Value
Name:List Should Contain ValueSource:Collections <test library>Arguments:[ list_ | value | msg ...
- 【RF库Collections测试】Sort List
Name:Sort ListSource:Collections <test library>Arguments:[ list_ ]Sorts the given list in plac ...
- 【RF库Collections测试】Set List Value
Name:Set List ValueSource:Collections <test library>Arguments:[ list_ | index | value ]Sets th ...
- 【RF库Collections测试】Reverse List
Name:Reverse ListSource:Collections <test library>Arguments:[ list_ ]Reverses the given list i ...
- 【RF库Collections测试】Remove Values From List
Name:Remove Values From ListSource:Collections <test library>Arguments:[ list_ | *values ]Remo ...
- 【RF库Collections测试】Remove From List
Name:Remove From ListSource:Collections <test library>Arguments:[ list_ | index ]Removes and r ...
- 【RF库Collections测试】Remove Duplicates
Name:Remove DuplicatesSource:Collections <test library>Arguments:[ list_ ]Returns a list witho ...
随机推荐
- js修改input的type属性问题(兼容所有浏览器,主要用于密码类的默认有提示文字的效果)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/stri ...
- php写杨辉三角算法
<?phpfunction YangHui($iLine) { for ($i = 0;$i <= $iLine;$i++)//行 { for ($j ...
- LeetCode: Wildcard Matching 解题报告
Wildcard MatchingImplement wildcard pattern matching with support for '?' and '*'. '?' Matches any s ...
- eclipse egit 解决冲突
eclipse egit冲突解决 在 pull 代码的时候 ,从远程仓库与本地仓库进行同步的时候 ,如果服务器版本与本地仓库版本不一致, 需要解决冲突 首先需要将改动的代码commit到本地仓库,冲 ...
- C++控制台读取和输出函数
c中puts()函数用来向标准输出设备(屏幕)写字符串并换行,其调用方式为,puts(s);其中s为字符串字符(字符串数组名或字符串指针). 功 能: 送一字符串到流stdout中 用 法: int ...
- C语言 · 阿尔法乘积
算法训练 阿尔法乘积 时间限制:1.0s 内存限制:512.0MB 问题描述 计算一个整数的阿尔法乘积.对于一个整数x来说,它的阿尔法乘积是这样来计算的:如果x是一个个位数,那么 ...
- [usb/uart]内核添加USB转串口驱动支持
转自:http://blog.csdn.net/gatieme/article/details/49491325 目录 1. 问题 2. 驱动源码 3. 内核配置 4. 编译内核和模块驱动 5. 加载 ...
- pthread_cond_wait()函数的详解
http://hi.baidu.com/tjuer/item/253cc6d66b921317d90e4483 了解 pthread_cond_wait() 的作用非常重要 -- 它是 POSIX 线 ...
- HTML——如何在html中插入视频
1,插入优酷视频: 在优酷分享界面有个html代码,直接复制放入body中,定义div的align居中即可 2.插入本地视频:用video属性 用mp4格式 <video>标签的属性 s ...
- Java NIO使用及原理分析(二)(转)
在第一篇中,我们介绍了NIO中的两个核心对象:缓冲区和通道,在谈到缓冲区时,我们说缓冲区对象本质上是一个数组,但它其实是一个特殊的数组,缓冲区对象内置了一些机制,能够跟踪和记录缓冲区的状态变化情况,如 ...