Forum Discussion
Is it possible to listen messages without using TestLeft? Ihave code like this:
private ITestCompleteCOMManager TestCompleteManager;
private ItcIntegration IntegrationObject;
private object TestCompleteObject;
private const string TCProgID = "TestComplete.TestCompleteApplication.14";
public TestCompleteIntegrationObject()
{
this.InitializeTcObject();
}
public void InitializeTcObject()
{
try
{
TestCompleteObject = Marshal.GetActiveObject(TCProgID);
}
catch
{
try
{
TestCompleteObject = Activator.CreateInstance(Type.GetTypeFromProgID(TCProgID));
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine("Unable to initialize TestComplete.");
}
}
if (TestCompleteObject == null) return;
TestCompleteManager = (ITestCompleteCOMManager)TestCompleteObject;
IntegrationObject = TestCompleteManager.Integration;
}
Can i somehow implement messages listening here?
Related Content
- 13 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago