Site icon QATechTools

Various dynamic variables available in postman

Postman provides a very rich set of dynamic variable which anyone can use to quickly start with Automation. Some of the very common dynamic variables in postman are listed below:

Common

Variable NameDescriptionExamples
$guidA uuid-v4 style guid"611c2e81-2ccb-42d8-9ddc-2d0bfa65c1b4"
"3a721b7f-7dc9-4c45-9777-516942b98e0d"
"22eca807-006b-47df-9511-e92e37f5071a"
$timestampThe current UNIX timestamp in seconds1562757107, 1562757108, 1562757109
$randomUUIDA random 36-character UUID"6929bb52-3ab2-448a-9796-d6480ecad36b"
"53151b27-034f-45a0-9f0a-d7b6075b67d0"
"727131a2-2717-44ad-ab02-006587e947dc"

Text, Numbers and Colors

Variable NameDescriptionExamples
$randomAlphaNumericA random alpha-numeric character6, "y", "z"
$randomBooleanA random boolean value (true/false)true, false, false, true
$randomIntA random integer between 1 and 1000802, 494, 200
$randomColorA random color"red", "fuchsia", "grey"
$randomHexColorA random hex value"#47594a", "#431e48", "#106f21"
$randomAbbreviationA random abbreviationSQL, PCI, JSON

Names

Variable NameDescriptionExamples
$randomFirstNameA random first nameEthan, Chandler, Megane
$randomLastNameA random last nameSchaden, Schneider, Willms
$randomFullNameA random first and last nameConnie Runolfsdottir, Sylvan Fay, Jonathon Kunze
$randomNamePrefixA random name prefixDr., Ms., Mr.
$randomNameSuffixA random name suffixI, MD, DDS

Profession

Variable NameDescriptionExamples
$randomJobAreaA random job areaMobility, Intranet, Configuration
$randomJobDescriptorA random job descriptorForward, Corporate, Senior
$randomJobTitleA random job titleInternational Creative Liaison,
Product Factors Officer,
Future Interactions Executive
$randomJobTypeA random job typeSupervisor, Manager, Coordinator

Phone, Address and Location

Variable NameDescriptionExamples
$randomPhoneNumberA random 10-digit phone number700-008-5275, 494-261-3424, 662-302-7817
$randomPhoneNumberExtA random phone number with extension (12 digits)27-199-983-3864, 99-841-448-2775
$randomCityA random city nameSpinkahaven, Korbinburgh, Lefflerport
$randomStreetNameA random street nameKuhic Island, General Street, Kendrick Springs
$randomStreetAddressA random street address5742 Harvey Streets, 47906 Wilmer Orchard
$randomCountryA random countryLao People's Democratic Republic, Kazakhstan, Austria
$randomCountryCodeA random 2-letter country code (ISO 3166-1 alpha-2)CV, MD, TD
$randomLatitudeA random latitude coordinate55.2099, 27.3644, -84.7514
$randomLongitudeA random longitude coordinate40.6609, 171.7139, -159.9757

Business

Variable NameDescriptionExamples
$randomCompanyNameA random company nameJohns - Kassulke, Grady LLC
$randomCompanySuffixA random company suffix (e.g. Inc, LLC, Group)Inc, LLC, Group
$randomBsA random phrase of business speakkiller leverage schemas,
bricks-and-clicks deploy markets,
world-class unleash platforms
$randomBsAdjectiveA random business speak adjectiveviral, 24/7, 24/365
$randomBsBuzzA random business speak buzzwordrepurpose, harness, transition
$randomBsNounA random business speak noune-services, markets, interfaces

Databases

Variable NameDescriptionExamples
$randomDatabaseColumnA random database column nameupdatedAt, token, group
$randomDatabaseTypeA random database typetinyint, text
$randomDatabaseCollationA random database collationcp1250_bin, utf8_general_ci, cp1250_general_ci
$randomDatabaseEngineA random database engineMyISAM, InnoDB, Memory

Dates

Variable NameDescriptionExamples
$randomDateFutureA random future datetimeTue Mar 17 2020 13:11:50 GMT+0530 (India Standard Time),
Fri Sep 20 2019 23:51:18 GMT+0530 (India Standard Time),
Thu Nov 07 2019 19:20:06 GMT+0530 (India Standard Time)
$randomDatePastA random past datetimeSat Mar 02 2019 09:09:26 GMT+0530 (India Standard Time),
Sat Feb 02 2019 00:12:17 GMT+0530 (India Standard Time),
Thu Jun 13 2019 03:08:43 GMT+0530 (India Standard Time)
$randomDateRecentA random recent datetimeTue Jul 09 2019 23:12:37 GMT+0530 (India Standard Time),
Wed Jul 10 2019 15:27:11 GMT+0530 (India Standard Time),
Wed Jul 10 2019 01:28:31 GMT+0530 (India Standard Time)
$randomWeekdayA random weekdayThursday, Friday, Monday
$randomMonthA random monthFebruary, May, January

Stores

Variable NameDescriptionExamples
$randomPriceA random price between 100.00 and 999.00531.55, 488.76, 511.56
$randomProductA random productTowels, Pizza, Pants
$randomProductAdjectiveA random product adjectiveUnbranded, Incredible, Tasty
$randomProductMaterialA random product materialSteel, Plastic, Frozen
$randomProductNameA random product nameHandmade Concrete Tuna, Refined Rubber Hat
$randomDepartmentA random commerce categoryTools, Movies, Electronics
Exit mobile version