Name:
Lists Should Be Equal
Source:
Collections <test library>
Arguments:
[ list1 | list2 | msg=None | values=True | names=None ]
Fails if given lists are unequal.
The keyword first verifies that the lists have equal lengths, and then it checks are all their values equal. Possible differences between the values are listed in the default error message like `Index 4: ABC != Abc`.
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.
Optional `names` argument (new in 2.6) can be used for naming the indices shown in the default error message. It can either be a list of names matching the indices in the lists or a dictionary where keys are indices that need to be named. It is not necessary to name all of the indices. When using a dictionary, keys can be either integers or strings that can be converted to integers.

场景1:

【RF库Collections测试】Lists Should Be Equal

【RF库Collections测试】Lists Should Be Equal

 

场景2:

【RF库Collections测试】Lists Should Be Equal

【RF库Collections测试】Lists Should Be Equal

 

相关文章:

  • 2021-12-02
  • 2022-01-29
  • 2021-05-27
  • 2022-03-04
  • 2022-02-04
  • 2021-10-04
  • 2021-09-04
  • 2021-12-04
猜你喜欢
  • 2021-10-16
  • 2021-11-02
  • 2021-06-28
  • 2021-06-02
  • 2021-12-07
  • 2021-12-10
相关资源
相似解决方案