Part 6 - How to Parametrize test in PyTest (Parameterization)

preview_player
Показать описание
In this video, I have explained how to paramterize test cases with different data in pytest.

Parameterizing of a test is done to run the test against multiple sets of inputs. We can do this by using the following marker −

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
Рекомендации по теме
Комментарии
Автор

Very clear concepts and full of knowledge. I was doing this to import data from DEV and QA servers and compare of count of reports etc… and passing the table list as parametrised fixtures, facing challenges to pass the parameter to DB and get results. Any thoughts please?

GauravSingh-tpzq
Автор

Please also provide some session on advance Pytest & Fixture

kundanlal
Автор

Hi naveen,
How to validate the test cases for this scenario. And y did you use that Class?

anil
Автор

Hi Naveen thank you for the great work your doing, can you please upload a video to integrate selenium python with Azure DevOps Testcases

sabataranum
Автор

Hi Naveen,
Why don't I get any auto suggestion from Pycharm, when i do self.driver. something in test method?
Is there any fix for the above issue?

automationneemo
Автор

With latest update, fixture's scope has be set to "function" instead of "class" for parameterization to work. If scope is set for "class", then your driver wont quit and wont trigger the next test.

HariKrishnan-cscr
Автор

On using self.driver. why methods like find_elements(), title(), find_element_by_, switch_to(), window_handles() and rest are not auto-populating? Its frustrating to write the whole thing when they don't auto populate. Same works without using fixtures and but with conftest and with request.cls.driver = web_driver, they just don't show up. Naveen, do you know why its happening? I am sure you might have also noticed it as you were typing all the methods or either copying from other .py files?

gtam
Автор

Nice content I feel this can be explained within less than 12 minutes.

trinetras
Автор

Hey Naveen guruji, why u r creating base class . without creating base class isn't it possible

sambeetburma
Автор

thank you for the video but i am unable to parameterize in the test it self, i am getting error inderect fixture does not exist kind

spotnuru
Автор

I am not able to get past the 5 second hubspot window screen... My code is fine and browsers are launching...But element not found error I'm getting because its unable to go past the 5 second login window..How to resolve?? Please help....I tried Explicit waits but still no resolution...its pinging refresh again and again...

ishan
Автор

Hi Naveen, please help me how to do Parameterization from reading excel data.

kalyanchakri
Автор

How to join python with Automation full course

TechPandit-ncmi
Автор

Fixtures Parameterization Vs Test Parameterization ?!?

mmonzter