agmuntianu
13 years agoOccasional Contributor
Open Log after TestExecute has finished a test, when it is being called via COM
Hello everyone,
As you can see from the thread title I am trying to display the log result of the test (in IExplorer) after the test finishes.
If I start the test using TE directly , the results are displayed automatically, but this doesn't happen when I start the test via COM.
My initial approach was to start the test and using the Log object, get the path to the log file generated (mht) , and afterwards to open a I Explorer window with that file as parameter. Unfortunately I cannot seem to find a path to get that object (I am developing using Visual Studio C# Express 2010).
In the help manual there is a reference to this matter, I quote :
To obtain a program object...
To obtain program objects such as
and others, use the
method of the
Until now I was not able to get a reference to the Log Object.
My questions are :
1. Is there a mechanism through which the log can be displayed after a test finishes when the TestEecute is being called via COM other than my approach?
2. How can I get access to the Log Object via COM, the documentation is scarce to say the least ....?
Thank you in advance,
BR Andrei.
As you can see from the thread title I am trying to display the log result of the test (in IExplorer) after the test finishes.
If I start the test using TE directly , the results are displayed automatically, but this doesn't happen when I start the test via COM.
My initial approach was to start the test and using the Log object, get the path to the log file generated (mht) , and afterwards to open a I Explorer window with that file as parameter. Unfortunately I cannot seem to find a path to get that object (I am developing using Visual Studio C# Express 2010).
In the help manual there is a reference to this matter, I quote :
To obtain a program object...
To obtain program objects such as
Sys
,Log
,Runner
,Regions
and others, use the
GetObjectByName
method of the
Integration
object.You can obtain the object only if TestComplete is running a test. If there is no tests running in TestComplete, GetObjectByName will return an empty Variant value. |
Until now I was not able to get a reference to the Log Object.
My questions are :
1. Is there a mechanism through which the log can be displayed after a test finishes when the TestEecute is being called via COM other than my approach?
2. How can I get access to the Log Object via COM, the documentation is scarce to say the least ....?
Thank you in advance,
BR Andrei.