Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how create a random enum on postman variable

a= ["Opened", "Reserved", "Paid", "Shipped", "Delivered", "Returned", "PartlyReturned", "Closed", "Canceled"]


pm.environment.set("value", _.sample(a))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #random #enum #postman #variable
ADD COMMENT
Topic
Name
7+5 =