在下面的TestComplete JScript脚本中,AssertNoError
关键字的含义是什么?它是做什么用的?
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);
答案 0 :(得分:1)
没有名为AssertNoError
的内置TestComplete函数。必须在项目的某个位置定义它。您可以 Ctrl - 单击函数名称以跳转到其实现。