emilyty 发表于 2014-3-24 08:44:12

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".

大家帮忙看一下 这是什么问题造成的?
页: [1]
查看完整版本: qtp脚本回放错误问题