3

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

Bence Kaulics
  • 7,066
  • 7
  • 33
  • 63

2 Answers2

5

You can use the Evaluate keyword to call what was suggested in the comments.

*** Test Cases ***
Generate UUID
    ${uuid}=    Evaluate    uuid.uuid4()    modules=uuid

enter image description here

Or you could use Inline Python evaluation since Robot Framework 3.2.

Bence Kaulics
  • 7,066
  • 7
  • 33
  • 63
1

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}
Dharman
  • 30,962
  • 25
  • 85
  • 135
otemek
  • 67
  • 1
  • 9