json - Make dynamic name text field in Postman -
i'm using postman make rest api calls server. want make name field dynamic can run request unique name every time.
{ "location": { "name": "testuser2", // should unique, eg. testuser3, testuser4, etc "branding_domain_id": "52f9f8e2-72b7-0029-2dfa-84729e59dfee", "parent_id": "52f9f8e2-731f-b2e1-2dfa-e901218d03d9" } }
in postman want use dynamic variables.
the json post this:
{ "location": { "name": "{{$guid}}", "branding_domain_id": "52f9f8e2-72b7-0029-2dfa-84729e59dfee", "parent_id": "52f9f8e2-731f-b2e1-2dfa-e901218d03d9" } }
note give guid (you have option use ints or timestamps) , i'm not aware of way inject strings (say, test file or data generation utility).
Comments
Post a Comment