Latest News from the Thunders Product Team
🔄 Power Up Your Tests with Static & Dynamic Variables
Shared by Ines
•
No more hardcoding.
Thunder Code now lets you define Static and Dynamic Variables to make your tests cleaner, smarter, and easier to maintain.
#Static Variables (Environment Settings)
Define reusable values like base URLs, usernames, or tokens:
-
Environment Credentials →
[CREDENTIAL_NAME] -
Environment Variables →
[VARIABLE_NAME]
📌 Heads up: Variables are defined per environment — so if you switch environments, make sure the same variables exist there too. Otherwise, your test will fail.
#Dynamic Variables (Per Test Run)
Change at runtime and adapt as your app behaves:
- 🎲 Generated Variables: Use AI to generate random, fresh or patterned data at the start of each run.
- 🔍 Extracted Variables: Capture dynamic values from your app or API during test execution, then reuse them in later steps.
✏️ Reference them in your test steps using square brackets, like [GENERATED_EMAIL] or [ORDER_ID]. Thunder Code will resolve the actual value during the run and show it in your test report.
Released on : 2025-07-22