Scope Attribute - Multiple features with similar scenario names
Hello,
I have multiple feature files wherein there are Scenarios present with same titles. Due to this when I apply the Scope Attribute with feature name, it gives error saying that
"The feature already contains a member called...with same parameter type"
Scope Attributes on Class level:
Plz suggest
-
I have long list of feature files with different "Feature" names. So it will be a long list if I give them on the class as attributes.
0 -
If anyone has any idea to address this issue, plz let me know. I am blocked on this currently.
0 -
Don't use scoping on that level! They are intended for use very rarely.
It is a bad smell if steps are doing different things in different feature files or different scenarios.
Please check out our SpecFlow Masterclass at https://specflow.org/school/bdd-masterclass/
On Day 2 Gaspar is talking about this topic and how to use it.
0 -
There are no chances of doing any base level modification in the code as there are lot of feature files already written and infrastructure is in place from quite a long time.
I am looking for a solution to my problem that without use of scope how can I make my test cases as well as the external assembly's test cases work.
0
Please sign in to leave a comment.
Comments
4 comments