51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1272|回复: 0
打印 上一主题 下一主题

WinRunner:GUI Map Tactics

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-10-25 13:49:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Description

      Tips for operating with an efficient GUI map structure.


Solution

      GUI Map Tactics:

WinRunner does attempt to apply logical names to objects as they are learned, but in some cases it just has to apply a generic object name. Optimising the GUI Map involves modifying the logical descriptions so that their references in the scripts are obvious and intuitive. Also it may require the use of wild cards in the physical description to cater for dynamic property changes.

An example of an optimised window could be from:
Logical Description: 揢ntitled ?Notepad?
Physical Description: Class: Window, Label: 揢ntitled ?Notepad?

To a new format of:
Logical Description: 揥indow_Notepad?
Physical Description: Class: Window, Label: ?.* ?Notepad?

A suggestion as a standard for the GUI Map is that object names should be descriptively prefixed by a reference to the class of the object. Spaces and special characters are removed. Brief but not abbreviated names are preferred, but naming clarity is a higher priority than economy of size. Consistency should be maintained in the naming method of similar objects. Also dynamic property information should be catered for with wild cards. In this example, the prefixing standard is derived from the standard class of the object.
Eg.
Class: Object Name Prefix
Push Button pb_
Edit ed_
Menu Item mi_
(go through the class list and draw logical prefixes for each)
I use the full 慦indow_?for window objects to avoid some of the ambiguity associated with the 慦in?prefix.

To be continued.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-24 09:04 , Processed in 0.075633 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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