10-09-2010, 01:21 AM
IE8
QTP10
Windows
Data table contains
Action1-sign-into test
Action2-rate
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,
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
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,