-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to achieve multiple scenario-outlines in single feature file in pytest-bb ? #462
Comments
Hi! Please provide more clear info about your environment and pytest output. Also please check the markup of your message, seems github eat some info |
@elchupanebrej
As per my understanding this is not working. As a work around, for now one Scenario Outline in one file is working. Please review and let me know if there is a way to achieve the same. Exception :
I believe it is clubbing all the examples together somehow. Any help will be appreciated . Please let me know in case I'm doing anything wrong here . |
I think I found the root cause. It is happening only when there is space here |
I am trying without space. I have two scenario outlines. Still its executing only one scenario outline( And it is picking only second scenario) |
Could you please try https://pypi.org/project/pytest-bdd-ng/ as a replacement for pytest-bdd? There official parser is used |
Could check if this still an issue with version 8.0.0? |
I have given the code like this but it's not working, your response would be more helpful.
Feature: login feature
Scenario Outline: login with valid credentials
Given login with valid and
Examples:
|username |password |
|[email protected]|newyear2022|
implementation
@Scenario(
"../features/login.feature",
"login with valid credentials",
)
def test_after():
pass
@given(parsers.parse("login with valid {username} and {password}"))
def test_valid_login(username,password):
print()
print(username,password)
@given(parsers.parse("login with incorrect {user} and {psw}"))
def test_invalid_login(user,psw):
print()
print(user,psw)
The text was updated successfully, but these errors were encountered: