SIStester
13 years agoOccasional Contributor
incrementing test parameter
I'd like to know how to increment a test parameter automaticly when I run a test and keep it somewhere, to use that parameter where it was left.
We want to change our client name with "client(insert number)", and every time the test is run, it give a new client name
example:
client1
client2
client3
etc.
one client being created every time I run the test project.
What I've been having trouble with is keeping the value of that increment variable between those test runs.
The reason I'm trying to do that is because it would be a pain to overwrite my software's database every time I run a test and it's impossible to keep my test environement clean, so I might as well create a new item every time.
sorry for the bad english it's not my best language
We want to change our client name with "client(insert number)", and every time the test is run, it give a new client name
example:
client1
client2
client3
etc.
one client being created every time I run the test project.
What I've been having trouble with is keeping the value of that increment variable between those test runs.
The reason I'm trying to do that is because it would be a pain to overwrite my software's database every time I run a test and it's impossible to keep my test environement clean, so I might as well create a new item every time.
sorry for the bad english it's not my best language