I have a testcase.java which houses all the @Test methods (login, signup and forget password). Since I'm using Selenium ExtentReports, I put LogStatus.PASS after every single statement has been executed.
enterUsername(); logStatus.PASS("User name entered") enterPassword(); logStatus.PASS("Password entered") clickLoginButton(); logStatus.PASS("Login button clicked")
The scenario above is for login functionality only. I still have the SignUp and Forget Password methods. As I have observed, the code seems messy because there were lots of log statuses. Can you suggest any technique? Or, is there a way to separate the log status in a separate class?