Best way to test and revert
Posted: Tue Mar 21, 2017 1:51 pm
Hi,
I'm currently evaluating ranorex and I have a question to the best way to revert/restore the test-data.
I would like to GUI-test the complete registration of a user of our WinForms-application.
So I start the recorder and give all the inputs for registration. After that I validate the registration (e.g. check if the username is in the userlist).
The test succeeds for the first execution, but for all following tests it fails, because the user already exists. That is ok so far, because for each test scenario I have to create a new blank database. correct?
In complex scenarios it is not the best behaviour.
I have some recording modules which I want to reuse, e.g. the creation of a customer.
When testcase A creates the customer everything is fine. When the following testcase B creates the customer, it fails because the customer already exists.
The restore of a blank database for each testcase can't be the solution because it would expand the time of each testcase.
Is there a better way to do my tests?
Thanks for any help,
Patrick
I'm currently evaluating ranorex and I have a question to the best way to revert/restore the test-data.
I would like to GUI-test the complete registration of a user of our WinForms-application.
So I start the recorder and give all the inputs for registration. After that I validate the registration (e.g. check if the username is in the userlist).
The test succeeds for the first execution, but for all following tests it fails, because the user already exists. That is ok so far, because for each test scenario I have to create a new blank database. correct?
In complex scenarios it is not the best behaviour.
I have some recording modules which I want to reuse, e.g. the creation of a customer.
When testcase A creates the customer everything is fine. When the following testcase B creates the customer, it fails because the customer already exists.
The restore of a blank database for each testcase can't be the solution because it would expand the time of each testcase.
Is there a better way to do my tests?
Thanks for any help,
Patrick