Forum Discussion
Hi Lvl,
After TestExecute executes your TestComplete project, it will post a test log to the following folder:
<Your TestComplete Project>\Log\
This folder should contain *.tcLog files with the test results. Once you open this project in TestComplete, the tool will obtain all test results from this folder and show them in Project Explorer.
Another way is to export the test log at the end of the test execution:
//JScript Log.SaveResultsAs(FileName, lsXML);
The Log.SaveResultsAs method will export the test log in a format that TestComplete will be able to read.
Hello Tanya,
There is no .tclog file, and it's not in the project_name/logs folder. I have .mht file.
- TanyaYatskovska10 years ago
Alumni
MHT reports are used in order to review the test results in third-party systems or in browser. As you don’t want to use them, you need to start working with TestComplete’s logs (.tcLog), which are located in a folder I specified.
So there is no way to view the results produced by TE in TC? We don't have enough licence to run tests, that's why we use TE to run. But I would like to view the report in TC. If there is no way, it's a pitty! Thanks anyway. But why you don't produce the same format for logs?
Hi,
It is possible to see logs from TestExecute (TE) test runs in TestComplete (TC) environment and Tanya's reply was absolutely correct.
As she wrote, TE saves original test log in the Log\ subfolder of your test project (where .mds file is located). Referring the image from your initial post, this will be C:\LVL_TestComplete\TMI\OPC\OPC\Log one.
TE has the default setting to display test log on test run end. In order to do this, it exports the log as an .mht file into temporary folder and opens the exported file in the browser. This is what you see on the screen after test run.
When you open your test project in TC, you will see logs generated by TC and TE under the Logs node in the Project Explorer.
TE has no means to open and display original test logs because TE is just a runtime engine to execute test code. It is possible to open test logs from TE (by right-clicking TE icon in the system tray), but the opened logs will always be an exported copies (.mht) of the original test logs. Original test logs can be opened with TC only.
Did the above make things more clear?