Selenium Python | How to use PyTest

preview_player
Показать описание
Selenium Python | PyTest
Hi, I am Raghav & Today we will learn:
What is PyTest
How to install PyTest
How to use PyTest with Selenium scripts
How to run tests using PyTest

test_*.py

Note
Class name should start with Test

1. Create a simple test script
2. Install Pytestpip install -U pytestpytest --version
3. Rename python file to add test_
4. Create 3 methods: setup, test, teardown

Fixtures - used to manage tests in PyTest

Function
Class
Module
Session

Note
Class name should start with Test

ONLINE COURSES TO LEARN

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ JAVA ------------

------------ MAVEN ------------

------------ OTHERS ------------

------------ Follow ------------

________ ONLINE COURSES TO LEARN ________

Рекомендации по теме
Комментарии
Автор

Exactly what i was looking for !... Thank you sir ... I highly recommend for beginners in python frame work....

pythonlearning
Автор

Very precise and understandable. Now I am going to watch other tutorials of yours as well.

AyushiShinde-kcum
Автор

well explained and easy to follow and understand. Thank you Raghav.

sirishaa
Автор

Everything is understandable, I wrote tests in my company based on your videos and even got a job thanks to them. I wonder how i can pass variable from one test to another in pytest, i now that is now best solution. I know there was such a thing as Namespace before, but it was removed from Pytest 4.0

robertsorbet
Автор

Raghav, Great video and explanation!
Few questions if i may:
1. What frame work would you suggest to work with, UnitTest or PyTest?
2. Do you have by chance some guide/video for setup page object model with PyTest? i know you have POM video with UnitTest.
Thanks again and continue with the great work!

jacoby
Автор

Raghav you're the master of straightforward tutorials, thanks.

federicopalacio
Автор

I was looking for pytest and got so happy after a lesson listed from you on youtube. Writing this comment before watching as I know it would be really helpful by default
Thanks Raghav :)

swamyas
Автор

Thanks a lot Raghav for very informatory video.

anupriyapande
Автор

Exactly what I was looking for..
Thank you Sir

RabzBoparai
Автор

Perfect! Thank you very much for your lessons!

ТикиМикк
Автор

Thanks a lot, Mr. Raghav! Your videos are easy to understand. Already subscribed and liked!

Binolnc
Автор

Awesome raghav highly appreciate for clear cut explanation

Kumarkumar-gfkk
Автор

Well explained, Thank you for sharing the knowledge. Keep going on.

antriksh
Автор

Nice, I got some knowledge from this video..thank you

VedicEnglishFormula
Автор

Thank you so much for selenium with python course

bhavikakapadia
Автор

Thanks a lot, Raghav! Great lesson!!!

coding-kprg
Автор

Thanks so much for all your step by step sessions

cayceejoel
Автор

Thank you I was looking for that tutorial. Now I can learn step by step :)

singhneeraj
Автор

Well explained about the use of PyTest in a clear way. Very helpful !!!
Can you just expalin a little bit about the use and purpose of "Yield" keyword?? It will be very helpful

hassanmahmood
Автор

I liked and subscribed your channel my friend :)

mr.s.h.