ganapati_bhat
11 years agoOccasional Contributor
Need help regarding how to get the excel sheet path dynamicaly
Hi,
I am using excel sheet + JScript to read the data for my test cases. While mentioning the excel sheet path, i need to mention the absolute path like D:\Project\Data.xlsx in all my test cases.
If I change my location to C drive , then I need to modify all my test cases because of the path change.
It will be good if someone help me to get the Excel path Dynamically from project root when I execute the test cases.
How to make my test cases independent of path hardcoding?
Please help.
Regards,
Ganapati
I am using excel sheet + JScript to read the data for my test cases. While mentioning the excel sheet path, i need to mention the absolute path like D:\Project\Data.xlsx in all my test cases.
If I change my location to C drive , then I need to modify all my test cases because of the path change.
It will be good if someone help me to get the Excel path Dynamically from project root when I execute the test cases.
How to make my test cases independent of path hardcoding?
Please help.
Regards,
Ganapati