Forum Discussion
Adrian_Tankard
12 years agoContributor
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.
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.