軟件測試時在QTP運行過程中屏蔽鼠標的方法

發表于:2009-06-17來源:作者:點擊數: 標簽:軟件測試qtpQTP鼠標運行
在運行 QTP 腳本的過程中,有些操作可能是對鼠標、鍵盤敏感的,需要在QTP運行過程中屏蔽鼠標或鍵盤輸入。這是可用SystemUtil對象的BlockInPut方法,如下代碼所示: SystemUtil.BlockInput Browser(\"Welcome: Mercury Tours\").Page(\"Welcome:MercuryTours\"
在運行QTP腳本的過程中,有些操作可能是對鼠標、鍵盤敏感的,需要在QTP運行過程中屏蔽鼠標或鍵盤輸入。這是可用SystemUtil對象的BlockInPut方法,如下代碼所示:

SystemUtil.BlockInput 

Browser(\"Welcome: Mercury Tours\").Page(\"Welcome: Mercury Tours\").WebEdit(\"userName\").Set \"mercury\" 

Browser(\"Welcome: Mercury Tours\").Page(\"Welcome: Mercury Tours\").WebEdit(\"password\").SetSecure \"4082986e39ea469e70dbf8c5a29429fe138c6efc\" 

Browser(\"Welcome: Mercury Tours\").Page(\"Welcome: Mercury Tours\").Image(\"Sign-In\").Click 2, 2 

SystemUtil.UnblockInput

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97