From: Anton T. <tm...@al...> - 2010-05-20 13:29:25
|
Hi! How can I cover the 4 branches of: if (yesNo) { verifyTrue(selenium.isTextPresent("secure page")); } else { verifyFalse(selenium.isTextPresent("secure page")); <-- THIS LINE??? } Code coverage is 100%, this test is called multiple times (yes I do perform a code coverage of the tests, please do NOT ask why...) with yesNo both true and false. So how can I test the 4 branches in the function calls that I don't even see and why are there no function calls in the second line which is almost identical. I always thought that branches are only for control structures like if, ...? Anybody can help me? Thank you very much in advance! Regards, Anton |