Difference between SilkTest Method and Function?
I know the difference between a normal method and function but in silkTest i see no difference between the two. Can someone explain me when to use a functiona nd when a method? and the basic differences please. I tried searching thru the forum but dint find any?
Re: Difference between SilkTest Method and Function?
The difference between a function and a method is that a method can only act on an object. You can create methods for individual objects as well as classes. Functions can act on objects as well, but more often you'll create functions to act on data or collections of objects.
If the action you are automating is:
- closely related to a specific window, create a method of that specific window.
- closely related to a class of objects, create a method of that window class.
- more of a utility, not related to a window or class of windows, create a function.