TestComplete JScript脚本中的AssertNoError关键字是什么?

时间:2014-01-23 17:46:52

标签: jscript testcomplete

在下面的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);

1 个答案:

答案 0 :(得分:1)

没有名为AssertNoError的内置TestComplete函数。必须在项目的某个位置定义它。您可以 Ctrl - 单击函数名称以跳转到其实现。