51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2792|回复: 9
打印 上一主题 下一主题

[原创] QTP怎么识别GWT-exe开发的软件阿

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-1-13 11:03:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如题:QTP怎么识别GWT-exe开发的界面组件阿? 是不是需要安装GWT的插件,现在有gwt的插件么?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2010-1-13 11:31:38 | 只看该作者
错了,是GWT EXT
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2010-1-13 15:45:18 | 只看该作者
HP has already released the patch on top of QTP 10.0  This patch provides support for Silverlight 2-3 (under .NET addin),  and various toolkits – like AJAX, Google Web Toolkit (GWT), Dojo Toolkit, and Yahoo User Interface- under Web Extensibility. Once you have the Extensibility Accelerator installed, it can be seen under Tools menu option on QTP’s IDE.

The patch is released in two flavors:

   1. Web 2.0 Feature Pack with PreRequisites – In case you do not have MS Studio 2008 SP1 and .NET framework
   2. Web 2.0 Feature Pack without PreRequisites – In case you already have the above two softwares installed.
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2010-1-19 11:07:42 | 只看该作者
随着RIA, GWT-ext应用的广泛, 要QTP满足对这些开发工具的对象识别的需求越来越多, 所以对于这类软件的功能测试, HP也是在慢慢的开发当中和摸索阶段, 给大家发一个超赞的文档资料,一家美国测试公司发布的针对最近automating GWT apps with QTP详细分析和解决方法.

个人认为受益匪浅, 有了好东西想和大家一起分享,和推广.
希望能大家有所提示,呵呵

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2010-1-19 11:24:19 | 只看该作者
Questions:

1. Are you using a Debugger? (ie. IE Developer ToolBar, Debugbar,
Firebug, etc..) If not, I would suggest installing one of them first,
because it will help you identify extra attributes available for an
object that QTP Spy sometimes just does not provide enough
information.
2. Are you familiar with DOM and all of its objects, methods, events,
etc..? If not, I would suggest looking at some quick tutorials on
this, because this will help you to access objects again that seem
hard to access via QTP.
3. Also, what was used to create the web application you are trying to
test? This is key, because the today's creation of web applications
has expanded past your normal HTML, VB, etc. There are various forms
of creating web applications that can hinder to normal automation of a
regular web application when it comes to record and replay for
automation (which I do not suggest). For instance, GWT and GWT - EXT,
is a prime example where record and replay using QTP does not work.
GWT's rendering of names, id's, etc.. can change as more widgets of
its kind are added. Therefore, if you do not understand ways how to
get under the hood of an object, you can find yourself stuck. This is
where the DOM understanding and the right debugger can save time and
enable you to create strong, reusable automation architectures.
4. Do you use Descriptive Programming for QTP? If so, then I may have
a library that can help you. If not, then I would suggest spending
time understanding this concept with QTP.

Suggestions:

1. There are various elements that I have ran across that look like
drop down boxes but the rendered HTML shows that it is a combo box
made up of different objects. Therefore, you could have a regular
weblist, which many times QTP can recognize, or you could have a
webEdit field attached to a image that resembles a arrow that makes up
the drop down list. There are many ways to handle this. I am going to
go through the ways below:

a.) If you are using Object Repositories, I recommend first trying to
add the object individually to the OR. Click within the WebEdit type
piece first and then add the arrow piece. You may realize that these
are two different objects. If it is, then you can use a click method
on the WebEdit piece to serve as activating the drop down list to
display. And then you may realize that even the component that is used
to create the list, is a different type object. Many times a
webElement that can be identified by its HTML tag, class name, id, or
name, and is activated by the innertext value you want to select from
the list. This is one way that may help you.
b) Also, you may want to try DOM events to activate the list.
FireEvents like onmouseover, onmouseup, onkeypress, etc... to see if
this will help you activate the drop down so that you can click from
the list.
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2010-1-19 16:13:57 | 只看该作者
谢谢楼主分享!
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2010-6-30 21:16:02 | 只看该作者
回复 支持 反对

使用道具 举报

该用户从未签到

8#
发表于 2010-6-30 22:07:04 | 只看该作者
安装Web 2.0 Feature Pack 补丁
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2011-2-9 16:07:36 | 只看该作者
回复 7# abcdabcd

我打不开这个帖子呀,能帮忙把内容贴出来一下吗?谢谢
回复 支持 反对

使用道具 举报

该用户从未签到

10#
发表于 2011-2-9 21:41:48 | 只看该作者
回复 4# ivyhuan


    资料不错
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-8 09:01 , Processed in 0.081993 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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