Parameterization using Profiles

Parameterize Test Cases Using a Data Profile

Take your testing to the next level by parameterizing test cases with a data profile. Parameterization swaps fixed test inputs for dynamic data, allowing a single test case to run many times with different values—like usernames, passwords, or emails. Instead of hard-coding these values, link them to parameters from a data profile for greater flexibility and efficiency.

Step 1: Click the pencil icon to edit your test case.

Image

Step 2: Locate the Test Data Profile section. Make sure you have a data profile with the fields you want to use, such as username and password.

Image

Step 3: Open the Test Cases section and choose your test case. This is where you’ll link your data profile.

Image

Step 4: Select all the test steps you want to parameterize. Then click Create For Loop.

Image

Step 5: Choose the test data profile and define the range of data you’d like to use (like User 1 to User 3). Click Create.

Image

Step 6: Edit each test step with hard-coded values. Replace these values by selecting Edit, deleting the old value, clicking Parameter, and choosing the relevant parameter such as username.

Image
Image

Step 7: Repeat for other values, such as password. Use Edit and swap in the password parameter.

Image
Image

Step 8: Save your test case updates. Now, during execution, the test will loop through each row in your selected data profile range, running the same steps with different data.

Step 9: Run the parameterized test case. You’ll see the test repeat for each set of user data—logging in with User 1, then User 2, and so on.

Image

Parameterizing your test cases with a data profile makes them flexible, eliminates duplicate tests, and keeps your data easy to manage. Run all rows or any custom range based on what you need. This simple workflow lets a single test case cover many scenarios—saving you time and effort.

Supporting Videoarrow-up-right

Last updated