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
Highlighted
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
[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

View solution in original post

1 REPLY 1
Highlighted
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
[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

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!