Data driven testing
I created WinRunner data driven test script. Everytime I run the script against the application under test, the application complains about Unique constraint ID in the database. I then have to in the database to delete the record. This consume my testing time.
How can I overcome this? Are there some setting on WinRunner to overcome this?
Re: Data driven testing
1) You can use a unique value for the ID's by concatenating with system time - get_time function.
2) Delete what you create through the gui.
3) Delete through the DB which you're already doing.
4) Take a dump of the database and restore to the same state before running your test.
Numbers 3 and 4 can be automated as part of your script.