I have a bunch of tests set up in TestComplete to test a Windows application. When I run them all at once, I consistently get an RPC Server Unavailable Error. When I run the tests individually, there is no issue with the scripts.
I have tried running them in a script, calling them from a keyword test, and just using the project set up to call them all in order. No dice. Running each test manually completely defeats the purpose of automation.
For each test the TestedApp is open then closed. The error always appears right after the open of the second test when I try activate a UI element.
This seems more like an issue with your environment than with Test Complete:
Also, are you running Test Complete as an admin?
TestComplete is running on the same machine as TestedApp, so how can it be a firewall thing or related to networking? This has to do with the TestedApp closing, and then re-opening, and loosing all the object mappings.
I am not sure about the details of your application, but it could be trying to communicate with something else, these errors can also happen due to something local as well.
You said that you were seeing the RPC error which is a Windows error not a Test Complete error which is why I pointed you in that direction.
Losing the object mappings is something different entirely, we would need a lot more info for that, specifically screenshots of your mapping properties and screenshots of the object browser and properties for the object you can't find.
Is it possible to figure out from test log whether RPC Server error originates in TestComplete or in your tested application?
Also, you may consider to use the ReportGenerator utility (https://support.smartbear.com/testcomplete/docs/testing-with/advanced/tracing-critical-errors/report...) and either get and idea of what is going on or contact Support via the https://support.smartbear.com/message/?prod=TestComplete form and provide them with the generated memory dumps.
Thanks a lot for all your suggestions!
@dcfecker, were they help you resolve the error? Please share the solution you've come.
I have an open support ticket on this, but I've now encounterred another error that is blocking this one. It also has an open support ticket.
As far as ReportGenerator.exe. I have been unable to use that with my TestedApplication as the instrumentation that it is using brings my TestedApplication to a near screeching halt. I'm hoping they can also shed some light on this as well. Just waiting for responses.
Thanks for the update, @dfecker!
We are waiting for the solution from them.