Introduction
Variables help keep your tests flexible and easy to update. They stop you from repeating the same fixed values everywhere.
When you need to reuse the same value in many places in your tests.
When the value might change, like a URL or an API key.
When you want to run the same test with different data easily.
When you want to avoid mistakes from typing the same value multiple times.
When you want to share values between different requests or tests.