cancel
Showing results for 
Search instead for 
Did you mean: 

'Run Current Routine' Code Editor's context menu command to be enabled for procedures and functions

'Run Current Routine' Code Editor's context menu command to be enabled for procedures and functions

As all supported scripting languages (except VBScript) support optional function parameters that can be set within the function body, I think that it is a good idea to make the 'Run Current Routine' Code Editor's context menu command to be enabled for both procedures and functions for all scripting languages except VBScript (where it should be left disabled for functions as it is now).

2 Comments
Community Hero

Or, perhaps an even better solution than using "default values"... what if the "Run Current Routine" option, if it detects that the function/procedure has parameters, prompt to fill them in?

Community Hero

Robert,

 

May be, though I am not sure. This will definitely work for simple data types like string or integer, but most probably will not work for, say, objects that might be set in code.

Something like that:

function ButtonFind(oRoot)

{

  if ("undefined" == typeof(oRoot))

    oRoot = PageGetCurrent();

 

  ...

  var oButton = oRoot.FindChild(...);

  ...

Announcements
Welcome to the TestComplete Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements