51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2525|回复: 3
打印 上一主题 下一主题

[原创] 求教:如何记录鼠标拖动事件?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2005-12-20 10:55:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我在录制脚本的过程中遇到这样一个问题:用鼠标拖动一个控件比如说是free text 类型的,或者image类型的 ,从一个弹出窗口拖动到一个页面,如何录这个过程,只能自己编程实现吗!?另外录鼠标右键点击事件,需要什么设置?  
请高手们不吝赐教!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2005-12-23 16:12:21 | 只看该作者
应该可以的。一会儿研究研究。呵呵
IBM的RFT可以。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2005-12-23 16:19:52 | 只看该作者
Guidelines for Analog and Low-Level Recording
Consider the following guidelines when choosing Analog Recording or Low-Level Recording:

Use Analog Recording or Low-Level Recording only when QuickTest's normal recording mode does not accurately record your operation.
Analog Recording and Low-Level Recording require more disk space than normal recording mode.
You can switch to either Analog Recording or Low-Level Recording in the middle of a recording session for specific steps. Once you have recorded the necessary steps in Analog Recording or Low-Level Recording, you can return to normal recording mode for the remainder of your recording session.
Analog Recording
Use Analog Recording for applications in which the actual movement of the mouse is what you want to record. These can include drawing a mouse signature or working with drawing applications that create images by dragging the mouse.
You can record in Analog Recording mode relative to the screen or relative to a specific window.
Record relative to a specified window if the operations you perform are on objects located within one window and that window does not move during the analog recording session. This ensures that during the run session, QuickTest will accurately identify the window location on which the analog steps were performed even if the window is in a different location when you run the analog steps. QuickTest does not record any click or mouse movement performed outside the specified window. When using this mode, QuickTest does not capture any Active Screen images.
Record relative to the screen if the window on which you are recording your analog steps moves during recording or if the operations you perform are on objects located within more than one window. This can include dragging and dropping an object from one window to another. When using this mode, QuickTest captures the Active Screen image of the final state of the window on which you are recording.
The steps recorded using Analog Recording are saved in a separate data file. This file is stored with the action or component in which the analog steps are recorded.
When you record in Analog Recording mode, QuickTest adds to your test or component a RunAnalog statement that calls the recorded analog file. The corresponding Active Screen displays the results of the last analog step that was performed during the analog recording session.
Low-Level Recording
Use Low-Level Recording for recording on environments or objects not supported by QuickTest.
Use Low-Level Recording for when you need to record the exact location of the operation on your application screen. While recording in normal mode, QuickTest performs the step on an object even if it has moved to a new location on the screen. If the location of the object is important to your test or component, switch to Low-Level Recording to enable QuickTest to record the object in terms of its x- and y- coordinates on the screen. This way, the step will pass only if the object is in the correct position.
While Low-Level Recording, QuickTest records all parent level objects as Window test objects and all other objects as WinObject test objects. They are displayed in the Active Screen as standard Windows objects.
Low-Level Recording supports the following methods for each test object:
WinObject test object—Click, DblClick, Drag, Drop, Type
Window test object—Click, DblClick, Drag, Drop, Type, Activate, Minimize, Restore, Maximize
Each step recorded in Low-Level Recording mode is shown in the Keyword View and Expert View. (Analog Recording records only the one step that calls the external analog data file.)
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2006-1-19 10:39:11 | 只看该作者

按照上面说的

采取 Analog and Low-Level Recording 模式来录制就行了
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-9 09:39 , Processed in 0.074720 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表