Skip to main content

All Operators

Request Helpers

  • body - Reads parameters from the request payload.
  • queryParam - Reads parameters from the query string of the request.
  • pathParam - Reads parameters from the request path, matched using regular expressions.
  • header - Reads values from the request headers.
  • cookie - Reads cookie values from the request.

Faker Data Helpers

  • faker - Generates realistic dummy data for various data types, entities, lorem ipsum, and more.

Operators

Comparison OperatorsArithmetic OperationsSet OperatorsString & Encoding OperatorsType Checking
eqaddsortlowercaseisNumber
gtsubtractoneOfuppercaseisInteger
ltmultiplysomeOfconcatisDate
ltedividecontains
gtemodulopadStart
floorpadEnd
ceilsplit
roundbase64
toFixedbase64Decode

JSON & Object Manipulation

  • len - Calculates the length of arrays, strings, or numbers.
  • object - Creates a JSON object from a list of key-value pairs.
  • array - Creates a list of items.
  • json - Converts JavaScript objects and arrays to their JSON string representation.
  • jsonParse - Converts a JSON-encoded string into a usable object or array withing the template engine.

JWT Helpers

  • jwtHeader - Extracts the header portion of a JWT token.
  • jwtPayload - Extracts the payload (claims) portion of a JWT token.

Control Flow

Date

Stateful Mocks