cancel
Showing results for 
Search instead for 
Did you mean: 

Script Extenson: All Parameters are Undefined

SOLVED
Community Hero

Re: Script Extenson: All Parameters are Undefined

OK!  I got it!

So... in your OnExecute event handler, you need to change the code to the following.

function AdvWait_OnExecute(Data, URL)
{
  Log.Event(URL);
}

As per the help, for this handler, you don't pass in the Parameters object, you pass in the actual parameters themselves in the order in which they are defined in the Description.xml file (see https://support.smartbear.com/testcomplete/docs/working-with/extending/script/creating/keyword-test-...)

 

So... you probably don't need the custom form as discussed earlier... just change this code.

 

Also... you're doing a Log.Event.  So, you need to make sure that under Tools -> Current Project Properties -> Playback you have the "Store last ___ events" set to 0.  Events are suppressed unless an error or warning is logged in which case it will write out the number of events set in that value.  If it's set to 0, all events get logged.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Script Extenson: All Parameters are Undefined

THANK YOU!!! 

New Here?
Join us and watch the welcome video: