Show Value as Hex in log file

Hello

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.

Thanks

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.

Dave

This has worked, thanks for your suggestion

1 Like