Haiyangwhu
11 years agoContributor
TestExecute was terminated unexpectedly during test run
Hi,
I met an issue with TestExecute (version: 10.50.2702.11) that TestExecute ended unexpectedly during test run.
I run TestExecute via COM:
...
Set TestExecuteApp = WScript.CreateObject("TestExecute.TestExecuteApplication.10")
Set IntegrationObject =TestExecuteApp.Integration
' Opens the project
IntegrationObject.OpenProjectSuite ProjectSuitPath
' Check whether the project was opened
If Not IntegrationObject.IsProjectSuiteOpened Then
Wscript.Quit 1000
End If
' Runs the project
IntegrationObject.RunProjectSuite()
' Wait until TestExecute finished
While IntegrationObject.IsRunning
' DoEvents
Wend
...
Run above script, test get started and several times i get error in the middle of test running at statement While IntegrationObject.IsRuning: The remote server machine does not exist or is unavailable: 'IntegrationObject.IsRunning'. Script get stuck in this while loop.
When getting the error, i did some check on the test machine and found:
1. TestExecute process is not there
2. Only part of the test log files exist, logs can't be opened by TestComplete because file *.tcLog doesn't exist
3. No event message in eventviewer for TestExecute
I also had a test to terminate TestExecute manually during test run, and get same error at while loop which says: The remote server machine does not exist or is unavailable
My findings show me that TestExecute was terminated unexpectedly during test run. Now i have to change the While...Wend to Do...Loop While to get around script got stuck issue. But i still need to get the error resolved. Any thoughts on why getting such error?
Thanks in advance!
-Ocean
I met an issue with TestExecute (version: 10.50.2702.11) that TestExecute ended unexpectedly during test run.
I run TestExecute via COM:
...
Set TestExecuteApp = WScript.CreateObject("TestExecute.TestExecuteApplication.10")
Set IntegrationObject =TestExecuteApp.Integration
' Opens the project
IntegrationObject.OpenProjectSuite ProjectSuitPath
' Check whether the project was opened
If Not IntegrationObject.IsProjectSuiteOpened Then
Wscript.Quit 1000
End If
' Runs the project
IntegrationObject.RunProjectSuite()
' Wait until TestExecute finished
While IntegrationObject.IsRunning
' DoEvents
Wend
...
Run above script, test get started and several times i get error in the middle of test running at statement While IntegrationObject.IsRuning: The remote server machine does not exist or is unavailable: 'IntegrationObject.IsRunning'. Script get stuck in this while loop.
When getting the error, i did some check on the test machine and found:
1. TestExecute process is not there
2. Only part of the test log files exist, logs can't be opened by TestComplete because file *.tcLog doesn't exist
3. No event message in eventviewer for TestExecute
I also had a test to terminate TestExecute manually during test run, and get same error at while loop which says: The remote server machine does not exist or is unavailable
My findings show me that TestExecute was terminated unexpectedly during test run. Now i have to change the While...Wend to Do...Loop While to get around script got stuck issue. But i still need to get the error resolved. Any thoughts on why getting such error?
Thanks in advance!
-Ocean