I use TestNG with Selenium to test a web application that has multi-page streams (for example, register and fill out your profile on 8 different pages).
I used the Selenium PageObject approach and implemented code checking on every page that checks, for example. The "php error" messages are not displayed on the page, in this case, if one page detects this error, the full stream (which is the @Test method that refers to several PageObjects objects inside) will not be executed.
There are some errors that I would like to report, but not mark the entire stream as unsuccessful (for example, incorrectly escaping quotes or HTML characters). I may have a general error on all pages that does not prevent the entire thread from executing, and it will save time if I can report this warning and still be able to continue testing.
Is Reporter the best way to do this? From the point of view of usability, it would be nice to display reports with the colors RED (fail), GREEN (pass) and ORANGE (warn).
source
share