How to user parameters in a data-driven loop?
I have the following scenario
I use a Testcomplete Keywordtest to login to a customer page
in a search field i enter some Text and press search
if i get a result a button appears and will be press and after pressing the button an automatic action will be done like entering the text to a list.
For dataloop I use a csv file where I enter the text to be searched and that will be entered to the list as a result.
Lest say the csv file contains 4 lines (1 description and 3 Values) and then adds Text1 Text2 Text3 to the list (1 line per entry)
Value
Text1
Text2
Text3
- THIS IS ALREADY WORKING
No I want to generalize the test and use parameters (that i can set in the "testexecution-list")
Is that possible? And if so what character like ";" do i have to use for separating the single parameter-entries (e.g.Text1;Text2;Text3) so that the loop wil enter 3 correct entries to the list.
If no possible is it possible to add the paramteres to the csv file (each Value in 1 Line) so that it could also work.
If so how?
Thanks for help
You can pass a string variable like so /PSVar:carNames="BMW, Audi, Ford, Lexus" at the command line. You will then need to split and read each value of the string variable, which then becomes "BMW", "Audi", "Ford", "Lexus"