Creating a Local Data Repository in a Test Case

A Local Data Repository (LDR) lets you parameterize a test case enabling you to execute the same test case with varying inputs, expanding the coverage from a single test value to multiple test values. LDR is like a spreadsheet that stores all the Static value(s) provided initially in the Test Step(s). 

For clarity, let’s consider this example: When testing a website's product-adding feature, the LDR can store diverse datasets, including product name, price, and quantity. This enables the test case to simulate adding various products with different input combinations. 

To comprehend the creation of a local data repository in a test case, let's proceed with the steps below. 

Select and click the Continuous Test Automation tab from the launchpad. 




On your created Test Case, follow the below steps for linking LDR.




Click on the dropdown menu of Data Repository Mode and select Local Data Repository. 




Click on the Manage Local Data Repository icon. 




On the pop-up window, click on the + button to add the Local Data Repository column. 





Click on the Data Icon to open the local data repository file. 




Click on the enable editing data button. 





Click on Add Dataset to add rows. 




Add product name and unit price. For example, Mobile as Product and price as 30. 




Once the dataset has been added click on the Save button. 




During test case execution, avoid repeating the entire flow five times for creating different products. Instead, use a "Group By" approach to repeat only specific steps, such as product creation and price addition. 


To achieve this, select the steps you wish to repeat by clicking the first step, holding down the shift key on your keyboard clicking till the step you wish to group. 

After selecting the steps, right-click and choose "Create Group." 




A line will appear to indicate the grouping of the respective steps in the test case. 





Save the test case, then click "Run" to Execute. 

You now know how LDR feature helps you to run test cases with multiple datasets. Explore more Opkey features by clicking Here 















Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article