Using Call before the action
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2019
02:11 AM
02-20-2019
02:11 AM
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?
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2019
05:39 AM
02-20-2019
05:39 AM
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
