postman 使用手册之内置动态变量 1

变量名 描述 例子
$guid 一个 uuid-v4 风格GUID "611c2e81-2ccb-42d8-9ddc-2d0bfa65c1b4"
"3a721b7f-7dc9-4c45-9777-516942b98e0d"
"22eca807-006b-47df-9511-e92e37f5071a"
$timestamp 当前UNIX时间戳(以秒为单位) 1562757107 1562757108 1562757109
$isoTimestamp 当前ISO时间戳(UTC为零) 2020-06-09T21:10:36.177Z
2019-10-21T06:05:50.000Z
2019-07-29T18:29:00.000Z
$randomUUID 随机的36个字符的UUID "6929bb52-3ab2-448a-9796-d6480ecad36b"
"53151b27-034f-45a0-9f0a-d7b6075b67d0"
"727131a2-2717-44ad-ab02-006587e947dc"

文字,数字和颜色

变量名 描述 例子
$randomAlphaNumeric 随机字母数字字符 6 "y" "z"
$randomBoolean 随机布尔值(真/假) true false false true
$randomInt 1至1000之间的随机整数 802 494 200
$randomColor 随机颜色 "red" "fuchsia" "grey"
$randomHexColor 随机十六进制值 "#47594a" "#431e48" "#106f21"
$randomAbbreviation 随机缩写 SQL PCI JSON

互联网和IP地址

变量名 描述 例子
$randomIP 随机的IPv4地址 241.102.234.100 216.7.27.38
$randomIPV6 随机的IPv6地址 dbe2:7ae6:119b:c161:1560:6dda:3a9b:90a9
c482:23a4:ce4c:a668:7736:6cc5:b0b6:cc37
c791:18d1:fbba:87d8:d929:22aa:5a0a:ac3d
$randomMACAddress 随机MAC地址 33:d4:68:5f:b4:c7 1f:6e:db:3d:ed:fa
$randomPassword 随机的15个字符的字母数字密码 t9iXe7COoDKv8k3 QAzNFQtvR9cg2rq
$randomLocale 随机的两个字母的语言代码(ISO 639-1) "ny" "sr" "si"
$randomUserAgent 随机用户代理 Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.9.8; rv:15.6) Gecko/20100101 Firefox/15.6.6
Opera/10.27 (Windows NT 5.3; U; AB Presto/2.9.177 Version/10.00)
Mozilla/5.0 (Windows NT 6.2; rv:13.5) Gecko/20100101 Firefox/13.5.6
$randomProtocol 随机互联网协议 "http" "https"
$randomSemver 随机语义版本号 7.0.5 2.5.8 6.4.9

名字

变量名 描述 例子
$randomFirstName 随机名字 Ethan Chandler Megane
$randomLastName 随机姓氏 Schaden Schneider Willms
$randomFullName 随机的名字和姓氏 Connie Runolfsdottir Sylvan Fay Jonathon Kunze
$randomNamePrefix 随机名称前缀 Dr. Ms. Mr.
$randomNameSuffix 随机名称后缀 I MD DDS

职业

变量名 描述 例子
$randomJobArea 随机工作区 Mobility Intranet Configuration
$randomJobDescriptor 随机作业描述符 Forward Corporate Senior
$randomJobTitle 随机职位 International Creative Liaison
Product Factors Officer
Future Interactions Executive
$randomJobType 随机工作类型 Supervisor Manager Coordinator

电话,地址和位置

变量名 描述 例子
$randomPhoneNumber 随机的10位数电话号码 700-008-5275 494-261-3424 662-302-7817
$randomPhoneNumberExt 带有扩展名的随机电话号码(12位数字) 27-199-983-3864 99-841-448-2775
$randomCity 随机城市名称 Spinkahaven Korbinburgh Lefflerport
$randomStreetName 随机的街道名称 Kuhic Island General Street Kendrick Springs
$randomStreetAddress 随机街道地址 5742 Harvey Streets 47906 Wilmer Orchard
$randomCountry 随机国家 Lao People's Democratic Republic Kazakhstan Austria
$randomCountryCode 随机的2个字母的国家/地区代码(ISO 3166-1 alpha-2) CV MD TD
$randomLatitude 随机纬度坐标 55.2099 27.3644 -84.7514
$randomLongitude 随机经度坐标 40.6609 171.7139 -159.9757

图片

变量名 描述 例子
$randomImage 随机图像 http://lorempixel.com/640/480/technics
http://lorempixel.com/640/480/food
http://lorempixel.com/640/480/business
$randomAvatarImage 随机头像 https://s3.amazonaws.com/uifaces/faces/twitter/johnsmithagency/128.jpg
https://s3.amazonaws.com/uifaces/faces/twitter/xadhix/128.jpg
https://s3.amazonaws.com/uifaces/faces/twitter/martip07/128.jpg
$randomImageUrl 随机图片的网址 http://lorempixel.com/640/480
$randomAbstractImage 随机抽象图片的网址 http://lorempixel.com/640/480/abstract
$randomAnimalsImage 随机动物图片的网址 http://lorempixel.com/640/480/animals
$randomBusinessImage 随机库存企业图片的网址 http://lorempixel.com/640/480/business
$randomCatsImage 随机猫图像的URL http://lorempixel.com/640/480/cats
$randomCityImage 随机城市图片的网址 http://lorempixel.com/640/480/city
$randomFoodImage 随机食物图片的网址 http://lorempixel.com/640/480/food
$randomNightlifeImage 随机夜生活图片的网址 http://lorempixel.com/640/480/nightlife
$randomFashionImage 随机时尚图片的网址 http://lorempixel.com/640/480/fashion
$randomPeopleImage 一个人的随机图像的URL http://lorempixel.com/640/480/people
$randomNatureImage 随机自然图像的URL http://lorempixel.com/640/480/nature
$randomSportsImage 随机运动图像的URL http://lorempixel.com/640/480/sports
$randomTechnicsImage 随机技术图片的网址 http://lorempixel.com/640/480/technics
$randomTransportImage 随机交通图片的网址 http://lorempixel.com/640/480/transport
$randomImageDataUri 随机图像数据URI data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22undefined%22%20height%3D%22undefined%22%3E%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%20%20%3Ctext%20x%3D%220%22%20y%3D%2220%22%20font-size%3D%2220%22%20text-anchor%3D%22start%22%20fill%3D%22white%22%3Eundefinedxundefined%3C%2Ftext%3E%20%3C%2Fsvg%3E

金融

变量名 描述 例子
$randomBankAccount 随机的8位数字银行帐号 09454073 65653440 75728757
$randomBankAccountName 随机的银行帐户名称(例如,储蓄帐户,支票帐户) Home Loan Account Checking Account Auto Loan Account
$randomCreditCardMask 随机屏蔽的信用卡号 3622 5815 6257
$randomBankAccountBic 随机BIC(银行识别码) EZIAUGJ1 KXCUTVJ1 DIVIPLL1
$randomBankAccountIban 15-31个字符的随机IBAN(国际银行帐号) MU20ZPUN3039684000618086155TKZ
BR7580569810060080800805730W2
XK241602002200395017
$randomTransactionType 随机交易类型(例如发票,付款,存款) invoice payment deposit
$randomCurrencyCode 随机的3个字母的货币代码(ISO-4217) CDF ZMK GNF
$randomCurrencyName 随机货币名称 CFP Franc Cordoba Oro Pound Sterling
$randomCurrencySymbol 随机货币符号 $ £
$randomBitcoin 随机比特币地址 3VB8JGT7Y4Z63U68KGGKDXMLLH5
1GY5TL5NEX3D1EA0TCWPLGVPQF5EAF
14IIEXV2AKZAHSCY2KNYP213VRLD

商业

变量名 描述 例子
$randomCompanyName 随机公司名称 Johns - Kassulke Grady LLC
$randomCompanySuffix 随机的公司后缀(例如,Inc,LLC,Group) Inc LLC Group
$randomBs 商务说话的随机短语 killer leverage schemas
bricks-and-clicks deploy markets
world-class unleash platforms
$randomBsAdjective 随机的商务口语形容词 viral 24/7 24/365
$randomBsBuzz 随机企业说流行语 repurpose harness transition
$randomBsNoun 随机说话 e-services markets interfaces

口头禅

变量名 描述 例子
$randomCatchPhrase 随机的流行语 Future-proofed heuristic open architecture
Quality-focused executive toolset
Grass-roots real-time definition
$randomCatchPhraseAdjective 随机流行语形容词 Self-enabling Business-focused Down-sized
$randomCatchPhraseDescriptor 随机标语描述符 bandwidth-monitored needs-based homogeneous
$randomCatchPhraseNoun 随机生成一个标语名词 secured line superstructure installation

评论区 (0)

没有记录
支持 markdown,图片截图粘贴拖拽都可以自动上传。