robotframework - How to write a variable into a file? -
i store ${username}
value in output file:
e.g. if ${username}
equals 0401190926729000
, value stored in file.
here proposal:
*** settings *** library operatingsystem library string *** test cases *** write_variable_in_file ${username} = generate random string 1 abc log console ${username} run keyword if '${username}' == 'a' write_variable_in_file ${username} *** keywords *** write_variable_in_file [arguments] ${variable} create file ${execdir}/file_with_variable.txt ${variable}
Comments
Post a Comment