How to reference data file in sst test code

Asked by Ayo

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
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Solved by:
Ayo
Solved:
Last query:
Last reply:
Revision history for this message
Ayo (k-akolay1) said :
#1

Just realized that both .csv and .py files should be saved in same location.
 Cheers

Revision history for this message
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.

Revision history for this message
Ayo (k-akolay1) said :
#3

Thanks