christiank
10 years agoOccasional Contributor
WaitWindow Parameters Optional & Required
Hi,
we are using the WaitWindow method in our project quite alot.
The help documentation for WaitWindow explains four paramters, two of them required and two of them optional.
WndClass | [in] | Required | String | |
WndCaption | [in] | Optional | String | Default value: * |
GroupIndex | [in] | Optional | Integer | Default value: -1 |
WaitTime | [in] | Required | Integer | |
Result | Object |
Coming from dotnet this is not clear to me, since optional paramters can only be used as last parameters for a method. How exaclty does TC execute this method when it is called like this (as we do in our project):
["WaitWindow"] ("xyz", "abc", 1)
There will be no error on execution but to me this doesnt make sense.
You could of course argue to not use the function like this but since Im newly assigned to this project and the is method is used quite extensively Id rather not change every single usage.
We are using Version 10.40.2015.7