cancel
Showing results for 
Search instead for 
Did you mean: 

Using Call before the action

SOLVED
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 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Using Call before the action

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
[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
1 REPLY 1
Community Hero

Re: Using Call before the action

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
[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
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors