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...
  • НаукаНаука

Комментарии • 27

  • @krishnakumar-zb4us
    @krishnakumar-zb4us 4 года назад +6

    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

  • @kiranemmila
    @kiranemmila 3 года назад +1

    thank you so much naveen for neat explanation of fixtures topic..you are a Gods gift for all automation testers..

  • @ankitpal443
    @ankitpal443 2 года назад

    great explanation...take a bow...conceptual clarity is so good...thanks 3000 times!!

  • @ishratmeher4594
    @ishratmeher4594 3 года назад

    Wow!!! I exactly wanted my code to work like this, can't thank you enough Man.

  • @ashutoshpratapsingh6872
    @ashutoshpratapsingh6872 4 года назад +1

    Back to back 2 video wow to good, thanks a lot

  • @tallurivamsi6413
    @tallurivamsi6413 3 года назад +1

    Hi sir,the way you are explaining the things are awesome.Waiting for AI related testing tools and Airflow testing using pyTest.

  • @darshanpatel5640
    @darshanpatel5640 3 года назад

    You're awesome sir, please keep it up for the new learners !

  • @salafitalk9382
    @salafitalk9382 4 года назад +1

    yours videoo is awesome. subscribing before 100000 subs :D

  • @atulbahuguna199
    @atulbahuguna199 6 месяцев назад

    Great content. Why didn't you write test methods in BaseClass inself? Why create child class for tests?

  • @sarjeraosandbhor4478
    @sarjeraosandbhor4478 4 года назад

    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.

  • @venkateshr5461
    @venkateshr5461 Год назад +1

    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 ✌️🙏😊

  • @prajwalnaresh4005
    @prajwalnaresh4005 4 года назад

    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.

  • @kaushalmandal6969
    @kaushalmandal6969 3 года назад

    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.

  • @sviatkey
    @sviatkey 3 года назад

    Why did you create child and parent classes under the fixture for each browser? Is there some specific value from that?

  • @ashuiet
    @ashuiet 4 года назад

    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.

  • @nguyennguyen4619
    @nguyennguyen4619 3 года назад

    How do you manage all the test case in real project ? Du you use unittest to create testsuite or not ?

  • @SuperMechtronics
    @SuperMechtronics 3 года назад

    Very nicely explained

  • @adarshabenki1826
    @adarshabenki1826 2 года назад

    is a fixture equivalent to a dataprovider in testng?

  • @prachisakalle4828
    @prachisakalle4828 2 года назад

    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

  • @vijayakumargopal6030
    @vijayakumargopal6030 2 года назад

    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?

  • @mahak64
    @mahak64 3 года назад

    i am not able to see logs in html reprt generated.Can someone help?

  • @ayyajjamadar6387
    @ayyajjamadar6387 4 года назад +1

    waiting for POM with pytest-BDD

  • @jarosawsokolik1870
    @jarosawsokolik1870 2 года назад

    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

  • @azureazure7901
    @azureazure7901 3 года назад

    Can you please share the github link sir.

  • @annakorab-chmielowiec4310
    @annakorab-chmielowiec4310 3 года назад

    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." :/