51Testing软件测试论坛

标题: qtp脚本回放错误问题 [打印本页]

作者: emilyty    时间: 2014-3-24 08:44
标题: qtp脚本回放错误问题
我用qtp自带的例子录制好回放脚本没有问题,但是前面加了'systemutil.Run "D:\Program Files1\HP\QuickTest Professional\samples\flight\app\flight3a.exe" 或者
InvokeApplication "D:\Program Files1\HP\QuickTest Professional\samples\flight\app\flight3a.exe"
这种代码启动程序之后他就出错了
到了Window("Flight Reservation").ActiveX("MaskEdBox").Type "111518"这里就报错,错误提示是这样的
The test run cannot continue due to an unrecoverable error.

Cannot identify the object "MaskEdBox" (of class ActiveX). Verify that this object's properties match an object currently displayed in your application.

Line (1): "Window("Flight Reservation").WinButton("Button").Click".
[attach]89546[/attach]
大家帮忙看一下 这是什么问题造成的?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2