Expressions

VIVIDUS provides a set of pre-defined expressions. Also plugins may define own expressions (they are documented in the corresponding plugins articles).

The expression parameters marked with bold are mandatory.

Data generation

generate

Generates random data from various domain areas.

#{generate(<expression>)}
  • $expression - one of the data providers, its dot-separated method and space separated parameters wrapped into single quptes (for majority of cases parameters are not needed, their number and possible values depend on the chosen data provider method).

Below you can find a complete list of the supported expressions with results exmaples. Descriptions of the data providers and their parameters can be found in DataFaker documentation: click on the data provider name to find details.

Click here to view the complete list of the supported expressions

Expression #{generate(<expression>)}

Result

Address.buildingNumber

23198

Address.city

Westton

Address.cityName

South Maxview

Address.cityPrefix

North

Address.citySuffix

shire

Address.country

Belize

Address.countryCode

AU

Address.fullAddress

Suite 628 481 Terrell Dale, Osinskihaven, OH 54021

Address.latLon

70.74980271,71.96379576

Address.latLon '; '

5.00988050; 170.04569908

Address.latitude

-21.37176692

Address.lonLat

-69.44868999,-10.36862960

Address.lonLat '; '

89.99962306; 49.94901459

Address.longitude

-167.65186990

Address.mailBox

PO Box 65

Address.postcode

09558

Address.secondaryAddress

Suite 578

Address.state

Massachusetts

Address.stateAbbr

MA

Address.streetAddress

0427 Thalia Square

Address.streetAddress 'true'

17768 Schumm Mews Suite 889

Address.streetAddressNumber

156

Address.streetName

Sterling Station

Address.streetPrefix

xx

Address.streetSuffix

Summit

Address.timeZone

Asia/Tashkent

Address.zipCode

74226

Address.zipCodeByState 'WA'

990##

Address.zipCodePlus4

52298-0470

Ancient.god

Hestia

Ancient.hero

Polyxena

Ancient.primordial

Phanes

Ancient.titan

Cronus

Animal.genus

Macaca

Animal.name

chimpanzee

Animal.scientificName

Pygathrix roratus

Animal.species

fulvescens

App.author

Inez Glover

App.name

Tresom

App.version

0.4.3

Appliance.brand

Amana

Appliance.equipment

Appliance plug

AquaTeenHungerForce.character

Dr. Wongburger

Artist.name

Chagall

Australia.animals

Barramundi

Australia.locations

Ballarat

Australia.states

Northern Territory

Avatar.image

https://robohash.org/ktuubnew.png

Aviation.METAR

METAR: ZSPD 311400Z 12002MPS 080V190 9999 -SHRA NSC 23/22 Q1008 NOSIG

Aviation.aircraft

Boeing 787

Aviation.airline

Biman Bangladesh Airlines

Aviation.airport

KSFO

Aviation.flight

QR3196

Aviation.flight 'ICAO'

BBC8132

Aws.accountId

0299965189

Aws.acmARN

arn:aws:acm:us-east-2:0799372009:certificate/b14d5597-aab2-4813-9715-c
7731b903186

Aws.albARN

arn:aws:elasticloadbalancing:ap-south-1:0081046859:loadbalancer/app/so
nair/4cedeeacea88b06b

Aws.albTargetGroupARN

arn:aws:elasticloadbalancing:ap-southeast-1:0649794785:targetgroup/key
lex/faf77be6f8b15eb7

Aws.region

ap-south-1

Aws.route53ZoneId

QPLEMJMQKHNZSIKOQZEFV

Aws.securityGroupId

sg-5fad543c8088cc88

Aws.subnetId

subnet-b8cc72eb656cd6ee

Aws.vpcId

vpc-9530162bc43bd8e4

Babylon5.character

David Sheridan

Babylon5.quote

"The avalanche has already started. It is too late for the pebbles to vote." — Kosh to M’ola in Babylon 5:"Believers"

BackToTheFuture.character

3-D

BackToTheFuture.date

October 25, 1985

BackToTheFuture.quote

Jesus, George, it was a wonder I was even born.

Barcode.ean13

3142355593770

Barcode.ean8

12374182

Barcode.gtin12

206359964752

Barcode.gtin13

6456577215561

Barcode.gtin14

97858516899818

Barcode.gtin8

26342948

Barcode.type

Monarch

Basketball.coaches

Lloyd Pierce

Basketball.players

LaMarcus Aldridge

Basketball.positions

Shooting Guard

Basketball.teams

Denver Nuggets

Battlefield1.classes

Sentry

Battlefield1.faction

United States

Battlefield1.map

Tsaritsyn

Battlefield1.vehicle

M30 Scout

Battlefield1.weapon

Annihilator

Beer.hop

Tahoma

Beer.malt

Wheat mal

Beer.name

Sierra Nevada Bigfoot Barleywine Style Ale

Beer.style

English Pale Ale

Beer.yeast

1007 - German Ale

BigBangTheory.character

Amy Farrah Fowler

BigBangTheory.quote

That’s no reason to cry. One cries because one is sad. For example, I cry because others are stupid, and that makes me sad.

BloodType.aboTypes

O

BloodType.bloodGroup

A-

BloodType.pTypes

P2

BloodType.rhTypes

Rh-

BojackHorseman.characters

Lenny Turteltaub

BojackHorseman.quotes

Yes, I ate all the muffins, because I have no self-control and I hate myself

BojackHorseman.tongueTwisters

Courtney Portnoy portrayed the formerly portly consort in the seaport resort

Book.author

Dr. Kurt Veum

Book.genre

Fairy tale

Book.publisher

Salt Publishing

Book.title

Beyond the Mexique Bay

Bool.bool

false

BossaNova.artist

Zimbo Trio

BossaNova.song

Influencia Do Jazz

BreakingBad.character

Gretchen Schwartz

BreakingBad.episode

Peekaboo

BrooklynNineNine.characters

Terry Jeffords

BrooklynNineNine.quotes

A place where everybody knows your name is hell. You’re describing hell.

Buffy.bigBads

Adam

Buffy.celebrities

Eliza Dushku

Buffy.characters

Xander Harris

Buffy.episodes

Passion

Buffy.quotes

I’m leaning towards blind panic myself.

Business.creditCardExpiry

2011-10-12

Business.creditCardNumber

1211-1221-1234-2201

Business.creditCardType

forbrugsforeningen

Camera.brand

Olympus

Camera.brandWithModel

Nikon Coolpix P340

Camera.model

Alpha 6300

Cat.breed

European Shorthair

Cat.name

Felix

Cat.registry

Fancy Southern Africa Cat Council

Chiquito.expressions

¡Fuegorrrl!

Chiquito.jokes

  • Está la cosa muy mar muy mar muy mar

  • A mí me lo va a decir que me he casao y estoy haciendo el viaje de novios solo

Chiquito.sentences

Uno que nació después de los dolores

Chiquito.terms

La caidita de Roma

ChuckNorris.fact

Chuck Norris can unit test an entire application with a single assert.

ClashOfClans.defensiveBuilding

Firecrackers

ClashOfClans.rank

Gold III

ClashOfClans.troop

Pumpkin Barbarian (Barbarian)

CNPJ.invalid

22.000.046/8269-51

CNPJ.invalid 'true'

73.000.879/2529-39

CNPJ.invalid 'true' 'true'

76.000.255/8806-07

CNPJ.valid

00.823.827/0001-03

CNPJ.valid 'true'

34.833.502/0001-15

CNPJ.valid 'true' 'true'

10.627.164/2202-10

Code.asin

B000A2LWKU

Code.ean13

9207771089734

Code.ean8

27720134

Code.gtin13

1495624775011

Code.gtin8

44938154

Code.imei

443021543860473

Code.isbn10

0913679267

Code.isbn10 'true'

1-07-572596-8

Code.isbn13

9791711981979

Code.isbn13 'true'

978-1-9687645-6-2

Code.isbnGroup

1

Code.isbnGs1

979

Code.isbnRegistrant

9518452-6

Coffee.blendName

Huggy Extract

Coffee.body

silky

Coffee.country

Uganda

Coffee.descriptor

mango

Coffee.intensifier

wild

Coffee.name1

Winter

Coffee.name2

Nuts

Coffee.notes

unbalanced, syrupy, black cherry, black pepper, apricot

Coffee.region

Managua

Coffee.region 'BRAZIL'

Sul Minas

Coffee.variety

Sarchimor

Coin.flip

Tails

Color.hex

#E284B5

Color.hex 'true'

#DB2C4B

Color.name

fuchsia

Commerce.brand

Sony

Commerce.department

Outdoors

Commerce.material

Copper

Commerce.price

25.50

Commerce.price '5.5' '10.10'

9.52

Commerce.productName

Awesome Iron Lamp

Commerce.promotionCode

SaleSpecial099085

Commerce.promotionCode '7'

PricePremium2777148

Commerce.vendor

Walmart

Community.character

Magnitude

Community.quote

Do they find thoughts in our butts?

Company.bs

incubate vertical ROI

Company.buzzword

time-frame

Company.catchPhrase

Re-contextualized regional process improvement

Company.industry

Publishing

Company.logo

https://pigment.github.io/fake-logos/logos/medium/color/3.png

Company.name

Schneider and Sons

Company.profession

web developer

Company.suffix

LLC

Company.url

www.moenllc.name

Computer.linux

Ubuntu Server 19.10

Computer.macos

Big Sur (11)

Computer.operatingSystem

Mojave (10.14)

Computer.platform

macOS

Computer.type

workstation

Computer.windows

Windows 7

Construction.heavyEquipment

Skid-Steer

Construction.materials

Granite

Construction.roles

Construction Foreman

Construction.standardCostCodes

16 - Electrical

Construction.subcontractCategories

Rebar & Wire Mesh Install

Construction.trades

Refridgeration

Country.capital

Saint George’s

Country.countryCode2

tg

Country.countryCode3

bfa

Country.currency

Nepalese Rupee

Country.currencyCode

BGN

Country.flag

https://flags.fmcdn.net/data/flags/w580/bg.png

Country.name

Papua New Guinea

CPF.invalid

668.960.959-23

CPF.invalid 'true'

124.169.540-67

CPF.valid

564.761.853-73

CPF.valid 'true'

528.356.465-74

CryptoCoin.coin

Ethereum Classic, ETC, https://i.imgur.com/8wBtmQA.png

Currency.code

UYU

Currency.name

European Unit of Account 9(E.U.A.-9)

DarkSoul.classes

Wanderer

DarkSoul.covenants

Darkwraith

DarkSoul.shield

Black Knight Shield

DarkSoul.stats

Dexterity

DcComics.hero

Mr. Miracle

DcComics.heroine

Vixen

DcComics.name

Terry McGinnis

DcComics.title

Jack Kirby’s New Gods

DcComics.villain

Catwoman

Demographic.demonym

Syriac

Demographic.educationalAttainment

Regular high school diploma

Demographic.maritalStatus

Never married

Demographic.race

American Indian or Alaska Native

Demographic.sex

Female

Departed.actor

Martin Sheen

Departed.character

Sean Dignam

Departed.quote

Yeah, it’s working…​ Overtime!

Dessert.flavor

Rocky Road

Dessert.topping

Peanut Butter

Dessert.variety

Brownie

Device.manufacturer

Dell

Device.modelName

Xiaomi Mi 8 SE

Device.platform

Android OS

Device.serial

Hk4BoF=%ud/PV4K-/NvEq28Q/&HNq7

Disease.dermatolory

acne

Disease.gynecologyAndObstetrics

myoma of uterus

Disease.internalDisease

hypersplenism

Disease.neurology

paranoid psychosis

Disease.ophthalmologyAndOtorhinolaryngology

furuncle of nasalvestibule

Disease.paediatrics

poliomyelitis

Disease.surgery

bone tumour

Dog.age

senior

Dog.breed

American Terrier

Dog.coatLength

wire

Dog.gender

female

Dog.memePhrase

smol pupperino

Dog.name

Shadow

Dog.size

extra large

Dog.sound

bow wow

Domain.firstLevelDomain 'companyname'

companyname.name

Domain.fullDomain 'companyname'

vr.companyname.name.cy

Domain.secondLevelDomain 'companyname'

companyname.tel.wf

Domain.validDomain 'companyname'

companyname.coop.mv

DragonBall.character

Super Saiyan Goten

DrivingLicense.drivingLicense 'RI'

2399344

DumbAndDumber.actor

Rob Moran

DumbAndDumber.character

J.P. Shay

DumbAndDumber.quote

Lloyd, I can’t feel my fingers, they’re numb! Oh well here, take this extra pair of gloves, my hands are starting to get a little sweaty. Extra gloves? You’ve had extra gloves this whole time? Uh yea, we are in the Rockies. Jeez!

Dune.character

Dominic Vernius

Dune.planet

Caladan

Dune.quote

On Caladan, we ruled with sea and air power. Here, we must scrabble for desert power. This is your inheritance, Paul.

Dune.quote 'GUILD_NAVIGATOR'

The spice must flow

Dune.saying

I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain.

Dune.saying 'BENE_GESSERIT'

To suspect your own mortality is to know the beginning of terror; to learn irrefutably that you are mortal is to know the end of terror.

Dune.title

Viscount

Educator.campus

Ironston Campus

Educator.course

Associate Degree in Design

Educator.secondarySchool

Bluemeadow Secondary College

Educator.university

Iceborough University

EldenRing.location

Mountaintops Of The Giants

EldenRing.npc

Sorceress Sellen

EldenRing.skill

Impaling Thrust

EldenRing.spell

Adula’s Moonblade

EldenRing.weapon

Dagger

ElderScrolls.city

Ykalon

ElderScrolls.creature

Storm Atronach

ElderScrolls.dragon

Odahviing

ElderScrolls.firstName

Aela

ElderScrolls.lastName

Twice-Killed

ElderScrolls.quote

I’m not a man, I’m a weapon in human form.

ElderScrolls.race

Khajiit

ElderScrolls.region

Elsweyr

ElectricalComponents.active

Transistor

ElectricalComponents.electromechanical

Toggle Switch

ElectricalComponents.passive

Motion Sensor

EnglandFootBall.league

Premier League

EnglandFootBall.team

Manchester City F.C.

Esports.event

ESL Cologne

Esports.game

League of Legends

Esports.league

Starladder

Esports.player

Surefour

Esports.team

EnVyUs

Fallout.character

Paladin Danse

Fallout.faction

Talon Company

Fallout.location

Vault 101

Fallout.quote

Today’s forecast calls for a 99%chance of clear skies being ruined by artillery fire.

FamousLastWords.lastWords

Goodnight, my darlings, I’ll see you tomorrow.

File.extension

avi

File.fileName

consectetur_et/aliquid.csv

File.fileName 'dir' 'filename' 'txt' '/'

dir/filename.txt

File.mimeType

application/atom+xml

FinalSpace.character

KVN

FinalSpace.quote

Let’s get wild, how about you buy me a drink

FinalSpace.vehicle

Star Chaser

Finance.bic

FSOSXXIGG0H

Finance.creditCard

6767-9088-6323-4953-570

Finance.creditCard 'VISA'

4498172283337

Finance.iban

DO5485C900189517161663320564

Finance.iban 'LV'

LV53AMXLXEPGFF82IIs2h

Finance.nasdaqTicker

COST

Finance.nyseTicker

MA

Finance.stockMarket

KRX

Food.dish

Stinky Tofu

Food.fruit

Cantaloupe

Food.ingredient

Butternut Pumpkin

Food.measurement

1/4 pint

Food.spice

Peppercorns Black

Food.sushi

Crab

Food.vegetable

Kale

Football.coaches

Massimiliano Allegri

Football.competitions

UEFA Champions League

Football.players

Roberto Firmino

Football.positions

Right Wing

Football.teams

Inter Milan

Formula1.circuit

Circuit Zandvoort

Formula1.driver

Lance Stroll

Formula1.grandPrix

Hungarian Grand Prix

Formula1.team

Ferrari

Friends.character

Erica

Friends.location

945 Grove St Apt. 20

Friends.quote

No! No, Joey! U-N-I-sex.

FunnyName.name

Ayma Moron

GameOfThrones.character

Ben Plumm

GameOfThrones.city

Samyrian

GameOfThrones.dragon

Rhaegal

GameOfThrones.house

Redfort of Redfort

GameOfThrones.quote

The North remembers.

GarmentSize.size

XXL

Gender.binaryTypes

Male

Gender.shortBinaryTypes

m

Gender.types

Male

Ghostbusters.actor

Sigourney Weaver

Ghostbusters.character

Louis Tully

Ghostbusters.quote

Maybe now you’ll never slime a guy with a positron collider, huh?

GratefulDead.players

Bill Kreutzmann

GratefulDead.songs

Cumberland Blues

GreekPhilosopher.name

Gorgias

GreekPhilosopher.quote

Know how to listen, and you will profit even from those who talk badly.

Hacker.abbreviation

SMS

Hacker.adjective

bluetooth

Hacker.ingverb

compressing

Hacker.noun

feed

Hacker.verb

copy

HarryPotter.book

Harry Potter and the Chamber of Secrets

HarryPotter.character

Peter Pettigrew

HarryPotter.house

Hufflepuff

HarryPotter.location

Ilvermorny

HarryPotter.quote

It does not do to dwell on dreams and forget to live.

HarryPotter.spell

Stupefy

Hashing.md2

9cf5f7257ad08b9b15bc2031ba2ab796

Hashing.md5

207d2e32e13938f297c755bf612c379f

Hashing.sha1

d883592bd325043f0db40cc61940d98a5a41e0f5

Hashing.sha256

855d18a38cf3f4b456cebd8d4df383dd52e02daed64d911cdad574f7edab30ae

Hashing.sha384

fbf1a25b1941b7f65b023374902b23b93e49c23bb0f55792d75eca7b209d9ffa722ae6
8dd446b2a04e8bb2b9ecf8c3f1

Hashing.sha512

d11be6e1ed3c9d36b5fe32ece9f93bb6d80673e3b3baa845774b5a5c435b6464f00d65
cef09a40e8f0365a5d489cb869394c93c205affe5f8de29ea974df2644

Hearthstone.battlegroundsScore

3877

Hearthstone.mainCharacter

Jaina Proudmoore

Hearthstone.mainPattern

Duels

Hearthstone.mainProfession

Mage

Hearthstone.standardRank

Gold 9

Hearthstone.wildRank

Diamond 1

HeyArnold.characters

Sewer King

HeyArnold.locations

Madame Bovary’s Dance School for Boys

HeyArnold.quotes

Never eat raspberries.

Hipster.word

authentic

HitchhikersGuideToTheGalaxy.character

Barry Manilow

HitchhikersGuideToTheGalaxy.location

Megabrantis cluster

HitchhikersGuideToTheGalaxy.marvinQuote

And then of course I’ve got this terrible pain in all the diodes down my left side.

HitchhikersGuideToTheGalaxy.planet

Golgafrincham

HitchhikersGuideToTheGalaxy.quote

Evolution? they said to themselves, Who needs it?

HitchhikersGuideToTheGalaxy.species

Hooloovoo

HitchhikersGuideToTheGalaxy.starship

Billion Year Bunker

Hobbit.character

Bungo Baggins

Hobbit.location

Land of the Necromancer

Hobbit.quote

The road goes ever on and on

Hobbit.thorinsCompany

Dwalin

Hobby.activity

Vacation

Hololive.talent

Inugami Korone

Horse.breed

Kiger Mustang

Horse.name

Jackson

House.furniture

bath

House.room

kitchen

HowIMetYourMother.catchPhrase

Classic Shmosby

HowIMetYourMother.character

Lily Aldrin

HowIMetYourMother.highFive

Word Play Five

HowIMetYourMother.quote

The littlest thing can cause a ripple effect that changes your life.

IdNumber.inValidEnZaSsn

1141022952088

IdNumber.invalid

000-61-0669

IdNumber.invalidEsMXSsn

ADKF144424MNSDFCD6

IdNumber.invalidPtNif

6301832213

IdNumber.invalidSvSeSsn

673466+7271

IdNumber.peselNumber

19270264988

IdNumber.singaporeanFin

G0725159R

IdNumber.singaporeanFinBefore2000

F0496871U

IdNumber.singaporeanUin

T9876631D

IdNumber.singaporeanUinBefore2000

S6345494J

IdNumber.ssnValid

019-07-1420

IdNumber.valid

256-86-0159

IdNumber.validEnZaSsn

8510164783086

IdNumber.validEsMXSsn

XUQY401102HTLAUU08

IdNumber.validPtNif

589799240

IdNumber.validSvSeSsn

190620+7962

IdNumber.validZhCNSsn

44070319600626380X

IndustrySegments.industry

Basic Materials

IndustrySegments.sector

Food Producers

IndustrySegments.subSector

Industrial Suppliers

IndustrySegments.superSector

Personal & Household Goods

Internet.avatar

https://robohash.org/ejmxpftv.png

Internet.domainName

schiller.net

Internet.domainSuffix

info

Internet.domainWord

hammes

Internet.emailAddress

kaitlyn.weissnat@yahoo.com

Internet.emailAddress 'myemail'

myemail@gmail.com

Internet.getIpV4Address

/86.71.91.226

Internet.getIpV6Address

/7b85:54f:b545:85ac:e106:78f:bb77:29ac

Internet.getPrivateIpV4Address

/127.89.39.206

Internet.getPublicIpV4Address

/45.100.146.254

Internet.image

https://lorempixel.com/1280/1024/people/

Internet.image '100' '200' 'false' 'imageName'

https://lorempixel.com/100/200/transport/imageName

Internet.ipV4Address

240.49.14.163

Internet.ipV4Cidr

36.147.110.197/24

Internet.ipV6Address

2513:f2a6:5a05:ad3b:c275:d110:cec2:8cfb

Internet.ipV6Cidr

8d98:d2d6:786a:47d3:5e0d:ff18:e25a:47b/8

Internet.macAddress

ae:b3:8a:7e:82:be

Internet.macAddress 'aa:bb'

aa:bb:d5:4f:d1:2e

Internet.password

83uf82l1

Internet.password 'true'

6vrz8z60

Internet.password '5' '10'

43vyzeagu

Internet.password '5' '10' 'true'

RHp55v6H

Internet.password '5' '10' 'true' 'true'

%X4!Y

Internet.password '5' '10' 'true' 'true' 'true'

lR@1xg0D2

Internet.privateIpV4Address

127.25.46.55

Internet.publicIpV4Address

59.181.6.237

Internet.safeEmailAddress

kendrick.gottlieb@example.com

Internet.safeEmailAddress 'myemail'

myemail@example.com

Internet.slug

quos_itaque

Internet.url

www.breanne-harris.biz

Internet.userAgent 'AOL'

Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1; SV1)

Internet.userAgentAny

Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Internet.uuid

3f856698-ffe8-4e72-8b29-da7c0587ba39

Internet.uuidv3

9819da25-d386-3490-92b3-aac4d9f66fdf

Job.field

Real-Estate

Job.keySkills

Leadership

Job.position

Manager

Job.seniority

Senior

Job.title

Forward Sales Agent

Kaamelott.character

Spurius Cordius Frontinius

Kaamelott.quote

Et toc ! Remonte ton slibard, Lothard !

Kpop.boyBands

M&D

Kpop.girlGroups

Crayon Pop

Kpop.iGroups

Roo’ra

Kpop.iiGroups

Kara

Kpop.iiiGroups

A-Jax

Kpop.solo

Hyomin

LeagueOfLegends.champion

Teemo

LeagueOfLegends.location

Freljord

LeagueOfLegends.masteries

Dangerous Game

LeagueOfLegends.quote

Have you seen my Bear Tibbers?

LeagueOfLegends.rank

Gold II

LeagueOfLegends.summonerSpell

Cleanse

Lebowski.actor

Julianne Moore

Lebowski.character

The Dude

Lebowski.quote

I’m perfectly calm, Dude.

LordOfTheRings.character

Treebeard

LordOfTheRings.location

Taur-im-Duinath

Lorem.character

5

Lorem.character 'true'

8

Lorem.characters

ykrl2e10pr4zln11495ingfcg86kd586n07m26p2cp31neoo99q9fns6eoce3tnq6un7sx
8og9ijb5a58erzjv6lgg53ui6dt8r3knc145a1br7050y5uq34qa454uls6gtm279w048t
84xooah140e0t7wxnd67b68afu99toa8071l34h553175e1pji64v18c89h3rh28jx2x3h
o8u2873069aw98udnakeb3o2mty7sh8am605120h4w303

Lorem.characters '7'

6crap48

Lorem.characters 'true'

StOO1O334qOtX4UydvfqEG91e844qo8tjA0rI5EN0P6344zbm6SHl7Rgo8j8sUmMu1XOVM
1046ER2an29sKl0hbu8Qw31VRSL4fJWzC7myaJT25s678M19R7AwuP6O4c8Ki4Ud16MIMp
860K9Y181N526d364Z3gY5J6vun6eVY3w4I4QsR0X8siwJymp66T552bF0syR8JXE1qx4O
756dC6F8OA3MNi3FLW7Z0sx1sKSCVz90a64NdqWK8wX74

Lorem.characters '5' 'true'

cx8Br

Lorem.characters '5' '10'

052uk

Lorem.characters '5' '10' 'true'

dDxfJMCbeu

Lorem.characters '5' 'true' 'true'

2y1Pb

Lorem.characters '5' 'true' 'true' 'true'

^OIf8

Lorem.characters '5' '10' 'true' 'true'

093^6

Lorem.characters '5' '10' 'true' 'true' 'true'

X1P#p9

Lorem.fixedString '7'

Quidem

Lorem.maxLengthSentence '7'

Sed qui

Lorem.paragraph

Omnis facilis modi impedit quo et. Sit eum qui ipsum ducimus reprehenderit sed. Quis sunt expedita. Occaecati fugiat quis vel voluptatem ad nostrum voluptatibus. Laudantium doloremque quo tenetur dolor.

Lorem.paragraph '7'

Soluta velit expedita consectetur enim expedita maxime occaecati. Voluptatem voluptates accusamus vel consequuntur. Possimus recusandae magnam maiores nihil impedit. Molestias eligendi ut et quia quibusdam. Et quidem incidunt. Dolor recusandae atque. Labore dolorum in.

Lorem.paragraphs '7'

[Dicta excepturi animi id corporis voluptates ipsam. Doloribus qui laudantium perferendis aperiam quia dolor sed. Reprehenderit eum quasi iure optio eos voluptates dicta. Omnis in reprehenderit quisquam placeat unde et. Eligendi tempore exercitationem aut quam iusto magnam qui., Ad molestias reiciendis alias. Labore nihil mollitia et quam consequuntur placeat repudiandae. Ut praesentium quidem est. Omnis in enim. Ducimus nihil maxime consequatur eius cumque ratione., Harum magni sed et deserunt ea maxime. Molestiae atque perspiciatis voluptas voluptatem maxime et. Vel repudiandae eos repudiandae sed ea. Qui ipsum consequatur illo atque quos., Eum quo porro aut. Et pariatur dolore libero natus ut. Illum est quod accusamus blanditiis magni reiciendis. Et sit rem temporibus ipsum aut atque., Vel ullam explicabo natus maxime fugit. Quia neque corrupti molestiae consequatur. Sed eius non voluptate sit animi officiis., Optio qui quia et. Reprehenderit aut blanditiis aut quasi. Repellendus distinctio sit nihil nulla. Expedita expedita nam enim quae., Animi provident occaecati numquam porro dolor animi. Dolores rerum enim voluptatem. Dignissimos eligendi maxime quia doloribus at quae quod. Rem ratione est in.]

Lorem.sentence

Doloremque autem veniam sint ut.

Lorem.sentence '7'

Consequatur incidunt voluptas accusamus in error ab similique ratione nostrum et.

Lorem.sentence '5' '10'

Architecto sed ex omnis omnis ad ea sit itaque.

Lorem.sentences '7'

[Est et nemo similique., Nihil esse illo a eius et., Repellendus dignissimos rem eveniet assumenda., Praesentium neque tenetur corrupti quo., Voluptatem quia et accusantium qui., Exercitationem aperiam iure fugiat libero., A tempora reiciendis fugiat sed non.]

Lorem.word

facilis

Lorem.words

[illum, suscipit, impedit]

Lorem.words '7'

[quo, nisi, suscipit, repudiandae, nihil, dicta, nesciunt]

Marketing.buzzwords

sprint to the finish line

MassEffect.character

Matriarch Benezia

MassEffect.cluster

Annos Basin

MassEffect.planet

Mosiives

MassEffect.quote

Emergency. Induction. Port.

MassEffect.specie

Husks

Matz.quote

Because of the Turing completeness theory, everything one Turing-complete language can do can theoretically be done by another Turing-complete language, but at a different cost. You can do everything in assembler, but no one wants to program in assembler anymore.

Mbti.characteristic

Deserve to shine

Mbti.merit

bold

Mbti.name

Entertainer Personality

Mbti.personage

Adele

Mbti.type

ESFP

Mbti.weakness

lack of concentration

Measurement.height

inch

Measurement.length

yard

Measurement.metricHeight

meter

Measurement.metricLength

meter

Measurement.metricVolume

liter

Measurement.metricWeight

metric ton

Measurement.volume

gallon

Measurement.weight

ounce

Medical.diagnosisCode

P7

Medical.diseaseName

gallbladder disease

Medical.hospitalName

Weslaco Rehabilitation Hospital

Medical.medicineName

auromedics pharma llc

Medical.procedureCode

mfnDkkL

Medical.symptoms

leg numbness (paresthesias)

Military.airForceRank

Command Chief Master Sergeant

Military.armyRank

Captain

Military.dodPaygrade

O-2

Military.marinesRank

Second Lieutenant

Military.navyRank

Constructionman

Minecraft.animalName

Squid

Minecraft.entityName

Giant

Minecraft.itemName

Spider Eye

Minecraft.monsterName

Endermite

Minecraft.tileItemName

Black Concrete

Minecraft.tileName

Cyan Concrete

Money.currency

Ugandan shilling

Money.currencyCode

SEK

Mood.emotion

glad

Mood.feeling

anxious

Mood.tone

resigned

Mountain.name

Kabru N

Mountain.range

Assam Himalaya

Mountaineering.mountaineer

George Mallory

Movie.quote

All right, Mr. DeMille, I’m ready for my closeup.

Music.chord

Gdom7

Music.genre

Country

Music.instrument

Bass Guitar

Music.key

A#

Name.firstName

Garth

Name.fullName

Austin Ruecker

Name.lastName

VonRueden

Name.name

Miss Andree Medhurst

Name.nameWithMiddle

Jeneva Daniel Cruickshank Jr.

Name.prefix

Mrs.

Name.suffix

Jr.

Name.title

Product Security Agent

Name.username

myra.marquardt

Nation.capitalCity

Harare

Nation.flag

🇦🇷

Nation.isoCountry

KN

Nation.isoLanguage

sa

Nation.language

Nepali

Nation.nationality

Koreans

NatoPhoneticAlphabet.codeWord

Victor

Nigeria.celebrities

Wizkid

Nigeria.food

Garri

Nigeria.name

Akpan

Nigeria.places

Ogun

Nigeria.schools

DELSU

Number.digit

1

Number.digits '7'

7099176

Number.negative

-1673216057

Number.numberBetween '5' '10'

6

Number.numberBetween '5' '10'

5

Number.positive

1000019228

Number.randomDigit

3

Number.randomDigitNotZero

5

Number.randomDouble '3' '5' '10'

8.397

Number.randomDouble '3' '5' '10'

6.166

Number.randomNumber

766132868

Number.randomNumber '5' 'true'

95690

OscarMovie.actor

Rafi Gavron

OscarMovie.character

Lorenzo

OscarMovie.getChoice

A3

OscarMovie.getYear

A2019

OscarMovie.movieName

A Star is Born

OscarMovie.quote

Music is essentially 12 notes between any octave. Twelve notes and the octave repeats. It’s the same story told over and over. All the artist can offer the world is how they see those 12 notes.

OscarMovie.releaseDate

August 31, 2018

Overwatch.hero

Zarya

Overwatch.location

Ecopoint: Antarctica

Overwatch.quote

Géill do mo thoil!

Passport.valid

087752146

PhoneNumber.cellPhone

308-856-8899

PhoneNumber.extension

7836

PhoneNumber.phoneNumber

(520) 952-2615

PhoneNumber.subscriberNumber

6867

PhoneNumber.subscriberNumber '7'

7210832

Photography.aperture

f/18

Photography.brand

Ricoh

Photography.camera

Canon EOS 5D Mark III

Photography.genre

Transportation

Photography.imageTag

theater

Photography.iso

25600

Photography.lens

300mm/2.8

Photography.shutter

8000

Photography.term

b/w

Pokemon.location

Rustboro City

Pokemon.name

Wigglytuff

PrincessBride.character

Miracle Max

PrincessBride.quote

Are you coming down into the pit? Westly’s got his strength back, I’m starting him on the machine tonight.

ProgrammingLanguage.creator

Ole-Johan Dahl

ProgrammingLanguage.name

Reason

ResidentEvil.biologicalAgent

t-Abyss prototype vaccine

ResidentEvil.character

Lindsay

ResidentEvil.creature

Whopper

ResidentEvil.equipment

Sword of Paracelsus

ResidentEvil.location

Tenement - Bin Street

Restaurant.description

Our mission has been to help people achieve their health and wellness goals. though weve changed over the years, our values have remained the same.

Restaurant.name

Fast Gastropub

Restaurant.namePrefix

Orange

Restaurant.nameSuffix

Box

Restaurant.review

The counter is on the left side, and so is the menu. It can get pretty busy with 30 min wait times. I recommend checking the website and see how busy their store is.

Restaurant.type

Greek

RickAndMorty.character

Arthricia

RickAndMorty.location

Dimension C-132

RickAndMorty.quote

It’s fine, everything is fine. Theres an infinite number of realities Morty and in a few dozen of those I got lucky and turned everything back to normal.

Robin.quote

Holy Shamrocks

RockBand.name

Jethro Tull

RuPaulDragRace.queen

Alexis Michelle

RuPaulDragRace.quote

Now, let the music play!

Science.bosons

Z boson

Science.element

Uranium

Science.elementSymbol

Og

Science.leptons

electron neutrino

Science.quark

bottom

Science.scientist

Albert Einstein

Science.tool

Mastersizer

Seinfeld.business

Brandt-Leland

Seinfeld.character

Estelle Costanza

Seinfeld.quote

I’ve driven women to lesbianism before, but never a mental institution.

Shakespeare.asYouLikeItQuote

True is it that we have seen better days.

Shakespeare.hamletQuote

The play 's the thing wherein I’ll catch the conscience of the king.

Shakespeare.kingRichardIIIQuote

Off with his head!

Shakespeare.romeoAndJulietQuote

For you and I are past our dancing days.

Simpsons.character

Lisa Simpson

Simpsons.location

Evergreen Terrace

Simpsons.quote

Son, if you really want something in this life, you have to work for it. Now quiet! They’re about to announce the lottery numbers.

Sip.bodyBytes

[B@510e260d

Sip.bodyString

v=0
o=Haywood 503aa682-86d3-4d28-ac05-de7e549f2d5c IN IP4 dicki.net
s=-
c=IN IP4 172.220.199.66
t=0 0
m=audio 48148 RTP/AVP 0
a=rtpmap:0 PCMU/8000

Sip.clientErrorResponseCode

403

Sip.clientErrorResponsePhrase

Request-URI Too Long

Sip.contentType

application/xml

Sip.globalErrorResponseCode

604

Sip.globalErrorResponsePhrase

Not Acceptable

Sip.messagingPort

2128

Sip.method

BYE

Sip.nameAddress

<sip:Solomon@59.227.187.210:3139>

Sip.provisionalResponseCode

180

Sip.provisionalResponsePhrase

Ringing

Sip.redirectResponseCode

302

Sip.redirectResponsePhrase

Moved Permanently

Sip.rtpPort

40252

Sip.serverErrorResponseCode

504

Sip.serverErrorResponsePhrase

Message Too Large

Sip.successResponseCode

200

Sip.successResponsePhrase

OK

Size.adjective

jumbo

SlackEmoji.activity

:roller_coaster:

SlackEmoji.celebration

:love_letter:

SlackEmoji.custom

:neckbeard:

SlackEmoji.emoji

:game_die:

SlackEmoji.foodAndDrink

:sweet_potato:

SlackEmoji.nature

:dragon:

SlackEmoji.objectsAndSymbols

:clock1030:

SlackEmoji.people

:dancers:

SlackEmoji.travelAndPlaces

:busstop:

SoulKnight.bosses

Floating Laser UFO

SoulKnight.buffs

Sucking blood

SoulKnight.characters

Assassin

SoulKnight.enemies

Manned Mecha Guardian(Cannon)

SoulKnight.statues

Knight

SoulKnight.weapons

Royal Knight’s Short Sword

Space.agency

Japan Aerospace Exploration Agency

Space.agencyAbbreviation

ROSCOSMOS

Space.company

Rocket Lab

Space.constellation

Virgo

Space.distanceMeasurement

87AU

Space.galaxy

Centaurus A

Space.meteorite

Eagle Station

Space.moon

Iapetus

Space.nasaSpaceCraft

Gemini

Space.nebula

Bodes Nebula

Space.planet

Jupiter

Space.star

Polaris

Space.starCluster

Omega Centauri

StarCraft.building

Engineering Bay

StarCraft.character

Ariel Hanson

StarCraft.planet

Tarsonis

StarCraft.unit

Hydralisk

StarTrek.character

Chakotay

StarTrek.klingon

qa' wIje’meH maSuv

StarTrek.location

Cardassia

StarTrek.species

Q

StarTrek.villain

Ru’afo

StarWars.alternateCharacterSpelling

caedus

StarWars.callSign

Gold 7

StarWars.character

Leia Organa

StarWars.droids

Buzz Droid

StarWars.planets

Felucia

StarWars.quotes

I won’t have you question my methods.

StarWars.species

Wookiee

StarWars.vehicles

Resistance Ski Speeder

StarWars.wookieWords

ma

Stock.nsdqSymbol

ROIC

Stock.nyseSymbol

LZB

Subscription.paymentMethods

Debit card

Subscription.paymentTerms

Payment in advance

Subscription.plans

Student

Subscription.statuses

Idle

Subscription.subscriptionTerms

Quinquennal

SuperMario.characters

Boom Boom

SuperMario.games

Paper Mario

SuperMario.locations

Fossil Falls

Superhero.descriptor

Warlock

Superhero.name

Shriek Knight

Superhero.power

Intelligence

Superhero.prefix

Red

Superhero.suffix

XI

Tea.type

Black

Tea.variety

Alishan

Team.creature

enchanters

Team.name

Connecticut gnomes

Team.sport

oil wrestling

Team.state

North Dakota

TheItCrowd.actors

Frances Barber

TheItCrowd.characters

Maurice Moss

TheItCrowd.emails

daniel.carey@reynholm.test

TheItCrowd.quotes

I used to work as a waiter. If anyone was ever rude to me, I used to carry their food around in my trousers.

Touhou.characterFirstName

Konohana-Sakuyahime

Touhou.characterLastName

Prismriver

Touhou.characterName

Keiki Haniyashushin

Touhou.gameName

Phantasmagoria of Dim. Dream

Touhou.trackName

The Mystery in Your Town

Tron.alternateCharacterSpelling

laura baines

Tron.alternateCharacterSpelling 'ALAN_BRADLEY'

alan

Tron.character

bit

Tron.character 'OTHER'

bit

Tron.game

Kraz-Bot

Tron.location

Real World

Tron.quote

Yes, sir.

Tron.quote 'ALAN_BRADLEY'

The best programmer ENCOM ever had, and he ends up playing Space Cowboy in some back room.

Tron.tagline

A world inside the computer where man has never been before. Never before now.

Tron.vehicle

Light Cycle

TwinPeaks.character

Donna Hayward

TwinPeaks.location

Black Lake

TwinPeaks.quote

You know, this is — excuse me — a damn fine cup of coffee!

Twitter.twitterId '7'

0481750

Twitter.userId

15000039

Twitter.userName

Konklux

University.name

Northern Minnesota Institute

University.prefix

East

University.suffix

University

Vehicle.carOptions

[MP3 (Single Disc), MP3 (Multi Disc), Keyless Entry, Alarm, A/C: Rear, Power Seats]

Vehicle.carOptions '5' '10'

[Power Seats, Alloy Wheels, Tow Package, Cassette Player, AM/FM Stereo, A/C: Rear]

Vehicle.carType

Regular Cab Pickup

Vehicle.color

Green

Vehicle.doors

1

Vehicle.driveType

FWD

Vehicle.engine

6 Cylinder Engine

Vehicle.fuelType

Compressed Natural Gas

Vehicle.licensePlate

eaz-0656

Vehicle.licensePlate 'MA'

405·NEC

Vehicle.make

Ford

Vehicle.makeAndModel

Chevy Camero

Vehicle.manufacturer

BYD

Vehicle.model

Rogue

Vehicle.model 'Audi'

A4

Vehicle.standardSpecs

[Rear child seat tether anchors (LATCH), Scratch-resistant paint clearcoating, 6.5" touch screen display, XM satellite radio receiver -inc: 90 day trial subscription, Pwr accessory delay, Front/rear aluminum multi-link double joint suspension w/coil springs, Rear bench seat -inc: (3) adjustable headrests, Pwr windows -inc: 1-touch open/close, Battery saver]

Vehicle.standardSpecs '5' '10'

[Acoustic control induction system (ACIS), Carpeted floor & cargo area, Center console, Overhead console, Sentry Key theft deterrent system, Foldable front door storage pockets, Tachometer, 6.5" touch screen display, Water-repellent windshield & front door glass]

Vehicle.style

XL

Vehicle.transmission

CVT

Vehicle.vin

PPT6PPTLMCEJ52531

Verb.base

chat

Verb.ingForm

glittering

Verb.past

trod

Verb.pastParticiple

abashed

Verb.simplePresent

encourages

Volleyball.coach

Dave Shoji

Volleyball.formation

6-2

Volleyball.player

Masae Kasai

Volleyball.position

Defensive Specialist

Volleyball.team

SV Bayer Wuppertal

Weather.description

Clear skies

Weather.temperatureCelsius

34°C

Weather.temperatureCelsius '5' '10'

5°C

Weather.temperatureFahrenheit

20°F

Weather.temperatureFahrenheit '5' '10'

6°F

Witcher.book

Time of Contempt

Witcher.character

Albrich

Witcher.location

Darn Rowan

Witcher.monster

Archespore

Witcher.potion

Healing brew

Witcher.quote

I’ll stick me boot so far up yer arse your tongue’ll taste like wench twat

Witcher.school

Griffin

Witcher.sign

Axii

Witcher.witcher

Coën

Yoda.quote

Through the Force, things you will see. Other places. The future - the past. Old friends long gone.

Zelda.character

Gongoron

Zelda.game

Twilight Princess

Let’s see the structure of the expression for the following example:

#{generate(Internet.password '5', '10', 'true')}
#{generate                                       (1)
          (Internet                              (2)
                   .password                     (3)
                             '5',                (4)
                                  '10',          (4)
                                        'true')} (4)
1 Generate expression itself.
2 Data provider from the list. In this case - Internet. Click on its name to see the methods it contains.
3 One of the available methods within Internet data provider - password. There are multiple choices, we picked the fourth one.
4 Available parameters for the chosen method.

There are three of them:

  • int minimumLength - minimum number of symbols;

  • int maximumLength - maximum number of symbols;

  • boolean includeUppercase - true or false for Uppercase usage;

In this way we created an expression that generates a password from 5 to 10 characters length including uppercase letters.
Possible output is 51gVj5aLZY

letterify

Replaces ? symbols with latin letters.

#{generate(letterify '$input', '$isUpperCase')}
  • $input - any string containing ? symbols to be replaced with letters

  • $isUpperCase - boolean, set it to true for uppercase option

Table 1. letterify examples
Expression Result
#{generate(letterify 'test????test')}

testnjmytest

#{generate(letterify 'test????test', 'true')}

testXQBMtest

numerify

Replaces # symbols with numbers.

#{generate(numerify '$input')}
  • $input - any string containing # symbols to be replaced with numbers

Table 2. numerify example
Expression Result
#{generate(numerify 'test####test')}

test5862test

bothify

Combination of letterify and numerify.

#{generate(bothify '$input')}
  • $input - any string containing # and ? symbols to be replaced with numbers and letters accordingly

Table 3. bothify example
Expression Result
#{generate(bothify 'test#?#?#?#test')}

test2o7v0g9test

templatify

Replaces symbol mentioned in the second argument with one of the symbols mentioned after it.

#{generate(templatify '$input', '$whatToReplace', '$replacement1', '$replacement2', '$replacement3')}
  • $input - any string to process

  • $whatToReplace - part of the string to be replaced

  • $replacement - replacement to use. Possible to use multiple options

Table 4. templatify example
Expression Result
#{generate(templatify 'VIVIDUS', 'I', 'X', 'P')}`

VPVPDUS

VXVPDUS

VPVXDUS

VXVXDUS

examplify

Replaces symbols by example: uppercase with uppercase, digit with digit, lowercase with lowercase.

#{generate(examplify '$input')}
  • $input - any string to process

Table 5. examplify example
Expression Result
#{generate(examplify 'V1V1DUs')}

R9Q7VTq

regexify

Allows generating output based on regular expression.

#{generate(regexify '$regularExpression')}
  • $regularExpression - regular expression that describes desired output

Table 6. regexify example
Expression Result
#{generate(regexify '\d{3}\w{1}')}

409Y

#{generate(regexify '[A-Z]{3}[a-z]{4}[2-8]{5}')}

PQUlxdq66436

options

Returns any of provided items.

#{generate(options.option '$item1', '$item2', '$item3')}
  • $item - option to choose from

Table 7. options example
Expression Result
#{generate(options.option 'V','I','V','I','D','U','S')}

S

generate JSON

Generates JSON based on key-value pairs input.

#{generate(json '$key1', '$value1', '$key2', '$value2')}
Table 8. generate JSON example
Expression Result
#{generate(json 'first_name','Bob','last_name','Dylan','profession','singer')}
{"first_name": "Bob", "last_name": "Dylan", "profession": "singer"}

generate CSV

Generates comma-separated values based on input.

#{generate(csv, '$rowsNumber' '$columnName1', '$value1', '$columnName2', '$value2')}
  • $rowsNumber - number of rows to fill in

  • $columnName1 - name of the first column

  • $value1 - data to enter the first column

  • $columnName2 - name of the second column

  • $value2 - data to enter the second column

Table 9. generate CSV example
Expression Result
#{generate(csv '3', 'first_name','Bob','last_name','Dylan')}
"first_name","last_name"
"Bob","Dylan"
"Bob","Dylan"
"Bob","Dylan"

randomInt

Generates a random integer value between the specified origin (minInclusive) and the specified bound (maxInclusive).

#{randomInt($minInclusive, $maxInclusive)}
  • $minInclusive - the least value

  • $maxInclusive - the upper bound

Table 10. Examples of the expressions generating random integer value
Expression Result

#{randomInt(1, 10)}

An integer between 1 and 10

#{randomInt(100, 999)}

An integer between 100 and 999

#{randomInt(-5, 5)}

An integer between -5 and 5

#{randomInt(-5, -2)}

An integer between -5 and -2

#{randomInt(1, 1)}

1

Math calculations

round

Rounds a number with an approximate value based on specific rounding definitions.

#{round($value, $maxFractionDigits, $roundingMode)}
  • $value - any number to be processed

  • $maxFractionDigits - maximum number of digits after the decimal separator

  • $roundingMode - specifies a rounding behavior for numerical operations (more information here):

    Rouding Mode Readable Description

    UP

    up

    Rounds away from zero.

    DOWN

    down

    Rounds towards zero.

    CEILING

    ceiling

    Rounds towards positive infinity.

    FLOOR

    floor

    Rounds towards negative infinity.

    HALF_UP

    half up

    Rounds towards "nearest neighbor" unless both neighbors are equidistant, in which case round up.

    HALF_DOWN

    half down

    Rounds towards "nearest neighbor" unless both neighbors are equidistant, in which case round down.

    HALF_EVEN

    half even

    Rounds towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor.

    UNNECESSARY

    unnecessary

    Asserts that the requested operation has an exact result, hence no rounding is necessary.

Table 11. Examples of rounding operations with different parameters
Expression Result

#{round(5.0)}

5

#{round(-5.9, 0)}

-6

#{round(5.551, 2)}

5.55

#{round(1.4, 0, ceiling)}

2

#{round(-1.4, 0, floor)}

-2

#{round(-5.5555, 3, half up)}

-5.556

#{round(-5.555, 2, half down)}

-5.55

#{round(-5.5, 0, half even)}

-6

#{round(-1.1, 2, unnecessary)}

-1.1

String manipulations

replaceFirstByRegExp / replaceAllByRegExp

Replaces the first / every substring of the input that matches the regular expression with the given replacement string.

Online tools like RegexPlanet or Regex101 can be used to test and debug regular expressions

#{replaceFirstByRegExp($regularExpression, $replacement, $input)}
#{replaceAllByRegExp($regularExpression, $replacement, $input)}
  • $regularExpression - the regular expression to match substring(s)

  • $replacement - the replacement string, it may contain references to captured substrings, e.g. $1 is a reference to the first group

  • $input - any string to be processed

The expression parameters containing commas or empty values must be surrounded with triple quotes: """
Description Expression Result

Extract ID from the string

#{replaceFirstByRegExp(product-(\d+), $1, product-86)}

86

Extract ID and build new string with it

#{replaceFirstByRegExp(/user/(\d+), author/$1, /user/21)}

author/21

Extract password from the string with comma

#{replaceFirstByRegExp(.*new password is (.*), $1, """Updated, new password is qwe123""")}

qwe123

Replace whitespaces with dashes

#{replaceAllByRegExp(\s, -, convert spaces to dashes)}

convert-spaces-to-dashes

Remove all numbers from the string

#{replaceAllByRegExp(\d, """""", a1b2c3d)}

abcd

toLowerCase

Converts an input string to lower case.

#{toLowerCase($input)}
  • $input - any string to be converted lower case

Table 12. Examples of the expressions converting strings to lower case
Expression Result

#{toLowerCase(aBc)}

abc

toUpperCase

Converts an input string to upper case.

#{toUpperCase($input)}
  • $input - any string to be converted upper case

Table 13. Examples of the expressions converting strings to upper case
Expression Result

#{toUpperCase(aBc)}

ABC

capitalizeFirstWord

Capitalizes an input string, changing the first character to title case. No other characters are changed.

#{capitalizeFirstWord($input)}
  • $input - any string to be capitalized

Table 14. Examples of the expressions capitalizing strings
Expression Result

#{capitalizeFirstWord(aBc)}

ABc

capitalizeWords

Capitalizes all the whitespace separated words in the input string. Only the first character of each word is changed.

#{capitalizeWords($input)}
  • $input - any string to be capitalized

Table 15. Examples of the expressions capitalizing words in the string
Expression Result

#{capitalizeWords(aBc dEf)}

ABc DEf

capitalizeWordsFully

Converts all the whitespace separated words in a String into capitalized words, that is each word is made up of a titlecase character and then a series of lowercase characters.

#{capitalizeWordsFully($input)}
  • $input - any string to be capitalized

Table 16. Examples of the expressions capitalizing strings
Expression Result

#{capitalizeWordsFully(aBc dEf)}

Abc Def

uncapitalizeFirstWord

Uncapitalizes an input string, changing the first character to title case. No other characters are changed.

#{uncapitalizeFirstWord($input)}
  • $input - any string to be capitalized

Table 17. Examples of the expressions capitalizing strings
Expression Result

#{uncapitalizeFirstWord(ABc)}

aBc

uncapitalizeWords

Uncapitalizes all the whitespace separated words in the input string. Only the first character of each word is changed.

#{uncapitalizeWords($input)}
  • $input - any string to be capitalized

Table 18. Examples of the expressions capitalizing words in the string
Expression Result

#{uncapitalizeWords(ABc DEf)}

aBc eEf

trim

Trims an input string (removes control characters (chars with code less than or equal to 32) from both ends).

#{trim($input)}
  • $input - any string to be trimmed

Table 19. Examples of the expressions trimming strings
Expression Result

#{trim( a b c )}

a b c

substringBefore

Gets the substring before the first occurrence of a separator. The separator is not included in the result.

#{substringBefore($input, $separator)}
  • $input - any string to get a substring from

  • $separator - the string to search for

Since the arguments of the expression are comma-separated, meaningful commas (in $input or/and $separator) must be escaped with \
Table 20. Examples of the expressions getting the substring
Expression Result

#{substringBefore(, a)}

#{substringBefore(abc, a)}

#{substringBefore(abcba, b)}

a

#{substringBefore(abcba,b)}

a

#{substringBefore(abc, c)}

ab

#{substringBefore(abc, d)}

abc

#{substringBefore(abc, )}

#{substringBefore(a\,b\,c\,b\,a, c)}

a,b,

substringAfter

Gets the substring after the first occurrence of a separator. The separator is not included in the result.

#{substringAfter($input, $separator)}
  • $input - any string to get a substring from

  • $separator - the string to search for

Since the arguments of the expression are comma-separated, meaningful commas (in $input or/and $separator) must be escaped with \
Table 21. Examples of the expressions getting the substring
Expression Result

#{substringAfter(, a)}

#{substringAfter(abc, a)}

bc

#{substringAfter(abcba, b)}

cba

#{substringAfter(abcba,b)}

cba

#{substringAfter(abc, c)}

#{substringAfter(abc, d)}

#{substringAfter(abc, )}

abc

#{substringAfter(a\,b\,c\,b\,a, c)}

,b,a

encodeToBase64

Encode the input string to Base64 format

#{encodeToBase64($input)}
  • $input - any string to be encoded to Base64 format

Table 22. Examples of the expressions encoding to Base64
Expression Result

#{encodeToBase64(vividus)}

dml2aWR1cw==

decodeFromBase64

Decodes the input string from Base64 format to the regular string

#{decodeFromBase64($input)}
  • $input - Base64 string to decode

Table 23. Examples of the expressions decoding Base64
Expression Result

#{decodeFromBase64(dml2aWR1cw==)}

vividus

toBase64Gzip

Compress the input string to GZip and encode compressed bytes to Base64 format

#{toBase64Gzip($input)}
  • $input - any string to be compressed and encoded

Table 24. Examples of the expressions compressing and encoding to Base64 GZip
Expression Result

#{toBase64Gzip(vividus)}

H4sIAAAAAAAAACvLLMtMKS0GANIHCdkHAAAA

escapeHTML

Escapes reserved characters in HTML string

#{escapeHTML($input)}
  • $input - any string to be escaped

Table 25. Escape HTML string
Expression Result

#{escapeHTML(M&Ms)}

M&Ms

escapeJSON

Escapes reserved JSON characters: converts any string into one that’s properly escaped for inclusion in JSON as a value.

#{escapeJSON($input)}
  • $input - any string to be escaped

Table 26. Escape JSON string
Expression Result

#{escapeJSON("abc"+"xyz")}

\"abc\"+\"xyz\"

quoteRegExp

Quotes the input literal so that metacharacters or escape sequences in the input sequence will be given no special meaning in regular expression.

#{quoteRegExp($input)}
  • $input - any string to be quoted

Table 27. Quote regular expression
Expression Result

#{quoteRegExp(Some(Value))}

\QSome(Value)\E

Example 1. Verify the data
Then `${frontEndData}` matches `#{quorePattern(${backEndData})}.*`

Hash calculations

calculateHash

Calculates the hash using the specified hashing algorithm

#{calculateHash($algorithm, $input)}
Table 28. Example of hash calculating for string using MD5
Expression Result

#{calculateHash(MD5, vividus)}

0a05ba6064ae7e5d6ee9818f85b666ad

calculateFileHash

Calculates the resource or file hash using the specified hashing algorithm

#{calculateFileHash($algorithm, $resourceNameOrFilePath)}
Table 29. Example of hash calculating for file using SHA-1
Expression Result

#{calculateFileHash(SHA-1, data/file.txt)}

0a05ba6064ae7e5d6ee9818f85b666ad

Resources

loadResource

Loads the resource by its name and replaces the expression with the content of the resource.

#{loadResource($resourceName)}
  • $resourceName - the name of the resource to load

Example 2. Load data from the project resource
Given I initialize scenario variable `my-data` with value `#{loadResource(/data/body.txt)}`

loadBinaryResource

Loads the resource by its name as bytes. It could be useful for the steps that accepting raw binary data.

#{loadBinaryResource($resourceName)}
  • $resourceName - the name of the resource to load

Example 3. Load data from the project resource as bytes
When I mock HTTP responses with request URL which CONTAINS `frames.html` using response code `200`, content `#{loadBinaryResource(page.html)}` and headers:
|name        |value    |
|Content-Type|text/html|

resourceToBase64

Finds the resource by its name and replaces the expression with the content of the resource in Base64 format.

#{resourceToBase64($resourceName)}
  • $resourceName - the name of the resource to load

Example 4. Load data as Base64 from the project resource
Given I initialize scenario variable `my-data` with value `#{resourceToBase64(/data/body.txt)}`

Script evaluation

eval

Evaluates JEXL script and converts result to a string.

#{eval($script)}
  • $script - valid JEXL script to be evaluated

  • Any Vividus variable is accessible in the JEXL script by its name

Example 5. Evaluate JEXL script
Scenario: Verify eval expression
Then `#{<expression>}` is = `<expected>`
Examples:
|expected          |expression                                                        |
|null              |eval(null)                                                        |
|28                |eval(16 + 2 * 6)                                                  |
|10                |eval(math:abs(-10))                                               |
|here              |eval(stringUtils:substringAfterLast('namescpaces are %here', '%'))|
|108               |eval((16 + 2) * 6)                                                |
|-6                |eval(100 / 5 - 16 * 2 + 6)                                        |
|true              |eval(`string\n1` == `string\n1`)                                  |
|false             |eval(`string\n1` == `string1`)                                    |
|I Am FINE         |eval(wordUtils:capitalize('i am FINE'))                           |
|i am fINE         |eval(wordUtils:uncapitalize('I Am FINE'))                         |
|tHE DOG HAS A bone|eval(wordUtils:swapCase('The dog has a BONE'))                    |
|FRD               |eval(wordUtils:initials('Fus Ro Dah'))                            |

evalGroovy

Evaluates groovy script and converts result to a string.

#{evalGroovy($script)}
  • $script - valid Groovy script to be evaluated

  • Any Vividus variable is accessible in the groovy script by its name

  • One could use any of online groovy evaluators to verify the script. For example see: Evaluator

Example 6. Evaluate Groovy script
When I initialize Scenario variable `listOfMaps` with values:
|key|
|2  |
|1  |
|3  |
Then `1-2-3` is = `#{evalGroovy(return listOfMaps.collect{it['key']}.sort().join('-'))}`

Null value

null

Represents null (a.k.a. NULL). In most case null means no value (see NULL in SQL and null in JSON).

#{null}
Null expression can only be evaluated separately. Strings or other expressions with the nested null expression will be completely ignored and not executed.
Example 7. Validation of JSON element with null value
Given I initialize scenario variable `json` with value `
{
    "persons": {
        "nemo": null
    }
}
`
Then JSON element value from `${json}` by JSON path `$.persons.nemo` is equal to `#{null}`