Unable to add methods as 'Test Items' when methods actually are actually written inside the class
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2019
07:26 AM
06-18-2019
07:26 AM
Unable to add methods as 'Test Items' when methods actually are actually written inside the class
This is important to my project
All my methods are written inside class
This actually creates a problem as I am not able to call methods on project 'Test Items' page
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2019
08:33 AM
06-18-2019
08:33 AM
These are scripts, not application code. While classes are useful in organizing the objects and such, in order for TestComplete to execute them, they need to be made available as a method or function external to the class. This can be done with a simple wrapper like
function runMyMethod(){ var myObject = new myClass(); myObject.Method(); }
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
