Skip to content

Test parametrization #1257

Answered by mdmintz
jirikralik asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jirikralik Here are two examples to take a look at:

https://github.com/seleniumbase/SeleniumBase/blob/master/examples/parameterized_test.py

https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_pytest_parametrize.py

They each use a different syntax format of SeleniumBase. For the first, which uses BaseCase inheritance, you need to use the parameterized library. The second uses @pytest.mark.parametrize because that works in combination with the sb pytest fixture.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants