Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Next in Datatable
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
IE8
QTP10
Windows

Data table contains
Code:
ColumnA-contains various zips-all rows filled
ColumnB-contains various classes-all filled
ColumnC-contains various weight-all filled
ColumnD-contains a number-may or maynot be filled-maybe NULL
ColumnE-contains a number-may or maynot be filled-maybe NULL


Action1-sign-into test
Code:
Browser("Browser").Dialog("Connect to test.my.company").WinButton("OK").Click
Browser("Browser").Page("company name").Check CheckPoint("home_page")
Browser("Browser").Page("company name").Link("Rate Estimate").Click

Action2-rate
Code:
Browser("Browser").Page("my company: U.S./Canada").Check CheckPoint("my company: U.S./Canada")
Browser("Browser").Page("my company: U.S./Canada").WebEdit("_ctl0:_ctl0:_ctl4:OrgZip").Set "90210"
Browser("Browser").Page("my company: U.S./Canada").WebEdit("_ctl0:_ctl0:_ctl4:DestZip").Set DataTable("A",dtGlobalSheet)
Browser("Browser").Page("my company: U.S./Canada").WebEdit("_ctl0:_ctl0:_ctl4:Discount").Set DataTable("E",dtGlobalSheet)
Browser("Browser").Page("my company: U.S./Canada").WebEdit("_ctl0:_ctl0:_ctl4:Floor").Set DataTable("D", dtGlobalSheet)
Browser("Browser").Page("my company: U.S./Canada").WebList("_ctl0:_ctl0:_ctl5:_ctl0:drpCla").Select DataTable("B",dtGlobalSheet)
Browser("Browser").Page("my company: U.S./Canada").WebEdit("_ctl0:_ctl0:_ctl5:_ctl0:txtWei").Set DataTable("C",dtGlobalSheet)
Browser("Browser").Page("my company: U.S./Canada").WebCheckBox("_ctl0:_ctl0:_ctl5:chkARV").Set "ON"
Browser("Browser").Page("my company: U.S./Canada").WebButton("Submit").Click
Browser("Browser").Pag
e("my company: U.S./Canada").Link("Rate another shipment").Click

The first trip through is fine. Data is filled in on all five fields, from the table. It then performs the 'Submit', and clicks 'rate another shipment'
the screen clears to Rate another Shipment-and to perform the next row; but for some reason returns to the home page, rather remain on the Rate estimate page.

Note: I originally had action1 at the top of Action2 and it was performing like this-that's why I split it up.

The socond row that I want to now see does contain a NULL (blank) in the 'D' column; but I understand-that's OK,
Reply


Messages In This Thread
Read Next in Datatable - by cocojava - 10-09-2010, 01:21 AM
RE: Read Next in Datatable - by supputuri - 10-09-2010, 01:42 AM
RE: Read Next in Datatable - by cocojava - 10-09-2010, 01:49 AM
RE: Read Next in Datatable - by supputuri - 10-09-2010, 01:59 AM
RE: Read Next in Datatable - by cdesserich - 10-09-2010, 03:46 AM
RE: Read Next in Datatable - by cocojava - 10-12-2010, 12:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,309 07-10-2017, 04:20 PM
Last Post: rajeevk7
  Datatable add and datatable import sheet wheelercha 4 33,624 06-14-2012, 04:53 PM
Last Post: Arul
  Correct syntax for read and load global datatable from Resources tab in QC to QTP hari1024 1 5,278 12-08-2011, 10:43 AM
Last Post: sshukla12
  clarification on datatable-read next cocojava 4 3,116 12-14-2010, 05:58 PM
Last Post: leninraj
  Read next datatable rather than login again cocojava 7 4,386 11-05-2010, 01:41 AM
Last Post: cocojava

Forum Jump:


Users browsing this thread: 1 Guest(s)