07-24-2023, 04:47 AM
In the TestComplete JScript script below, what does the `AssertNoError` keyword mean and what does it do?
<!-- language: lang-jscript -->
if(AssertNoError("UtilsCommon.DoesWindowExist","Explorer",1,"CabinetWClass","Temp",-1,WINDOW_WAIT_TIME)){
//Get Reference of Temp floder and List of Files Present in it
oTempFldRef = AssertNoError("UtilsCommon.GetWindow",Sys.Process("Explorer"),"CabinetWClass","Temp",-1,10000,true);
strTempList = oTempFldRef.FindChild(["WndClass","Caption"],["DirectUIHWND","Items View"],5);
<!-- language: lang-jscript -->
if(AssertNoError("UtilsCommon.DoesWindowExist","Explorer",1,"CabinetWClass","Temp",-1,WINDOW_WAIT_TIME)){
//Get Reference of Temp floder and List of Files Present in it
oTempFldRef = AssertNoError("UtilsCommon.GetWindow",Sys.Process("Explorer"),"CabinetWClass","Temp",-1,10000,true);
strTempList = oTempFldRef.FindChild(["WndClass","Caption"],["DirectUIHWND","Items View"],5);