QTP执行过程中最小化QTP

By ZZXXBB112 Published: 2011 年 05 月 02 日

  QTP运行时设为最小化。具体看以下两种方式:

  1. AOM自动化模型方式

Set qtp = CreateObject( "QuickTest.Application" )
qtp.WindowState = "Minimized"
Set qtp = Nothing

 

  2. 直接获取QTP窗口对象进行最小化

Set qtpWindow = Window("title:=QuickTest.*")
qtpWindow.highlight
qtpWindow.Minimize
wait 1

 

posted @ 2011-08-09 18:14  Sirrah  阅读(303)  评论(0编辑  收藏  举报