Forum Discussion

Andrew_2's avatar
15 years ago

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.

1 Reply

  • tristaanogre's avatar
    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);