登陆判断

上一篇 / 下一篇  2012-06-14 15:29:58 / 个人分类:QTP测试

 Dim istatus,i,j

Browser("博思档案管理信息系统").Page("博思档案管理信息系统").WebEdit("id").Set DataTable("username", dtLocalSheet)
Browser("博思档案管理信息系统").Page("博思档案管理信息系统").WebEdit("pswd").SetSecure DataTable("password", dtLocalSheet)
Browser("博思档案管理信息系统").Page("博思档案管理信息系统").Link("登    录").Click
istatus=DataTable("status", dtLocalSheet)

MsgBox  istatus
If istatus = ""  Then
Browser("博思档案管理信息系统").Page("博思档案管理信息系统").Sync
'Browser("博思档案管理信息系统").Close
End If


If  istatus = "test"    Then
Msgbox  istatus
Browser("博思档案管理信息系统").Page("博思档案管理信息系统").Sync

     'Reporter.ReportEvent micFail, "登陆", "登陆失败."
 
End If

istatus满足条件为什么会进不到第二个IF条件中,有经验者看到此篇日志能给我答复


TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-05-16  
   1234
567891011
12131415161718
19202122232425
262728293031 

我的存档

数据统计

  • 访问量: 894
  • 日志数: 5
  • 建立时间: 2012-06-04
  • 更新时间: 2012-06-27

RSS订阅

Open Toolbar