mardi 27 novembre 2018

system test - how to test database without saving data actually

I currently use using (TransactionScope scope = new TransactionScope()) for c# testing database insertion so that it doesn't actually save into database for unit testing. But for system testing which I am currently testing on different server to test the status code for different scenarios. Each time I run the test, it is actually saving data into database and next time I ran the test it is failing as it is duplicate record. I tried to use transaction scope , but doesn't seem to work. Please help.

Aucun commentaire:

Enregistrer un commentaire