I have a subfunction - doing reading and Its almost complete . It has some arguments it takes . You have to test for the condition also when i give wrong [url removed, login to view] are some helper functions for it . You have to use it so that you even match the error messages . The screen should not display any error message . It should just do the testing for cases where error messages were getting printed. So come up with the conditions and code which will exhaustively check those conditions.