51Testing软件测试论坛

标题: tools-web Event Recording Configuration的问题!(请斑竹特别关注一下) [打印本页]

作者: lulu8120    时间: 2005-8-8 11:29
标题: tools-web Event Recording Configuration的问题!(请斑竹特别关注一下)
我在其他帖子里看到斑竹告诉别人怎样可以增加录制Web事件时设置级别!

只是粗略说了一下,在tools-Web Event...里可以设置,但是具体怎样操作呢?
在Custom seting...里怎样操作呢?

有没有具体的文档可以咨询?

改编他的录制范围,会不会把一些不学要的东西录进去!???
作者: lovetest6    时间: 2005-8-8 14:48
贴图好麻烦,把图贴在Doc里面了。

[ Last edited by lovetest6 on 2005-8-8 at 15:20 ]
作者: lovetest6    时间: 2005-8-8 14:53
进入后的界面

点一下Add


增加了一个New Object

改一下名字,要用标准的html tag,比如TD


右面默认的有一个事件

你可以按自己需求来加

原则是这样,如果你要QTP录下你的事件,首先要让他能监听到。比如下面的这个on blur事件。让QTP始终监听,并且录制。Ok?


呵呵,基本的时这些。还有些在你的手册里面。我主要是看看新的截图工具还用不。呵呵:)

还有什么问题么?对了,忘了说了,web object里面如果有和html object里面设置不一样的地方,那么html object里面的设置优先。

[ Last edited by lovetest6 on 2005-8-8 at 15:21 ]
作者: lovetest6    时间: 2005-8-8 15:22
今天忙,没空多写了。贴一段help里的文字先。

Tips for Working with Event Listening and Recording
It can sometimes be difficult to find the ideal listen and recording settings. When defining these settings, keep in mind the following guidelines:

If settings for different objects in the Objects Pane conflict, QuickTest gives first priority to settings for specific HTML Tag Objects and second priority to Web Objects settings. QuickTest only applies the settings for Any Web Object to Web objects that were not defined in the HTML Tag Object or Web Objects areas.
To record an event on an object, you must instruct QuickTest to listen for the event, and to record the event when it occurs. You can listen for an event on a child object, even if a parent object contains the handler or behavior, or you can listen for an event on a parent object, even if the child object contains the handler or behavior.
However, you must enable recording for the event on the source object (the one on which the event actually occurs, regardless of which parent object contains the handler or behavior).

For example, suppose a table cell with an onmouseover event handler contains two images. When a user touches either of the images with the mouse pointer, the event also bubbles up to the cell, and the bubbling includes information on which image was actually touched. You can record this mouseover event by:

Setting Listen on the <TD> tag mouseover event to If Handler (so that QuickTest "hears" the event when it occurs), while disabling recording on it, and then setting Listen on the <IMG> tag mouseover event to Never, while setting Record on the <IMG> tag to Enable (to record the mouseover event on the image after it is listened to at the <TD> level).
Setting Listen on the <IMG> tag mouseover event to Always (to listen for the mouseover event even though the image tag does not contain a behavior or handler), and setting Record on the <IMG> tag to Enabled (to record the mouseover event on the image).
Instructing QuickTest to listen for many events on many objects may lower performance, so try to limit listening settings to the required objects.
In rare situations, listening to the object on which the event occurs (the source object) can interfere with the event.
If you find that your application works properly until you begin recording on the application using QuickTest, your listen settings may be interfering.

If this problem occurs with a mouse event, try selecting the appropriate Use standard Windows mouse events option(s) in the Advanced Web Options dialog box. For more information, see Advanced Web Options.

If this problem occurs with a keyboard or internal event, or the Use standard Windows mouse events option does not solve your problem, set the listen settings for the event to Never on the source object (but keep the record setting enabled on the source object), and set the listen settings to Always for a parent object.

作者: 木乃伊    时间: 2006-3-20 10:36
斑竹用的截图工具推荐一下是什么?
作者: QA_BAY    时间: 2006-3-20 13:05
原帖由 木乃伊 于 2006-3-20 10:36 发表
斑竹用的截图工具推荐一下是什么?

告诉你一个简单的工具,QQ也可以截图
shift+ctrl+A就可以截图了!
作者: 我要做SQAD    时间: 2006-3-20 13:45
Adobe reader自带的吧,有个快照功能。哈哈
作者: jilinzy    时间: 2007-10-18 15:55
zhichiyixia
作者: 笑若涵    时间: 2010-7-2 11:14
标题: 谢谢指教
谢谢指教




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