Contributions
Test Complete launched before Test Execute
Hello, I am using Test Complete/ Test Execute via Connected application c#. Currently I'm using the next code in order to connect to TestComplete via com connection: string toolName = toolNameFromConfigFile.Equals("TestExecute") ? "TestExecute.TestExecuteApplication" : "TestComplete.TestCompleteApplication.11"; try { testautoObject = Marshal.GetActiveObject(toolName); } catch { try { testautoObject = Activator.CreateInstance(Type.GetTypeFromProgID(toolName)); } catch { } } Now, when I'm calling Connect.RunTest it will always launched TestComplete even when I choose the toolName to be TestExecute. If I add Thread.Sleep(5000) before the Connect.RunTest it will launch TestExecute. How can I resolve that problem? Is there any way to wait for TestExecute to launch? Thanks, Assaf.572Views0likes0Comments