#Integration testing with live test website. Restoring the state of the database after test suite. ##Challenges
- Running the test cases with existing data on test website.
- Restoring the original state of data.
-
Taking backup/dump of the database, then run test cases over it and after completion of test suite restore the data from dump.
-
Create a new database which is exactly a copy of the existing database, change the database name in configuration. database.yml in case of rails. Update the name after the completion of test cases.
-
Identification of important flows, finding out the queries fired in those flows and then writing opposite queries (rollback). Or Writing script to test the flow and also writing the script to rollback the changes that occured in that flow.
-
Taking backup of data on local machine and run test cases over it on local machine.