【问题标题】:What is the AssertNoError keyword in TestComplete JScript scripts?TestComplete JScript 脚本中的 AssertNoError 关键字是什么?
【发布时间】:2014-01-23 17:46:52
【问题描述】:

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

【问题讨论】:

  • 欢迎来到stackoverflow!我认为您需要详细说明一下。这个问题很模糊..

标签: jscript testcomplete


【解决方案1】:

没有名为AssertNoError 的内置TestComplete 函数。它必须在您的项目中的某个地方定义。你可以Ctrl-点击函数名跳转到它的实现。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-02-07
    • 1970-01-01
    • 2022-10-24
    • 2011-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多