Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with iterations on data tables
#1
Not Solved
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

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?
Reply


Messages In This Thread
problems with iterations on data tables - by purailin - 05-12-2009, 01:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 985 06-17-2019, 12:19 PM
Last Post: Treirk
  Repeat iterations Until New Value Is Seen in Column1 shayk1985 1 1,516 07-05-2018, 05:52 PM
Last Post: Ankur
  UFT Datatable iterations Studymode 2 3,501 12-12-2017, 11:10 PM
Last Post: Studymode
  QTP-Re-executing script after completion of all iterations JwalantBhatt0602 1 2,562 03-24-2016, 12:37 AM
Last Post: JwalantBhatt0602
Question QTP not performing iterations based on local data sheet Breaker 18 55,349 01-25-2016, 04:32 PM
Last Post: arunshuklainbox

Forum Jump:


Users browsing this thread: 1 Guest(s)