how to create and use CSV file for data-driven testing
Asked by
keyu ruan
There is statement in URL : http://
You may optionally create a data file for data-driven testing. Create a ‘^’ delimited txt data file with the same name as the test, plus the ‘.csv’ extension. This will run a test using each row in the data file (1st row of data file is variable name mapping)
Could you list the detail steps regarding how to use this feature? Cause I did add the file and runner is able to recogonized it. But I do not know how to use the data in the file from code perspective. Could you give a example? Thanks!
But the way, Is there a best practical regarding how to orginize test data like: object id or xpath, test case relate data?
Best Regards,
Keyu Ruan
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- keyu ruan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.