You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Serenity, BDD, Java, selenium for web automation. Now I have feature file where it have around 30 or more Scenario and all Scenario I am copy and paste on 100 of feature file. How I can reuse same feature file to all without using Scenario Outline, because if I use Scenario outline then my execution will take time. There is any way is there I can create common feature file and add all 30 or more Scenario and keep on referring to different feature file.
Asking you this question because right now if one step need to add or modify to feature that should reflect to all. So I don't want to modify all feature file.
accounting.feature @Pricecheck
Scenario: Verification of "ACCOUNTING PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
price.feature @Pricecheck
Scenario: Verification of "PRICE PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
tax.feature @Pricecheck
Scenario: Verification of "TAX PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
income.feature @Pricecheck
Scenario: Verification of "INCOME PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using Serenity, BDD, Java, selenium for web automation. Now I have feature file where it have around 30 or more Scenario and all Scenario I am copy and paste on 100 of feature file. How I can reuse same feature file to all without using Scenario Outline, because if I use Scenario outline then my execution will take time. There is any way is there I can create common feature file and add all 30 or more Scenario and keep on referring to different feature file.
Asking you this question because right now if one step need to add or modify to feature that should reflect to all. So I don't want to modify all feature file.
accounting.feature
@Pricecheck
Scenario: Verification of "ACCOUNTING PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
price.feature
@Pricecheck
Scenario: Verification of "PRICE PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
tax.feature
@Pricecheck
Scenario: Verification of "TAX PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
income.feature
@Pricecheck
Scenario: Verification of "INCOME PAGE" Price Card
Given setup env data
When user navigate to web page
Then user login
Beta Was this translation helpful? Give feedback.
All reactions