I want to specify default values like in python
def my_function(arg1="my_string", arg2=[], arg3={}, arg4=True):
pass
The following is a sample keyword definition equivalent to above. I want to specify default values.
*** Keywords ***
My Function
[Arguments] ${ARG1}=my_default_string ${ARG2}= <How to specify empty list) ${ARG3}= <How to specify empty dict) ${ARG4}= <How to specify boolean true)
some statements
some more statements
For empty array, dictionary, etc. use these predefined constants:
${EMPTY} #
@{EMPTY} # = empty array
&{EMPTY} # = empty dictionary
read documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With