Status: New Owner: ---- Labels: Type-Enhancement Priority-Medium
New issue 266 by radekw13: Keyword execution error without failing test case (like Selenium verify)
http://code.google.com/p/robotframework/issues/detail?id=266 I recently started using robot and selenium library and noticed that the combo is missing an error exit from a keyword without failing the whole test case. Selenium IDE provides two types of assertions: one that fails the test case immediately (assert...) and one that only logs an error and continues the test case (verify...). This is useful when you want to assert an important condition on a page and just check for existence of other elements in a single test case, but all should be checked and included in a report. I took a shot at it and introduced an additional exception (VerificationError) that works like ExecutionFailed exception. It can be raised by the keyword code and propagated up with the difference that it does not break the test case execution. Then in selenium library, I modified 'page_should_contain' keyword to raise VerificationError exception when additional argument is passed. I attach the patch for you to look at. I think that extension is useful and should be part of the robot so that library developers have a choice of using it. It's a feature seen in many commercial testing products. Let me know what you think. Attachments: robot-verify-patch.txt 2.9 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
