|
本帖最后由 chenmin4767 于 2012-12-20 16:26 编辑
我是QTP新手,有问题请教楼主。我现在用QTP录制的CS软件,图片是界面的一部分。左侧有个树状列表,右侧是看视频的浏览框,我在回放脚本时老提示这个错误(第28行报错):
,,
具体代码如下:
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_3").Type "192"
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_4").Check CheckPoint("Edit_4")
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_4").Type ".168"
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_5").Check CheckPoint("Edit_5")
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_5").Type "16"
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_6").Check CheckPoint("Edit_6")
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_6").Set "234"
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_6").Type micTab
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_7").Check CheckPoint("Edit_7")
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_7").Type "10098"
Dialog("SNTClient").Dialog("#32770").WinEdit("Edit_7").Set "10098"
Dialog("SNTClient").Dialog("#32770").WinButton("Button").Check CheckPoint("Button_2")
Dialog("SNTClient").Dialog("#32770").WinButton("Button").Click
Dialog("SNTClient").WinTreeView("SysTreeView32").Expand "最大级"
Dialog("SNTClient").WinToolbar("ToolbarWindow32").Press 2
Dialog("SNTClient").WinTreeView("SysTreeView32").Expand "最大级;其它相机"
Dialog("SNTClient").WinTreeView("SysTreeView32").DragItem "最大级;其它相机;castel1相机0"
Dialog("SNTClient").WinObject("Afx:00400000:b:00010011:1F1016").Drop 136,105
Dialog("SNTClient").WinTreeView("SysTreeView32").DragItem "最大级;其它相机;朗驰相机0"
Dialog("SNTClient").WinObject("Afx:00400000:b:00010011:0A1009").Drop 153,91
Dialog("SNTClient").WinTreeView("SysTreeView32").DragItem "最大级;其它相机;黄河球机1相机0"
Dialog("SNTClient").WinObject("Afx:00400000:b:00010011:A5101B").Drop 57,62
Dialog("SNTClient").WinTreeView("SysTreeView32").DragItem "最大级;其它相机;黄河球机2相机0" |
|