Show Value as Hex in log file


I would like to view all the numerical arguments and values for keywords in the output log.html file as hex values rather than in decimal (all the inputs and outputs of the system I’m testing are written in hex and it would help with trouble shooting if all the test values were in hex as well)

Links to examples of a solution or anything similar would be greatly appreciated.


If your number is in decimal as a variable ${mynum} then something like this should do what you need

${myhex}=    evaluate    hex(${mynum})

Whould be easy enough to wrap that in a cusom keyword if you needed.


This has worked, thanks for your suggestion

1 Like