Forum Discussion

che_chethan's avatar
che_chethan
Contributor
12 years ago

Test Complete report logs unnecessary messages and events in the report - .mht file

Hi All,



We are executing test complete (version 10.3) scripts using continuous integration tool - Cruise control .Net.

We use test execute to execute the projects and reports are generated and displayed in CruiControl projects.



when we check the reports (basically .mht file generated by test complete), we observe a lot of messages, events being logged as part of the report.



How can we exclude them from logging in the report (we can uncheck them in the report once it is generated) even before it is generated ? Is there a command line parameter for test execute OR is there a project settings in test complete which can be set.



Test Execute Command line:

testexecute.exe <<Project name>>.pjs /r /p:project /exit /DoNotShowLog /SilentMode /el:"Reports.mht"



please let us know how to resolve this.



Regards,

Chethan

1 Reply

  • Hi Chethan,

    You could try turning the logging off and only enabling it when you want to log a message.

    To do this use Log.enabled = false to turn off logging.



    I run TestExectue from a command line and I instruct it to start a different function than when I am running TestComplete.  In my TestExcecute function, I turn logging off and I set my global TestExecute variable to true.  I can then check this variable throughout my code to see if TestExecute or TestComplete is running and do what is required.