05-12-2009, 01:07 AM
What I am trying to do is import a data table, have QTP set things in the application according to what is in in the table. There are three rows in the header, not including the header row. Here are the scripts
I have set under File>Setttings>Run, Run on all rows.
For action 2 and 1_1, I have set under Action Call Properties: Run one iteration only
for Action 1_2_1, run on all rows.
It runs through the first iteration then loops back and runs the first row two more times. I want it to go to the next row. What am I doing wrong?
Code:
Action 2
DataTable.Import ("C:\Documents and Settings\lbullen\Desktop\datafarpostprgpgynum.xls")
Action 1_1
Browser("wesite").Page("website_name").WebList("position_type_cd_2").Select "Residency "
Action1_2_1
Browser("browsername").Page("website_name").WebList("pgy_ind").Select DataTable("pgy_ind_value_out", dtGlobalSheet)
Browser("browsername").Page("website_name").WebList("pgm_type_cd").Select DataTable("pgm_type_cd_value_out", dtGlobalSheet)
Browser("browsername").Page("website_name").WebEdit("positions_ind").Set DataTable("positions_ind_value_out", dtGlobalSheet)
Browser("browsername").Page("website_name").WebEdit("start_dt").Set DataTable("start_dt_value_out", dtGlobalSheet)
Browser("browsername").Page("websitename").WebEdit("desc_txt").Set DataTable("desc_txt_value_out", dtGlobalSheet)
Browser("browsername").Page("website_name").Image("Save").Click 25,9
I have set under File>Setttings>Run, Run on all rows.
For action 2 and 1_1, I have set under Action Call Properties: Run one iteration only
for Action 1_2_1, run on all rows.
It runs through the first iteration then loops back and runs the first row two more times. I want it to go to the next row. What am I doing wrong?