Forum Discussion

ilko01's avatar
ilko01
New Contributor
2 months ago

Need to add a variable to a string

During my test, I need to save a created file under a unique name, so, the next time system will not complain about identical file names. The best way is to append an Epoch timestamp to the new file ...
  • MW_Didata's avatar
    MW_Didata
    2 months ago

    use the 'run script routine' function in a keywordtest to run script code. 

    then use the function 'set variable value' and set that to 'last operation result'.

    the returned value from your script is now stored in your variable.

     

    Alternatively you could also set a variable in the script itself: