Forum Discussion

gurvin_net's avatar
gurvin_net
Occasional Contributor
14 years ago

Updating test step in KeywordTest



Hello,



I recorded one keyword test. Its a customer registration form (C# winform). I added customer name, and other info.

My customer form does not duplicate phone number.



In order to run test again, I must have automated test to enter a new phone number. How can I update my test step of entering phone number instead of typing in phone number automated step should read number from an excel sheet?


3 Replies

  • gurvin_net's avatar
    gurvin_net
    Occasional Contributor
    Ok, that worked great. And it resolved my testing case partially. I read through the whole thing and may be I missed something. In my test, instead of phone number I used NAME. I want to run this test 3 times and use row1 Name, then for test2 use row2 Name.

    So this way I can create 3 customer accounts.



    Is it possible? Pls see attached.

  • Hello Gurvin,





    Yes, it's possible. You can specify a range of records to use their values in a data-driven loop. To do that, follow the steps below:

    - Double-click the Data-Driven Loop item in the keyword test.

    - In the Data-Driven Loop dialog, proceed to the "Select Records" step and specify the range you need.





    BTW, see helpful instructions on creating a data-driven test here: Data-Driven Testing With Keyword Tests - Tutorial