sirping's avatar
Occasional Contributor
3 years ago
New Idea

Why does not passing an optional parameter to a script not work

When I create a script that takes a parameter that looks like this

```def function(parameter=True)```

So that when no parameter is passed (None) the script automatically takes "True" for the value of the parameter, TestComplete just can not handle this. This is basic Python stuff. Why is this still an issue?(!)

I run into this issue constantly, when I want to introduce a new parameter to one of our scripts because I want to add some specific funtionality that should only be run in a very specific case, I have to go back to EVERY time this script is called and pass "False" (in this example), since we constantly use scripts, because TC still can't handle custom elements (but that's another issue). 

This is very frustrating and it should be implemented ASAP.

No CommentsBe the first to comment