|
For i = 1 To DataTable.GetSheet("Global").getrowcount
DataTable.SetCurrentRow i
Environment("ClaimNumber") = DataTable.GetSheet("Global").Getparameter("ClaimNumber").Value
Environment("EnvSQL") = "SELECT ShippingPhone,ShippingCharge FROM dbo.Claimmaster WHERE ClaimNumber=" & Environment("ClaimNumber")
msgbox Environment("ClaimNumber")
SwfWindow("NewEgg RMA (Version 5.161.4.20").SwfWindow("RMA Record Query").SwfEdit("txtSearchKey").Set DataTable("ClaimNumber",dtGlobalSheet)
SwfWindow("NewEgg RMA (Version 5.161.4.20").SwfWindow("RMA Record Query").SwfButton("Go").Click
SwfWindow("NewEgg RMA (Version 5.161.4.20").SwfWindow("RMA Record Query").SwfTab("SSTabRMAQuery").Select "Claim Info"
DbTable("DbTable").Check CheckPoint("DbTable_3")
DbTable("DbTable_3").Output CheckPoint("DbTable_4")
DataTable.SetNextRow
Next
然后在OR对象库中在Source中选择环境变量,就OK了 |
|