SilkTest高级进阶系列5-奇怪的Tag 软件测试
有的时候,我们通过Record菜单下面的Window Declarations, Window Identifiers和Window Tags记录或者识别出来的控件tag中包含着奇怪的对象类型,像是下面这样的:
[-] CustomWin Toolbox
[+] msw multitag "[AfxControlBar42u]Toolbox"
[ ] "[AfxControlBar42u]$59420"
[-] CustomWin Toolbox
[+] msw multitag "[AfxWnd42u]Toolbox"
[ ] "[AfxWnd42u]$103"
[-] CustomWin AfxOleControl42u1
[ ] msw tag "[AfxOleControl42u]$0"
[-] CustomWin TemplateViewer
[+] msw multitag "[AfxWnd42u]Display"
[ ] "[AfxWnd42u]$103"
[-] CustomWin Afx160000081
[ ] msw tag "[Afx:1*:8]$59648"
[-] CustomWin Afx160000081
[ ] msw tag "[Afx:1*:8]$59952"
[-] CustomWin Afx1600000010011601
[ ] msw tag "[Afx:1*:0:10011:6:0]$101"
[-] ListView ListView1
[ ] tag "$0"
我们认识ListView,pushbutton等常见的控件类型,但是 AfxControlBar42u和Afx:1*:8到底是什么呢?
其实他们也是Windows对象类型,其中Windows有几个基本类,他们的含义如下:
AfxWnd 表示子窗口
AfxFrameOrView表示边框窗口(SDI主窗口或MDI子窗口)或视图