How to read excel data into object and pass the values to calling routines (using scripts),
Hello All,
--This is my test
1. go to www.amazon.com
2. place cursor on the "search" text field.
3. Read the excel first value "Phone Stand", and place it in the "Search" text field and click "search icon"
4. Repeat #2 and #3 with the other values fetched from excel.
What I am looking is, how to read the below data into an object and pass it to the test using scripts ? , and I would appreciate if anyone could help here.
I tired the example - https://support.smartbear.com/testcomplete/docs/reference/program-objects/excelsheet/cell.html,
but cannot get to pass the data (Phone Stand, Bags, Bike) as a object.
----------------------
Name
----------------------
phone stand
Bags
Bike
Hi kkrush -
I would reccommend taking a look at the data-driven testing tutorial here: https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/tutorials/index.html
In order to do what you are looking to do here you will have to use a data-driven loop and drive the excel values through the step where you are typing in the values to the search bar.
Please let me know if you have further questions.
Emma