Part 4 - PyTest Fixtures with Class Scope || Fixture parameters || PyTest Selenium Test
HTML-код
- Опубликовано: 10 сен 2024
- In this video, I have explained the concept of pytest fixtures with class scope.
Learn:
how to create fixtures for different browsers like chrome, Firefox using parameters
how to pass fixture params
Run test cases in parallel mode
generate html reports with fixtures
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
naveenautomati...
For Java & Selenium - naveenautomatio...
For API (Manual + Automation) - naveenautomatio... - Наука
I have to say this,
This man deserves more. He is much underrated. He deserves more than a million subs. Because he is giving is 100% to make video and share the knowledge.
HATS OFF Sir. You're really a true GURU.
A lot to learn from you and I'm proud to have an online tutor like you and learning from you.
PS: Not even asking to subscribe to his RUclips, only he wants is to share, like, and comment.
Much love
thank you so much naveen for neat explanation of fixtures topic..you are a Gods gift for all automation testers..
great explanation...take a bow...conceptual clarity is so good...thanks 3000 times!!
Wow!!! I exactly wanted my code to work like this, can't thank you enough Man.
Back to back 2 video wow to good, thanks a lot
Hi sir,the way you are explaining the things are awesome.Waiting for AI related testing tools and Airflow testing using pyTest.
You're awesome sir, please keep it up for the new learners !
yours videoo is awesome. subscribing before 100000 subs :D
Great content. Why didn't you write test methods in BaseClass inself? Why create child class for tests?
Hi Naveen,
Very good, much awaiting for BDD Framework using pom.xml , password hiding, file handling, data Driven, Exceptions , Captcha & OTP scenario with Python.
Thanks.
Hi, Naveen sir Can you please upload playlists for Appium python concept? especially that powerful Pytest framework from scratch include parallel executions Android and iOS devices with the same fixture method ✌️🙏😊
Sir can you please also design one robust framework from scratch in future with continuation of this series which would help us by taking complicated examples like image comparison and also texts and banners. Also parallel execution.
Thankyou for wonderful teaching.
Hi naveen,
We are going to create fixture in setup method and we initialize the driver also in setup method and we are going to use fixture in our class, but there is no any auto suggestion is coming when I am going to use self.driver.
I have to write explicitly.
Could you please let me know what is the reason behind that Or is i am doing wrong.
Why did you create child and parent classes under the fixture for each browser? Is there some specific value from that?
Hi Naveen,
any shortcut can youu suggest to maintain Indentation in PyCharm because I write same code what you writing in same fashion but while running TCs are able to launch.Then I have to compare my code with your GitHub code.
most of the time only difference I observed is Indentation are not aligned.
How do you manage all the test case in real project ? Du you use unittest to create testsuite or not ?
Very nicely explained
Thank you so much 🙂
is a fixture equivalent to a dataprovider in testng?
Why have we created parent class - base class and then written Pass and then created child class and written code? Can't we directly write the code creating a class
what is the purpose we have to create the empty class to use fixtures? We can directly use it in test class right? anyone could you please clear it?
i am not able to see logs in html reprt generated.Can someone help?
waiting for POM with pytest-BDD
Hi, all. Tutorial is great! I have a question to you Naveen or to anyone : When we inherit driver to test_google_diver_chrome test why there is no code completion (hints) available? Is there any way to have code completion here or we have to memorize all available options? Example here at 7.13 ruclips.net/video/FG9CgbPmq_8/видео.html
Can you please share the github link sir.
Everytime I recive this error: "Fixture "init__driver" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See docs.pytest.org/en/stable/fixture.html for more information about fixtures, and
docs.pytest.org/en/stable/deprecations.html#calling-fixtures-directly about how to update your code." :/