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:
场景2: