Auto increment in a test

Ranorex Spy, Recorder, and Studio.
CajunAsian
Posts: 3
Joined: Mon Apr 29, 2013 9:54 pm

Auto increment in a test

Post by CajunAsian » Mon Apr 29, 2013 11:41 pm

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.

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Auto increment in a test

Post by Ciege » Tue Apr 30, 2013 12:08 am

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...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

CajunAsian
Posts: 3
Joined: Mon Apr 29, 2013 9:54 pm

Re: Auto increment in a test

Post by CajunAsian » Tue Apr 30, 2013 5:46 pm

Thank you for your quick response!