Robot Framework: Generating Unique Random number

后端 未结 5 1179
失恋的感觉
失恋的感觉 2021-01-18 21:46

I have to generate unique random numbers in robot framework. I have used \"Generate Random String\" to get random numbers. Command:

${random}   Generate Ran         


        
5条回答
  •  悲哀的现实
    2021-01-18 21:59

    I think you should try below code. It will give you a 4 digit unique random number from "0123456789"

    library String

    ${PO_Number}    Generate random string    4    0123456789
    

    I hope it will work for you as it worked for me.

    Regards, Arvind Kumar

提交回复
热议问题