QTP??????в??????
???????????? ???????[ 2014/4/9 11:51:40 ] ????????QTP ???????????? ??????????
Option Explicit
'*****************************************************************
'??????????????????????·???????????????
'*****************************************************************
Dim ReportLocation '??????·??
ReportLocation = "D:projectQTPqtpscript"
Dim QtpLocation 'Qtp???·??
QtpLocation = "D:softwaretestingMercury InteractiveQuickTest ProfessionalinQTPro.exe"
'*****************************************************************
'???????????QTP
'*****************************************************************
Dim WshShell??oExec
set WshShell = WScript.CreateObject("WScript.Shell")
Set Exec = WshShell.Exec (QtpLocation)
Set WshShell = Nothing
WScript.Sleep 60000 '???1????
'*****************************************************************
'?????????ж??????????????????
'*****************************************************************
Dim oFSO
' ????????????????
set FSO = CreateObject ("Scripting.FileSystemObject")
CheckFileExists(ReportLocation)
Function CheckFileExists (FilePath)
FilePath = FilePath &"???????1.html"
' ???????????????????????
CheckFileExists = oFSO.FileExists(FilePath)
'MsgBox CheckFileExists
If (CheckFileExists = true) Then
oFSO.DeleteFile (FilePath)
End if
End Function
'*****************************************************************
'??????????????н??????????????
'*****************************************************************
Dim oMTM
Set MTM = CreateObject("MultiTestManager.Application")
oMTM.Visible = True
' ?????????????????
Dim oRunSettings
Set RunSettings = oMTM.Preferences.RunSettings
oRunSettings.Iterations = 1
oRunSettings.CloseQuickTest = True
'???????????????
'oRunSettings.ScheduleRun = True
'oRunSettings.Day = 3
'oRunSettings.Month = 12
'oRunSettings.Year = 2009
'oRunSettings.Second = 00
'oRunSettings.Minute = 55
'oRunSettings.Hour = 15
' ??????????????
Dim oReportSettings
Set ReportSettings = oMTM.Preferences.ReportSettings
oReportSettings.CreateReport = True
oReportSettings.OverwriteReport = False
oReportSettings.DefaultLocation = False
oReportSettings.ReportLocation = ReportLocation '??????·??
oReportSettings.ReportName = "??????"
oReportSettings.ViewReport = True
'??????н??????????????????У???н?????λ??
oMTM.AddTestScript. "D:projectQTPqtpscript
arTest"?? True??ReportLocation
'oMTM.AddTestScript. "D:projectQTPqtpscript
arTest"?? True??ReportLocation ?????????????
' ???н??
oMTM.Run
while ( oMTM.IsRunning )
Wend
oMTM.Quit
Set RunSettings = Nothing
Set ReportSettings = Nothing
Set MTM = Nothing
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
QTP??AR???????????????????QTP??????????????????????QTP??????????????????????QTP?????????Win7 64λ??????QTP 10QTP???????VBScript???????QTP????????WebElementQTP?е????????QTP?????д??????????TD??QTP???????????????а??LoadRunner??QTPQTP??Report???????QTP??д?????????QTP??????FlightС???QTP???????С??QTP-MySql+????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????