i have a function call readtestdata for this function we have parameters like Tablename, fieldname. for each testcase if i need particular field value i need to call the function if i need one more(different )field value again i need to call the function. But i need to avoid the calling the function again for each testcases.
once i can the call the function all the diffent sheet and different field value should be store in one list of string how i can do it please let me know if you have any code.
if you are using a plan file or a main() function, you can declare a global variable that will store all your values from your database.
Once that is done, you can access this element from anywhere in the code and get exactly what you need.