I am in a situation where I have to revert all the changes which I made while testing the application. Is there any way of doing this in Testng?
Suppose if I have added something into the application during testing add functionality. now when I am tearing down this test case, I have to revert the changes. Any suggestions how to do this?
If I have deleting functionality then I can delete that added thing in tear down. but that would be a kind of test case for delete functionality into a tear down process. isn't it?
Also if we don't have any delete functionality then. Anyone who knows how to revert the changes, please suggest.
I am taking selenium webdriver and testng in use.