51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2765|回复: 2
打印 上一主题 下一主题

testcomplete 中的 Tag model 和 DOM model 区别

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-3-10 14:44:12 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
testcomplete 中的 Tag model 和 DOM model 区别,看了半天没看明白。请名师指点!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

3#
发表于 2010-5-6 10:48:03 | 只看该作者
组织对象元素的层次结构和描述方式不大一样
回复 支持 反对

使用道具 举报

该用户从未签到

2#
发表于 2010-4-19 13:44:33 | 只看该作者
After you found the Page object, you can explore the web page elements.

All page elements are shown as child nodes of the Page(...) node. The elements can be displayed via four different object models: DOM, Tag, Tree or Hybrid. The model being used is specified by the Tree model project property. In the DOM model, all web page elements are children of the document.all collection, which is similar to the HTML object model used in web scripts. The Tag model provides more “readable” element names and can be useful in the initial stages of testing to receive the general overview of the page. Besides, script operations over web pages with a large number of elements are executed faster with the Tag model. Even more faster is the Tree model. When it is active, the hierarchy of objects is similar to their actual parent-child relationships on the page. The Hybrid model combines both DOM and Tree models. It is intended for running test projects that were created in earlier versions of the product.

============
DOM Model
When the DOM model is active, the Page object contains the document and frames properties and the web page elements are accessible through the document.all property:
Tag Model
When the Tag model is active, the elements of the tested web page are grouped by their tag names. For instance, all images are displayed under the IMG node and all links are displayed under the A node
TC7的帮助很详细啊
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-24 19:38 , Processed in 0.067738 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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