Ask a Question

Editor intellisense and navigation does not work with declared objects

QT_David
Occasional Contributor

Editor intellisense and navigation does not work with declared objects

In my (JScript) test scripts would like to use objects in this way (which runs fine in TestComplete) to e.g. for namespacing.



var MyFunnyClass = { 

    Alert: function( time, message) { 

        alert();

    }

};



MyFunnyClass.Alert();



However the editor intellisense and navigation (Ctrl-click on method) does not work with this. Is there any plans to make it work or any workarounds I could use?



BR, David







23 REPLIES 23

Tanya,

 

You mentioned there is an appropriate suggestion in your DB? Could you please link me to where I can find your suggested workaround? Please add my vote on this feature as well.

 

Thanks,

 

Riley

@RileyMartinez @4m4d3u5 

 

Tanya was referring to the database where our requests are tracked, not a workaround.  

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Understand... you're replying to a post that is 7 years old...  likely things have moved on since then.


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

No worries! I actually found the solution I was looking for here:

 

https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/...

 

Seems like a good way to import functions from a "Library" script, and it allows you to see those functions with Code Completion.

 

-Riley

cancel
Showing results for 
Search instead for 
Did you mean: