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
TanyaYatskovska
SmartBear Alumni (Retired)


Hi David,


 


The reason why TestComplete does not perform navigation to the function's declaration is that TestComplete's parser currently does not support routines declared in this way. However, we have an appropriate suggestion in our DB, and your request has increased its rating. Thanks.


 


BTW, despite this, the code should be executed fine (one note, TestComplete doesn't support IE's alert function).


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



ekiza23
Contributor

I would like to have the intellisense/code completion working for declared objects in VBScript too.



Could you increase the rating of that suggestion on my behalf?



Thanks.



TanyaYatskovska
SmartBear Alumni (Retired)


Hi Christian,


 


I've added your vote. Thanks!


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



paul_grizzaffi
Occasional Contributor

Please add my vote for this capability on JScript.



TanyaYatskovska
SmartBear Alumni (Retired)


Hi Paul,


 


I've added it. Thanks.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



jenli
Contributor

Please add my vote for this capability on JScript too.

Thanks!

TanyaYatskovska
SmartBear Alumni (Retired)


Hi Jennifer,


 


Done.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



ashish_tyagi_1
Not applicable

Hi, can you please add my vote to this as well.



It will be greatt if his can be implemented, it becomes difficult when you have a lot of cusotm classes and you quickly want to see the declaratin of the methods in them.





Regards,

Ash



TanyaYatskovska
SmartBear Alumni (Retired)


Hi Ash,


 


I've added your vote, as well. Thanks for your participation.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: