user3228979
user3228979

Reputation: 1

What is the AssertNoError keyword in TestComplete JScript scripts?

In the TestComplete JScript script below, what does the AssertNoError keyword mean and what does it do?

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);

Upvotes: 0

Views: 135

Answers (1)

Helen
Helen

Reputation: 97962

There's no built-in TestComplete function named AssertNoError. It must be defined somewhere in your project. You can Ctrl-click the function name to jump to its implementation.

Upvotes: 0

Related Questions