Ask a Question

Using Call before the action

SOLVED
Rakeshyadav09
Occasional Contributor

Using Call before the action

What is the difference between:

(1) Call Aliases.Test.Createbutton.Click

and 

(2) Aliases.Test.Createbutton.Click

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

1 REPLY 1
tristaanogre
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.

 

https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference//statements/call-statement


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
cancel
Showing results for 
Search instead for 
Did you mean: