Ask a Question

A different value each time

Not applicable

A different value each time

I want to test a web based app. and for each area I need to test, I must enter a unique value (new product code, for example).

I appreciate that I must have some form of numerical element to the name.

Is it possible to have AutomatedQA run a test that adds 50 new products to my system each with the name 'Testcode<x>'. Where '<x>'  is one digit higher than the previous run (Testcode1, Testcode2, and so on)?

Many thanks in advance for a response.

Esteemed Contributor

This is easy enough using a for loop.... something like the following (DelphiScript)

for i := 1 to 50 do begin

    Page.TextControl.value := 'TestCode' + VarToStr(I);




Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Showing results for 
Search instead for 
Did you mean: