51Testing软件测试论坛

标题: QTP最小化问题??? [打印本页]

作者: lyj841120    时间: 2009-9-25 14:15
标题: QTP最小化问题???
我在启动脚本里已经设定了最小化,启动时确实最小化了。但是开始运行测试脚本的时候又自动最大化了。

Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Start QuickTest
qtApp.WindowState = "Maximized" ' Maximize the QuickTest window
。。
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtResultsOpt.ResultsLocation = "C:\Tests\Test1\Res1" ' Set the results location
qtTest.Run qtResultsOpt ' Run the test
。。。
我试了在qtTest.Run qtResultsOpt 后写qtApp.WindowState = "Maximized" ,也不行,大家是用什么办法?
作者: lyj841120    时间: 2009-9-25 17:39
比较傻的问题,自己搞定了。必须在每个被测脚本中初始化。
作者: baitest    时间: 2009-9-25 17:40
Maximized?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2