I'm building Mobile apps test automation using Java, Cucumber-JVM, Appium.
For various scenarios, in order to make scenario verbose, we have added following line at the start of scenario/scenario outline / background of bdd feature files. for example:
Given user with ios device "iPhone SE Simulator"
And I select a book product
And I select layout type "Square"
.. Another example
Given user with ios device "iPhone 7"
And I select a book product
And I select layout type "Square"
.. Another example
Given user with ios device "iPhone 6"
And I select a book product
And I select layout type "Tav"
Now, we have got many devices, so what will be the best way to reuse the step. I would like to avoid using Scenario Outline & parameterize on type?
Also, we're okay for slight repetition/duplication of feature files, if it helps to easily build test suite.
Kindly suggest
Thanks