Silent Script not working
I had these scripts forever throughout my test cases and the y never broke until now.
Not sure what has changed.
This script I am using to "not save changes before closing" because i am running multiple test cases scheduled during the night.
Here is a script:
function SetSilentMode()
{
var rmNormal = 0;
var rmErrorAndWarning = 1;
var rmErrorOnly = 2;
var rmSilent = 3;
var tcManager = Sys.OleObject("TestComplete.TestCompleteApplication").Manager;
tcManager.RunMode = rmSilent;
Here is an error:
JavaScript runtime error. Server execution failed, ClassID: {990BBECC-B5F4-478C-9E90-1758B3CE814C} Error location: Unit: "CCCS ES SUITE\CDN CACHE\Script\Silent" Line: 9 Column: 23.
Server execution failed, ClassID: {990BBECC-B5F4-478C-9E90-1758B3CE814C}
Error location:
Unit: "CCCS ES SUITE\CDN CACHE\Script\Silent"
Line: 9 Column: 23.
Right... so, two things:
1) before leaving the machine at night, make sure you close TestComplete so that you don't get the error... command line of TestCOmplete launches a new instance of TestComplete to run the test run.
2) In your command line in your task scheduler, include /SilentMode.
Reference for commandline
https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html