Search
 
SCRIPT & CODE EXAMPLE
 

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))
Comment

PREVIOUS NEXT
Code Example
Javascript :: PASSWORD REDIRECT 
Javascript :: GetNameOfZone 
Javascript :: jquery dropdownlist from mvc jsonresult list 
Javascript :: javascript checkbox in table cell not working 
Javascript :: Get javascript object from array by filter 
Javascript :: circle rect collision 
Javascript :: modify a string in javascript 
Javascript :: Exponent Power Shorthand in javascript 
Javascript :: escape exponential input number in js 
Javascript :: how to generate an array of random numbers in javascript 
Javascript :: ContentDocumentLink example in jS 
Javascript :: javascript query corrector 
Javascript :: Simple Email Validation, Case Insensitive, w/ All Valid Local Part Characters (whatever tf that means to you...), 2nd Example - Regex 
Javascript :: graphql get item by id from strapi react 
Javascript :: javascript one line if without else 
Javascript :: slice method javascript 
Javascript :: loop with multiple conditions js codesmith 
Javascript :: angular interpolation check if value is null 
Javascript :: jquery dropdown options in laravel 
Javascript :: json serializable snake case 
Javascript :: action creators in redux 
Javascript :: twitter user profile regex javascript 
Javascript :: vuejs check word is availble in the string or not 
Javascript :: showing error for few seconds react 
Javascript :: Without a custom hook example in react 
Javascript :: js date add days daylight saving 
Javascript :: angular material table generator 
Javascript :: nodejs express mongodb boilerplate 
Javascript :: date javascript only show day month year 
Javascript :: rendering component in route with properties 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =