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

Показать описание
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 ________
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 ________
Комментарии