Ask a Question

Using Call before the action

Occasional Contributor

Using Call before the action

What is the difference between:

(1) Call Aliases.Test.Createbutton.Click


(2) Aliases.Test.Createbutton.Click

Both the lines of code works for me, then what is the use of Call?

Esteemed Contributor

This is a VB thing... using Call.  This is not unique to TestComplete.  There are rules and specifications of when to use Call.  Here's the most concise thing I've found.

Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
Showing results for 
Search instead for 
Did you mean: