Allow use of Script Function default parameters in Keyword Tests
We have a number of JavaScript script function libraries that we are using in our automated test scenarios. Our primary vehicle for creating those scenarios is through keyword tests.
One thing we've run into is that, occasionally, we need to modify one of the script functions to have another parameter. What I do is add the parameter and mark it to have a default value (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters) so that, if that parameter is not passed, it uses the default value.
This works great for functions that are called from other script functions. However, if I call a function within a keyword test and add a new parameter to the function, the keyword test will fail with an exception indicating that the parameter count is incorrect.
What would be great is if the Keyword engine, when reading a function for execution, can recognize when such default parameter values are defined and be able to execute the script without needing to update the keyword test. Currently, if we add a parameter to a function, we have to go back and update all of the keyword tests where it is called to have the new set of parameters, even if we're just going to use the default.