Forum Discussion
- Marsha_RModerator
You can use LockEvents and UnlockEvents
https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/methods.html
- tristaanogreEsteemed Contributor
There's also an option under Tools | Current Project Properties | Playback. The option that says, "Store last __ events". Set to any value other than 0 to lock the log down to only showing the events leading up to an error or warning. I usually set this value to 20.
- nimishbhutaFrequent Contributor
Thanks. Is there any possibility to unlock all the warnings.
Regards,
Nimish
- Marsha_RModerator
LockEvents and UnlockEvents bundles errors and warnings together, sorry.
You can go here and put in a feature request for that to be considered:
https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests
- AlexKarasChampion Level 3
Hi Nimish,
> Is there any way to disable the steps in TestComplete logs and then enable it?
Log.Enabled ?
- nimishbhutaFrequent Contributor
Hello All,
The lock and unlock events works only for the events which are an operation.For ex: click on the button, enter the value in the text box.
But I want to disable the default error generated by TestComplete after specific code line and then enable in the next line.
Regards,
Nimish
- AlexKarasChampion Level 3
Hi Nimish,
As it was already suggested:
Dim bLogState
bLogState = Log.Enabled
Log.Enabled = False
<specific code line>
Log.Enabled = bLogState
OnLogError event handler can also be used to block some specific error to be posted into test log.
However, I would recommend to figure out what is causing the error to be posted to the log and how test code can be changed so that the error is not generated at all.
Related Content
- 7 years ago
Recent Discussions
- 47 minutes ago
- 11 hours ago