Forum Discussion
tristaanogre
7 years agoEsteemed Contributor
When you add a new parameter, you need to make it "optional" if it's already in use if you don't want to "break" old test cases. In KeywordTests, this is simply checking the "optional" flag and filling the default value.
In Script code, it depends somewhat on the script language as to how you do it. JavaScript looks like this. The first parameter is required, second is optional with a default value of 'test'
function Test(parameter1, optional = 'test'){ }
Related Content
- 5 years ago
- 14 years ago