Is there a way to generate UUID
of the following format in the robot framework? Can we use a similar python library e.g. UUID library
?
Format-
07464f5d-db6e-486e-bdfa-ad50b2ad8a92
fd61836f-5745-47c2-a9b1-b13335e11695
Is there a way to generate UUID
of the following format in the robot framework? Can we use a similar python library e.g. UUID library
?
Format-
07464f5d-db6e-486e-bdfa-ad50b2ad8a92
fd61836f-5745-47c2-a9b1-b13335e11695
You can use the Evaluate
keyword to call what was suggested in the comments.
*** Test Cases ***
Generate UUID
${uuid}= Evaluate uuid.uuid4() modules=uuid
Or you could use Inline Python evaluation since Robot Framework 3.2.
You can use robotframework-faker library
after installing through pip, You can use it like, e.g.
*** Settings ***
Library FakerLibrary
*** Test Cases ***
Print uuid
${some_uuid} Uuid 4
Log ${some_uuid}