Test Data are the values used during the test case development. Qualitia comes with a built-in Test Data explorer for adding and updating test data.
When developing test cases in Qualitia, you can provide data in the following two waysA test case contains the following two types of test data:
Static Data
Parameterized Data
Static Data
As the name suggests, static static data has denotes a single static value used when executing test cases. Static data is given in the parameter section against each action in Qualitia. This data should for a parameter of an action. The static data must be enclosed in double-quotes (""). For example, if a step contains an object is as username and Action is as Set, then under the Parameter column, type as enter “John”.
Whenever you change the static data for a step of a task, the change is reflected for all instances of this task across all the in all the associated test cases.
Parameterized Data
Qualitia gives you the provision to use You can define multiple sets of data when executing test cases.It allows multiple iterations of a single Test case or multiple iterations of a single task to execute a test case in multiple iterations using the Test Data explorer. Also, you can have multiple task iterations within a test case iteration.
The Test Data feature ensures effective time management and maximum test coverage with minimum updates to the test case. In a Test Data, a TC iteration flows from left to right, whereas a Task Iteration within a TC iteration flows from top to bottom.
Qualitia Test Data Explorer can be used to add or update test data. When you click the Test Data button, from the Test Cases Editor screen, Qualitia opens a spreadsheet which allows adding or updating Test Data to use while executing the test case.
...
Info |
---|
Test Data explorer parameterizes the parameters of the test case and task steps only. You can parameterize the locator values of objects using the Editing Object screen. |
To parameterize the test data for a test case:
- Open the test case in which you want to add test data or edit its existing test data. For instructions on how to open a test case, refer to Editing a Test Case.
- In the test case, under the Parameter columns, for the data you want to parameterize, replace the existing values with a unique value without enclosing in double-quotes.
Click the Test Data button present in the right pane.
The to open the Test Data Explorer opensexplorer.- Click (
Click the Edit Data button
) to start adding or editing values in the Test Data Explorer. The whole test case is locked for that user.The following values are displayed in the second row..
The test case and test data are locked for other users. To add a test case iteration, under the following columns, enter the following details:
TC Iteration: Enter
a number for every
test case Iteration.
Note: After saving the test data, the values in TC Iteration are automatically numbered from 1, even if you provide any number in TC Iteration.DataSetTag: Enter a unique value for a data set test case iteration. DataSetTag simplifies finding a test case iteration in the test case execution report,
Selection: Enter True to enable the execution for the test case iteration or enter False
DataSetTag: Enter a label for identifying the dataset in the test case execution report. Entering data in this column is optional.
From the third row, enter the values in their respective formats.The first row displays the different Tasks highlighted in grey color. Each Task covers its parameters in the second row.
- If you want a Task Iteration, insert a row without specifying the TC Iteration number. Enter the values for parameters in the task iteration. Add more Tasks iterations by inserting new rows.
- Once all the data is added or edited, click the Save button located in the Test Editor screen.
Info |
---|
|
Troubleshooting in Parameterized Test Data Validation
The following are three reasons for not updating test data in Test Data explorer or uploading test data through excel file.
Blank Data
Task Name Mismatch
Parameters Mismatch
In the Test Data explorer, the missing or wrong values are highlighted in red. For uploading through the excel file, you can view in the TestDataErrorlog.txt.
Blank Data
...
to disable the execution for the test case iteration. You must enable at least one test case iteration to execute the test case,
Enter the values in their relevant formats for each parameterized data.
Info - Enter $NULL$ in the cell where you want to have a blank value.
You can move and resize the Test Data explorer.
You can import test data for a test case from an excel file and also export it as an excel file.
- If the test case contains tasks, the first row displays the task names. Each task covers its associated parameterized data in the second row.
To add a task iteration within a test case iteration, do the following in the order listed:- Insert a blank row after the test case iteration.
Skip the TC Iteration number, and enter the associated Selection and DataSetTag.
Enter the values in their associated format for the task parameters only.
Info - The values added for parameters of a task are not duplicated in the same tasks that are present in other test cases.
- You do not need to enter the values for the parameters that are not associated with task iterations as they are not considered in the task iteration executions.
After adding or editing all the required data, click the Save button on the Test Case Editor screen.
Info After saving a test data, to edit test data, click the Edit button to unlock the test data again.
- Click the Test Data button present in the test case editor screen to close the Test Data explorer.
You can now Dry run the test case to verify whether the test data meets the test requirements. For more information, refer to Dry Run a Test Case.
Troubleshooting the Issues in Parameterizing Test Data
The following table provides information to troubleshoot the issues you may face while parameterizing the test data.
Info |
---|
If you have entered any data incorrectly in the Test Data explorer or in the imported excel file, a text file called TestDataErrorLog.txt is generated displaying the incorrect data. Save this file on your computer. |
Error Message | Reason | Solution |
---|---|---|
Some cells are left blank. Enter the data in the highlighted fields |
...
...
Some of the data |
...
cells are blank | Enter the values in the blank cells. If you |
...
Task Name Mismatch
...
want some values as blank, enter $Null$ in the associated cells. |
Mismatch in the task name. Enter the correct task name |
...
...
Some task names |
...
Parameters Mismatch
...
do not match | Do the following:
|
Some Parameters names or their order have changed. Correct the parameter names and arrange them in the original order. |
...
Some parameter names do not match | The Test Data explorer highlights the missing or wrong parameters in red color. Correct the sequence of parameters or their names. |
DataSetTag
Qualitia gives you a provision to tag the test case iterations with keywords based on the test data set you to provide for test case execution. These tags enable you to differentiate test case iterations based on the provided test data. Using this feature, you can easily spot the test case iteration, which is failed or has defects just by looking at the suite execution report. Identifying the area where a tester needs to work becomes easy and handy when you add relevant tags to the test case iterations.
Where to add these tags?
Qualitia users can add these tags at test case iteration level from the test data screen.
Providing these tags is optional.
Suite Execution Report
The tags which you add to the test case iterations are displayed in the test case execution report next to the iteration number.
When executing such test cases, if any of the iterations fails or has defects, it is easy to identify which set of data has issues from the whole set of iterations that are causing failures or adding defects.
These tags are displayed against the test case name in the suite execution report.
If you have imported test data using an excel file, you can view the missing and wrong values in the TestDataErrorlog.txt. |