How to iterate through list, per test in SilkTest?

100 Views Asked by At

I wrote Lists (Name, Item, etc.) for my Green Mountain Outpost Applikation. I want the applikation to run automaticaly the testcase with 1 Persone and Item at the time. So that the app. runs 1 Person from list throug, than the second test with another.

Testcase

Function

List for Name, Item, etc.

2

There are 2 best solutions below

0
On
[ ] int x = 1
[-] for each Name in customers
    [ ] print(Name)
    [ ] // Name = customers[x]
    [ ] Artikel = items[x]
    [ ] CardN = cardnumber[x]
    [ ] Expi = expirationdate[x]
    [ ] print(Artikel)
    [ ] print(CardN)
    [ ] print(Expi)
    [ ] print("----------------------")
    [ ] Bestellung (Name, Artikel, CardN, Expi)
    [ ] 
    [ ] x++
0
On

You can mention the data in Excel and make the test case as data driven.

Each row will be having one data combination.