TA的每日心情 | 无聊 2018-5-15 18:25 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
3#
楼主 |
发表于 2014-4-23 09:00:51
|
只看该作者
For i = 1 To 1 Step 1
For j = 1 To 2 Step 1
Set excel = createobject("Excel.Application")
excel.Workbooks.Open "D:\Test.xlsx"
Set osheet = excel.Sheets.Item(1)
d =osheet.cells(i,j)
print d
Dim result
For b = 2 to Browser("IDS Super - Member Details").Page("IDS Super - Member Details").WebTable("Pension Account").RowCount
result = trim(cstr(Browser("IDS Super - Member Details").Page("IDS Super - Member Details").WebTable("Pension Account").GetCellData(b,4)))
If d = result then
Reporter.ReportEvent micPass,"Current Withdrawals" ,"预期是" &d& "实际是" &result
else
Reporter.ReportEvent micFail,"Current Withdrawals","预期是" &d& "实际是" &result
End If
Next
Next
next
为什么从我上面excel取出来的一个值,而通过webtable取出来的是一行值,而我想要实现的是从excel里取出来的值和webtable里去出来的值是一一对应的关系,我应该如何做? |
|