學習《QTP自動化測試進階》第13章 – 使用QTP測試ActiveX對象
要測試ActiveX控件,首先,需要在啟動QTP時加載ActiveX插件
AcxUtil對象可用于操作ActiveX控件,使用FireEvent方法來執行ActiveX控件中的方法
熟悉和掌握各類ActiveX控件的測試:
RadioButton
CheckBox
Calendar
Label
ProgressBar
SliderBar
ListBox
其他相關資源:
1、MSFlexGrid 是微軟的 ActiveX 表格控件,功能強大,在程式設計中經常使用,但是QTP在識别和測試這個控件時會碰到很多問題,這篇文章介紹了相關解決辦法:
http://blog.csdn.net/Testing_is_believing/archive/2010/01/03/5125657.aspx
2、daniva在《Automating Google Earth》一文中介紹了如何在QTP中測試Google Earth這種包含ActiveX插件的WEB頁面:
http://www.advancedqtp.com/knowledge-base/articles/environment-techniques-id15/web-id34/automating-google-earth/
3、《QTP測試CodeJock Xtreme Suite控件》:
http://blog.csdn.net/Testing_is_believing/archive/2010/03/13/5377163.aspx