不知道我的理解是否全面,呵呵作者: walker1020 时间: 2006-10-27 13:27
我的理解是 micclass 是微软 Microst 自己定义的类,前缀 mic是 命名规则。
QTP 的脚本语言是VBScript, 并且据我所知, QTP的脚本编译器是购买的 微软公司的,所以描述性编程里面出现micclass 也就不足为怪了。
这是我个人的粗浅理解。最好请做过 VBScript 开发的朋友来讲解一下。作者: edision 时间: 2006-10-27 13:31
' Registering both functions
RegisterUserFunc "WebTable", "ObjectsByMicClass", "ObjectsByMicClass"
RegisterUserFunc "WebTable", "ItemByKeyColumn", "ItemByKeyColumn"
' Function: ObjectsByMicClass
' Description: Returns a collection of objects. All the objects in a
' WebTable that have the specified MicClass
' Return Value: A collection of objects
' Arguments:
' Obj - Test Object (WebTable)
' micClass - The micClass of the objects to retrieve
這是 QuickTest Professional Code Samples Plus 里的一段 example, 我看不明白, 這里的micclass 是什麼?? 能為我說明嗎??
謝謝.作者: edision 时间: 2006-10-30 10:12
多謝几位版主為我說解. thank you very much.作者: GMT008 时间: 2007-2-2 03:15
我也来顶一下,哪位有比较具体的相关材料?作者: xjmen 时间: 2010-10-15 15:28
Tarun Lalwani
Veteran
Reged: 07/21/05
Posts: 13870
Re: What is micclass? [Re: Champion]
#390419 - 06/19/07 01:12 AM Edit Reply Quote Quick Reply
When you saw Browser("XXX") that mean that XXX has a micclass:=Browser. Mic class is the classname/type of test object which is browser in your case. What you saw earlier is used to create a dummy parameter.
In case you know there will be a single browser only that mean you dont need to provide anything to recognize it. But DP does not allow passing a blank parameter. So the below statments are invalid
Browser("").Close
Browser().Close
Now since we dont have any property we put one which is already implied.
Browser("micclass:=Browser").Close
I hope that would answer your query.作者: cxwtomcat 时间: 2010-11-1 23:09
印度高手tarun的解释很到位。作者: 17800455 时间: 2010-11-16 11:18
取的就是ClassName值 micClass跟ClassName应该是一样的。 都是Class类。
以后你取属性就可以用micClass代替ClassName作者: ydxms731 时间: 2010-11-25 15:12
很好,正好学习了,刚好我也对这个词有些模糊,
Tarun Lalwani 的解释很明了呢。作者: wower1985 时间: 2011-5-2 22:50
顶,正好找这个词的意思,micclass,这玩意很重要哦作者: fkueangle 时间: 2011-8-20 11:25 回复 11#ydxms731作者: fkueangle 时间: 2011-8-20 11:25
我英文差 能不能帮忙翻译下作者: warchief09 时间: 2012-2-11 15:38
Micclass is nothing but the Type of Object in the Application like Webedit,WebRadiogroup,Webcheckbox
By,
Vknowth作者: snakeshiy 时间: 2012-2-13 09:13
mic 应该代表 Mercury Interactive Class 或者Mercury Interactive Constant之类的东西,此处的Mercury是美科利公司(现已被HP收购)作者: heqingbluesky 时间: 2012-2-14 08:13
mic 应该代表 Mercury Interactive Class 或者Mercury Interactive Constant之类的东西,此处的Mercury是美 ...
snakeshiy 发表于 2012-2-13 09:13