Snooz82 / robotframework-datadriver

Library to provide Data-Driven testing with CSV tables to Robot Framework
Apache License 2.0
131 stars 37 forks source link

How can we read data from multiple sheets in a single test suite file? #28

Closed sashantkhatri closed 4 years ago

sashantkhatri commented 4 years ago

Scenario : In a single test case file, If we have two test cases and we have maintained test data for these two test cases in two separate sheets of same .xlsx file and we want to use sheet-1 in test-case-1 and sheet-2 in test-case2.

Question : Is it possible using data-driver?

Snooz82 commented 4 years ago

No that is not possible.

DataDriver requires only one TestTemplate and only one DataSource per Test Suite. You can use the same file in multiple *.robot files for different test, but not in one file.

Cheers