Selenium Python Small Sample Project 1 | Unit Test, HTML Reports

preview_player
Показать описание
Selenium Python: Sample Project
1. Create a test for Google Search
2. Add implicit wait of 10 sec
3. Maximize window
4. Create Unit Tests
5. Add HTML reporting library
6. Run from command line

References:

Code:
from selenium import webdriver
import unittest
import HtmlTestRunner

class GoogleSearch(unittest.TestCase):

@classmethod
def setUpClass(cls):

def test_search_automationstepbystep(self):

def test_search_raghav(self):

@classmethod
def tearDownClass(cls):
print("Test Completed")

if __name__ == '__main__':

#SeleniumPythonSampleProject

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 ________

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

Hey Raghav - this is a great small example for selenium - python pycharm.... thank you!!!

johnshome
Автор

I just fond you today. Very informative and straight to the point. You have a new sub.

P.D: Why search for the google 'Search' button when we can use .submit(). Just like this:

google_btn =
Step by Step')
google_btn.submit()

Skaxarrat
Автор

This is perfect for the begginig! All you need to know to start automation!

kina
Автор

With Pycharm, you can double click CTRL and use the up/down arrow keys allowing you to edit multiple lines at once. That's probably my favorite feature.. Either that, or: CRTL + SHIFT + ALT + J which allows you to basically find and replace all.

shawnmccrum
Автор

Hi Raghav ji, thank u so much for Python tutorials, I didn't no how to script selenium with python. In most of the interviews they asked my python skills. I have no answer and time as well to learn.But, now I was suprised after seeing ur videos clear cut explanation, video length is less 😋not in a month or week. Focus of two days is enough to complete off. Thanks for making much easy👌👌👌

parvathijavvadi
Автор

Hi Raghav, thanks a lot for creating this amazing little but complete project-it helped me a lot to understand selenium python project.Looking some more projects as I am following selenium python.Hats off for you man!!!.

skkkk
Автор

raghav you are doing great job Bhai, please put more video on python with selenium with some basics along with framework.

himanshubhushan
Автор

hi Raghav. you're really helping a lot of people, for beginner employers can you suggest excel for whatever they need to do. thank you

chandanapinnaka
Автор

Very informative and crisp small project.
Could you please cover in future courses on making SoapUI we service call using Python.

cgthejesh
Автор

After running the unit tests i'm getting "process finished with exit code 0" instead of summory of tests, please help

santoshkenche
Автор

Hi, Good Teaching with step by step perfectly....
it is working without any fail report

VetriJ
Автор

Thank you so much! Your python and selenium video courses are awesome!

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

This is very good. I've learnt a lot on from your channel.

nwanyamedia
Автор

I'm self learning.. n thanks for making such an interactive video

manjarypatil
Автор

Hi. Iam trying the Google Search Automation Code in Python. Iam not either getting any error nor any output. I was able to run the code without UnitTest Annotations. Can you please let me know what issue it is?

stilllearningstilllearning
Автор

very nice! Thanks a lot, this was really helpful.
Is there another thing like "html test runner" you would recomend?

gonzalohernan
Автор

Thank you very much now I understood perfectly about unit testing...

gopikrishna
Автор

Hello Raghav, Thank you for the Video. I am getting this error:
"UnicodeEncodeError: 'charmap' codec can't encode characters in position 1964-1971: character maps to <undefined>"

Any thoughts?

vukkeselj
Автор

A great tutorial,
at 9:29 you ran UnitTest and I was running it as normal Python file :(
But in your next video you explain how to configure it.
May be you can add those steps here too.

kirankumarkm
Автор

Raghav, thank you so much for the tutorial. just wanted to know which programming language is popular with selenium, java or python ?

bhavikakapadia