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 2019/1/19 - 22:16:23
Log里的信息已经告诉你了啊。的上一层找不到。去查看一下上一层对象的属性是否正确。 控件没有找到建议先highlight一下父对象 然后调试子对象,这样看一下 Agent Name:应该被之别为winedit对象 没找到对应元素 查看对象库中对象属性
页:
[1]