Page 1 of 1

Auto increment in a test

Posted: Mon Apr 29, 2013 11:41 pm
by CajunAsian
Use case: I want to test the creation of users on a system. This includes creation, and deletion of the user.

Issue: Due to other system processes and requirements, when the user is "deleted" the username is no longer usable.

Question: Is there a way in Ranorex studio to auto-increment the username variable every time the test is run? For example:
Test1 - Create UserName<incremented_dynamic#1>. Delete User
Test2 - Create UserName<incremented_dynamic#2>. Delete User

I tried looking around the forums, StackOverflow, and some videos and wasn't able to find anything.

Re: Auto increment in a test

Posted: Tue Apr 30, 2013 12:08 am
by Ciege
Even better...

Write a little snippet of code that appends the time/date stamp to your user name and you will guarantee a unique name...

Re: Auto increment in a test

Posted: Tue Apr 30, 2013 5:46 pm
by CajunAsian
Thank you for your quick response!