Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 557 by [email protected]: problem in BuiltIn.Should Contain http://code.google.com/p/robotframework/issues/detail?id=557 test1: ${result}=None --------------------- KEYWORD: ${result} = BuiltIn.Should Contain test1, test1, ok Documentation: Fails if `item1` does not contain `item2` one or more times. Start / End / Elapsed: 20100518 12:38:56.473 / 20100518 12:38:56.473 / 00:00:00.000 12:38:56.473 TRACE Arguments: [ test1 | test1 | ok ] 12:38:56.473 TRACE Return: None 12:38:56.473 INFO ${result} = None test2: error --------------------- KEYWORD: ${result} = BuiltIn.Should Contain test1, test2, ok Documentation: Fails if `item1` does not contain `item2` one or more times. Start / End / Elapsed: 20100518 13:24:22.842 / 20100518 13:24:22.858 / 00:00:00.016 13:24:22.842 TRACE Arguments: [ test1 | test2 | ok ] 13:24:22.858 FAIL ok: 'test1' does not contain 'test2' 13:24:22.858 DEBUG Traceback (most recent call last): File "e:\python26\lib\site-packages\robot\libraries\BuiltIn.py", line 305, in should_contain asserts.fail_unless(item2 in item1, msg) File "E:\Python26\lib\site-packages\robot\utils\asserts.py", line 120, in fail_unless if not expr: _report_failure(msg) File "E:\Python26\lib\site-packages\robot\utils\asserts.py", line 228, in _report_failure raise AssertionError(msg)
