Is it possible to do data driven testing with external data source #2209
Unanswered
javawithrocky
asked this question in
Q&A Java
Replies: 1 comment
-
Cucumber JVM doesn't support that. Feature files are assumed to be self contained. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am curious if Cucumber JVM allows data driven tests such that data is driven from outside feature file. For example: let's say I want to test a function that sums 2 integers. I want to provide a List of 3 integers (first 2 are input, and 3rd is expected result). These numbers are stored in a database. So I want my feature file to look something like this:
I don't want the data to live in the feature file but be programmatically be plugged in from say a database. Let's say this database table has 3 rows. Then I want to execute above
Scenario
3 times.Is it possible?
Thanks in adance.
Beta Was this translation helpful? Give feedback.
All reactions