How to reference data file in sst test code
Asked by
Ayo
on 2012-12-16
Hi All,
I am trying to run a data driven SSt test. Using a separate csv text file for the input data and .py file for the test code, i would like to know how i can/should reference the csv text file as the source of input data within the .py test file.
I would appreciate any information.
Cheers
Ayo
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Ayo
- Solved:
- 2012-12-19
- Last query:
- 2012-12-19
- Last reply:
Ayo (k-akolay1) said : | #1 |
Just realized that both .csv and .py files should be saved in same location.
Cheers
Corey Goldberg (coreygoldberg) said : | #2 |
yes, .csv file should be named like the test file that uses it...
for example, if foo.py and foo.csv are in the same directory, values from foo.csv will be used in foo.py, and one test iteration will be run for each line in the csv data file.
Ayo (k-akolay1) said : | #3 |
Thanks
To post a message you must log in.