Part 3: PyTest Fixtures with Selenium || PyTest Html Report

preview_player
Показать описание
In this video, I have explained how to use purest fixtures for Selenium test cases.

You can write test cases with fixtures - pre conditions and yield tear down methods.

you can generate html pytest reports by using purest html module package: pip install pytest-html

~~~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:
Рекомендации по теме
Комментарии
Автор

Happy to Learn....Thank you so much for video...

premkumarms
Автор

Naveen sir your ultimate .. got really awesome information on pytest series 🙏🙏❤️❤️

Freakouts_and_found_Insane
Автор

Thank you so much Naveen, it would be great if you take one webapp, how to create framework for that and what are the things get involved in real time.

karthikpatil
Автор

Really nice video.. I have few doubt regarding the flow of Python selenium framework..can u plz help..?

RAVIRAJ-kywt
Автор

Naveen sir.. all videos related to python automation are very nice.. easily understandable ..one small doubt.. for html report i am not getting log information "No log output captured" is displayed

kirankumarn
Автор

These videos are on Pytest? or Python with selenium??

somalajayadeepika
Автор

Sir,
Initially during the start of this video, you have shown "setup_module(module)" and "teardown_module(module)", is "setup_module" and "teardown_module" are build-in method names OR we can use any custom names ??
Also you are passing module here "setup_module(module)", so from where and how is that module name passed inside the method, Can we use any other names also to pass inside the method.
Please give some insight on that.

arun
Автор

Hi, I am trying this code in parallel mode.. it's running fine but I couldn't find any print statements in the output though I have given -s in the command to run.It is printing if it's running in sequential mode.How to print the output that I wanted while running in parallel mode?

deekshithapaladugu
Автор

Hi,
Can you please tell ..If the scope is session what will be the change in below statement
request.cls.driver = driver

ishikagupta
Автор

thanks for the pytest playlist, how to get full playlist of python selenium?

rasikaatul
Автор

what is the reason of passing "Module" to setup and teardown method? can we pass any keyword?

rasikaatul
Автор

AttributeError: 'str' object has no attribute 'capabilities' , I am gfetting this error

what should I do?

TavneetSinghManchanda
Автор

i tried the same thing but i am not able to run it.
import pytest
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager


def Setup_module(module):
global driver
driver =
driver.maximize_window()
driver.implicitly_wait(5)
driver.delete_all_cookies()

def teardown_module(module):
driver .quit()

def test_google_title():
assert driver.title =="Google"

i am getting following error
def test_google_title():
> assert driver.title =="Google"
E NameError: name 'driver' is not defined

logeshv