@shez1983 Thanks for mentioning the tearDown() method. But it does not seem right to logout a user as there may be cases where I am testing that on wrong credentials assertPathIs('/login') and then the tearDown() method tries to find logout link eg. clickLink('logout') and since I am at the login page itself there might be an error.
So can you suggest me what code should I have in my tearDown() method to destroy the current session of the user ?
Or somehow each test method runs as if it is a separate test