Global_Variables

Global Variables

Global Variables allow you to reuse values across APIs within the same project by enclosing them within pound signs (e.g., #variableName#). There are five types of global variables available, offering similar functionality as in API Testing:

Global Variables
  • Custom: You can provide your custom inputs for reuse, such as port numbers or endpoints shared across multiple APIs.

  • Integer / Decimal: Specify minimum and maximum values to generate random numbers within a defined range. For decimal types, set the number of decimal places for precise values.

  • UUID/GUID: Generate random hexadecimal numbers following the 'Globally Unique Identifier' (GUID) pattern for universal resource identification.

  • Email: Define email formats using '?' for alphabets and '#' for numbers. A default email format like ????####@gmail.com is provided.

  • Date: Create date and time formats for generating values. The default format is DD/MM/YYYY. For instance, specifying the format as yyyy/MM/dd HH:mm:ss generates dates like 2020/01/16 03:25:12.

Last updated