Could you kindly help me to get some pointers regarding. - How to read input data for a test case from a DB .
My scenario is like the following .
We have a copy of production DB . This is for Payments . Now we need to take a major part of this data as test data and test the software .
Could you please provide pointers about how to do this .
There are several options, it all depends on what you want/need/have access to do. Here are some common approaches (not a comprehensive list):
Extract through the front end - many applications have the ability to search the database based on a criteria, the resulting list is usually presented as a table or list that can be exported/printed to Excel or CSV or similar. you can simply use this file as your data source.