Forum Discussion
Hi ebarbera The requirement is: Data can be used once.
You can understand it in that way like: we can't register for Gmail with a same email ID. Means Email ID or user name can't be duplicate in the system.
Hi dikshika114
Thanks for adding clarity.
In that case using 4 separate Variable values as mentioned already will work.
https://support.smartbear.com/testcomplete/docs/testing-with/variables/index.html
You may want to run a script against the DB to delete the registered users after running the test or before you run the next iteration of tests.
This will reduce the amount of dummy data generated on your DB and reduce duplication of data meaning you can use the same data in each time you run a test.
Also that script execution can be included in Testcomplete runs if needed.
You can manually do this too if it suits however doing the above approach could also enable you use parameters too as they would be deleted from the DB 🙂
https://support.smartbear.com/testcomplete/docs/keyword-testing/parameters.html
One last option to consider would be using a set variable value operation.
Here you could grab a value, say an onscreen value and setting a value using using Mode: code expression, you could parse or add context to the email being used.
Here is some info on code expressions
Set variable value operation
So it looks like you have a couple of approaches to achieve this
Try them out and see how you get on
KR
Vincent