Test Data Profiles (Creating & Managing)
Parameterize Test Cases Using a Data Profile
Parameterizing your test cases lets you replace hardcoded values with dynamic, reusable data. Instead of running the same test multiple times with manual changes, link your test to a data profile and have it iterate over each data set for thorough, efficient coverage.
Click the pencil icon to edit your test case.
Go to the test data profile section. View your existing profiles with user account details, such as usernames and passwords.
Select test cases from the navigation.
Open the test case you want to parameterize.
Select all the test steps you want to repeat with different data values.
Click create for loop.
Choose your test data profile. Pick a range for the test (like User 1 to User 3) to define which rows to cycle through.
Click create.
Refresh and check that a for loop now wraps your selected steps.
Step 10: Replace any hardcoded values with data profile parameters:
Click edit on a test step.
Remove the fixed value, select parameter, and pick the right field (e.g., username).
Image
Click update to save it.
Repeat for other inputs (e.g., password):
Click edit.
Choose the parameter (e.g., password).
Image
Click update.
Start your test execution.
As the test runs, it automatically cycles through each entry in the data profile. The same steps repeat for each user—no extra setup needed. You can run tests for all rows or limit the range as needed.
Parameterizing your test case with a data profile makes your automation flexible and easy to maintain. You save time, prevent duplication, and quickly adapt to new data without editing the test steps.
Last updated