for @pytest.fixture(scope='function') changing the parameter used in fixture method from script test method #3651
Labels
type: question
general question, might be closed after 2 weeks of inactivity
@pytest.fixture(scope='function') is used which will have method Login and then addfinalizer to close the app.
This login function accepts parameter(username,password) from other file let say config.py .
Now when we pass this fixture to our test method it will login with parameters from config.py file But if this script wants to login with different username then what is the solution for Login function to use unername parameter passed from test method and not from the config.py.
The text was updated successfully, but these errors were encountered: