Forum Discussion
simon_glet
11 years agoRegular Contributor
Hi,
Well this works fine on my side:
MsgBox "Start"
' Creates the application object
Set TestCompleteApp = CreateObject("TestComplete.TestCompleteApplication")
' Obtains the integration object
Set IntegrationObject = TestCompleteApp.Integration
' Opens the project
IntegrationObject.OpenProjectSuite "C:\myProjectSuite.pjs"
' Checks whether the project was opened
If Not IntegrationObject.IsProjectSuiteOpened Then
MsgBox "The project suite was not opened."
else
MsgBox "Project opened"
End if
MsqBox "End"
Keep in mind that TC must not be running before starting the script. Check your tasklist for wscript.exe running forever.
You might want to check C:\Users\yourAccount\AppData\Roaming\SmartBear\TestComplete\9.0\Sileng.log for issues.
In this case, I would not use vbscript without a proper debugging tool. You might want to checkout Powershell.
Sincerely
Well this works fine on my side:
MsgBox "Start"
' Creates the application object
Set TestCompleteApp = CreateObject("TestComplete.TestCompleteApplication")
' Obtains the integration object
Set IntegrationObject = TestCompleteApp.Integration
' Opens the project
IntegrationObject.OpenProjectSuite "C:\myProjectSuite.pjs"
' Checks whether the project was opened
If Not IntegrationObject.IsProjectSuiteOpened Then
MsgBox "The project suite was not opened."
else
MsgBox "Project opened"
End if
MsqBox "End"
Keep in mind that TC must not be running before starting the script. Check your tasklist for wscript.exe running forever.
You might want to check C:\Users\yourAccount\AppData\Roaming\SmartBear\TestComplete\9.0\Sileng.log for issues.
In this case, I would not use vbscript without a proper debugging tool. You might want to checkout Powershell.
Sincerely
Related Content
- 2 years agoianlop
- 11 months agoIso_Yura
- 6 years agovthomeschoolmom
- 11 years agojose_pita