Forum Discussion

hilary_davis's avatar
hilary_davis
Occasional Contributor
13 years ago

Randomized Data-Loop Testing - is it possible?

I am testing an online account openining functionality using TestComplete. This test has multiple scenarios, so I have numerous tests, which make up the project. Eventually the user will come to the webpage asking them to create a User ID. The User ID cannot already exist in our system. How can I create a data-loop test that will allow the varaible to be randomized each time?



Example:

Keyword Test 1 - Select Account Type

Keyword Test 2 - Bypass security

Keywork Test 3 - Select a User ID



The only way I see this functionality working is to record all actions within one test, but this is not possible for us, since there are hundreds of scenarios we need to cover within our testing - which has forced us to result in creating multiple keyword tests, then piecing them together within the project to deliver the results we want.

1 Reply

  • Hi Hilary,



     I am assuming that "Keywork Test 3 - Select a User ID" means literally that the requirement is to submit a unique User ID in order to create the account.



    Are you familiar with any of the coding languages that are available for writing code in TestComplete?



    Here's a good example on how to generate a random string in VBScript