ScannerScanf
ScannerScanf
2017-04-29 14:26
采纳率: 20%
浏览 1.5k

QTP自动化测试工具报错

systemutil.Run"E:\hp--UFT\samples\flight\app\flight4a.exe"
Set FlightLogin=Description.Create
Set AgentName=Description.Create
Set Password=Description.Create
Set OKButton=Description.Create
FlightLogin("text").value="Login"
AgentName("attached text").value="Agent Name:"
Password("attached text").value="Password:"
OKButton("text").value="OK"
dialog(FlightLogin).winedit(AgentName).Set "mercury"
dialog(FlightLogin).winedit(Password).Set "mercury"
dialog(FlightLogin).winbutton(OKButton).Click

大家给看看 为什么会报错,是哪里的问题

报错信息:
[ WinEdit ] Cannot find the "[ WinEdit ]" object's parent "[ Dialog ]" (class Dialog). Verify that parent properties match an object currently displayed in your application. Failed 2017/4/29 - 22:16:23

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • devmiao
    devmiao 2017-04-29 15:51
    点赞 评论
  • ScannerScanf
    ScannerScanf 2017-04-30 01:56

    我用的用对象探测器时也是鼠标划一下可以扫出来,但一点就抓成窗口了,可是我用的是描述性编程怎么也不行?

    点赞 评论

相关推荐