Cucumber Scenario | Appium Forum
N
Naren Posted on 27/07/2019

Feature:  Create 2 new lists and add the item to it

Scenario outline:  Create a new list and add the item to it

Given  As a user I landed on home screen

When I click on create list as  “Shopping”

And Click on  Save button

Then I can add the items to List “<Items>”

 

Examples: |Items|

                    |Vegs|

                    |Food|

 

Scenario Outline:  Create 2 new lists and add the item to it

Given  As a user I landed on home screen

When I click on create list as  “Shopping2 “

And Click on  Save button

Then I can add the items to List “<Items>”

Examples: |Items|

                    |Vegs|

                    |Food|

                 

 

 

 

 

 

 

 

 

Is there any chance to I can write the Feature file as below to get same result as above mentioned or following scenario outline is correct to add Items to individual List.

Scenario Outline :  Create 2 new lists and add the item to it

Given  As a user I landed on home screen

When I click on create list as  “<List> “

Examples: |List|

                 |Shopping|

                |Shopping2|

And Click on  Save button

Then I can add the items to List “<Items>”

 

Examples: |Items|

                    |Vegs|

                    |Food|

 

 

 

 

 

 

 


N
Naren Replied on 27/07/2019

Could you please let me know is which is the best method to write the scenarios in the feature file.