Report generated on 20-Jul-2023 at 08:58:42 by pytest-html v2.1.1
Packages | {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "7.2.2"} |
Platform | Windows-10-10.0.19041-SP0 |
Plugins | {"allure-pytest": "2.8.18", "datadir": "1.3.1", "html": "2.1.1", "metadata": "1.10.0", "order": "1.1.0", "xdist": "3.2.1"} |
Python | 3.8.5 |
169 tests ran in 6216.62 seconds.
(Un)check the boxes to filter the results.
50 passed, 0 skipped, 119 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training ] | 29.17 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60340> value = 'https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training ] | 26.09 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60790> value = 'https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/quality-management/lean-six-sigma-black-belt-training ] | 23.95 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60A90> value = 'https://www.simplilearn.com/quality-management/lean-six-sigma-black-belt-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/quality-management/lean-management-training ] | 71.56 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60B50> value = 'https://www.simplilearn.com/quality-management/lean-management-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/salesforce/salesforce-developer-training ] | 88.14 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60C10> value = 'https://www.simplilearn.com/salesforce/salesforce-developer-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/digital-marketing/content-marketing-certification-training ] | 88.37 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60CD0> value = 'https://www.simplilearn.com/digital-marketing/content-marketing-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/digital-marketing/conversion-optimization-certification-training ] | 23.58 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60D90> value = 'https://www.simplilearn.com/digital-marketing/conversion-optimization-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/salesforce/salesforce-administrator-training ] | 88.36 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA60FD0> value = 'https://www.simplilearn.com/salesforce/salesforce-administrator-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/salesforce/salesforce-administrator-and-developer-training ] | 88.69 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82190> value = 'https://www.simplilearn.com/salesforce/salesforce-administrator-and-developer-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/big-data-and-analytics/data-scientist-certification-sas-r-excel-training ] | 23.65 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82250> value = 'https://www.simplilearn.com/big-data-and-analytics/data-scientist-certification-sas-r-excel-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/quality-management/lean-six-sigma-green-belt-training ] | 23.65 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82310> value = 'https://www.simplilearn.com/quality-management/lean-six-sigma-green-belt-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/mobile-and-software-development/python-development-training ] | 23.33 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA823D0> value = 'https://www.simplilearn.com/mobile-and-software-development/python-development-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-administrator-certification-training ] | 23.92 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82610> value = 'https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-administrator-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/big-data-and-analytics/mongodb-certification-training ] | 23.80 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA826D0> value = 'https://www.simplilearn.com/big-data-and-analytics/mongodb-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/apache-kafka-certification-training-course ] | 31.91 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82790> value = 'https://www.simplilearn.com/apache-kafka-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/digital-marketing/email-marketing-certification-training ] | 88.53 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82850> value = 'https://www.simplilearn.com/digital-marketing/email-marketing-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/digital-marketing/kpi-analysis-and-techniques-training ] | 32.39 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82910> value = 'https://www.simplilearn.com/digital-marketing/kpi-analysis-and-techniques-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/big-data-and-analytics/apache-spark-scala-certification-training ] | 33.20 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82A90> value = 'https://www.simplilearn.com/big-data-and-analytics/apache-spark-scala-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/agile-and-scrum/agile-scrum-master-certification-training ] | 24.57 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82B50> value = 'https://www.simplilearn.com/agile-and-scrum/agile-scrum-master-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cloud-computing/aws-technical-essential-training ] | 23.90 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82C10> value = 'https://www.simplilearn.com/cloud-computing/aws-technical-essential-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/salesforce/salesforce-platform-developer-1-certification-training ] | 88.66 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82D90> value = 'https://www.simplilearn.com/salesforce/salesforce-platform-developer-1-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/big-data-and-analytics/python-for-data-science-training ] | 26.76 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82E50> value = 'https://www.simplilearn.com/big-data-and-analytics/python-for-data-science-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cloud-computing/aws-developer-certification-training ] | 23.96 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82F10> value = 'https://www.simplilearn.com/cloud-computing/aws-developer-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cloud-computing/aws-sysops-certification-training ] | 23.51 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA82FD0> value = 'https://www.simplilearn.com/cloud-computing/aws-sysops-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/digital-marketing/digital-analytics-foundation-training-course ] | 88.54 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E0D0> value = 'https://www.simplilearn.com/digital-marketing/digital-analytics-foundation-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cloud-computing/microsoft-azure-fundamentals-training ] | 71.28 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E190> value = 'https://www.simplilearn.com/cloud-computing/microsoft-azure-fundamentals-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/angular-certification-training-course ] | 23.70 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E250> value = 'https://www.simplilearn.com/angular-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/selenium-certification-training ] | 80.77 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E310> value = 'https://www.simplilearn.com/selenium-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/node-js-certification-training ] | 23.66 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E3D0> value = 'https://www.simplilearn.com/node-js-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/ccsp-certification-training ] | 23.70 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E490> value = 'https://www.simplilearn.com/ccsp-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/react-js-certification-training-course ] | 32.15 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E550> value = 'https://www.simplilearn.com/react-js-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/ansible-certification-training ] | 23.37 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E610> value = 'https://www.simplilearn.com/ansible-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/dot-net-programming-certification-training-course ] | 32.18 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E6D0> value = 'https://www.simplilearn.com/dot-net-programming-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/comptia-security-plus-certification-training ] | 23.59 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E790> value = 'https://www.simplilearn.com/comptia-security-plus-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/artificial-intelligence-introduction-for-beginners-training-course ] | 81.65 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E850> value = 'https://www.simplilearn.com/artificial-intelligence-introduction-for-beginners-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/microsoft-azure-administrator-associate-certification-training-course ] | 32.88 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E910> value = 'https://www.simplilearn.com/microsoft-azure-administrator-associate-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/it-service-management/itil-foundation-training ] | 24.30 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8E9D0> value = 'https://www.simplilearn.com/it-service-management/itil-foundation-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/introduction-to-cyber-security-course ] | 89.14 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8EA90> value = 'https://www.simplilearn.com/introduction-to-cyber-security-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/introduction-to-data-analytics-training-course ] | 81.33 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8EB50> value = 'https://www.simplilearn.com/introduction-to-data-analytics-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/natural-language-processing-training-course ] | 32.56 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8EC10> value = 'https://www.simplilearn.com/natural-language-processing-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/microsoft-azure-architect-design-certification-training-course ] | 23.60 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8ECD0> value = 'https://www.simplilearn.com/microsoft-azure-architect-design-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/iot-certification-training-course ] | 88.37 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8ED90> value = 'https://www.simplilearn.com/iot-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/pyspark-certification-training-course ] | 32.54 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8EE50> value = 'https://www.simplilearn.com/pyspark-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/itil-4-managing-professional-transition-training ] | 23.97 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8EF10> value = 'https://www.simplilearn.com/itil-4-managing-professional-transition-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/itil-specialist-certification-training ] | 32.09 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA8EFD0> value = 'https://www.simplilearn.com/itil-specialist-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/certified-kubernetes-administrator-training ] | 23.39 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C0D0> value = 'https://www.simplilearn.com/certified-kubernetes-administrator-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/itil-strategist-certification-training-course ] | 32.12 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C190> value = 'https://www.simplilearn.com/itil-strategist-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/digital-strategy-for-brand-marketing-course ] | 88.16 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C250> value = 'https://www.simplilearn.com/digital-strategy-for-brand-marketing-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/itil-specialist-high-velocity-it-course ] | 32.80 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C310> value = 'https://www.simplilearn.com/itil-specialist-high-velocity-it-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/itil-specialist-drive-stakeholder-value-certification-course ] | 32.67 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C3D0> value = 'https://www.simplilearn.com/itil-specialist-drive-stakeholder-value-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/jenkins-certification-training-course ] | 23.42 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C490> value = 'https://www.simplilearn.com/jenkins-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/prince2-agile-certification-training-course ] | 32.58 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C550> value = 'https://www.simplilearn.com/prince2-agile-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/introduction-to-business-analysis ] | 71.23 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9C610> value = 'https://www.simplilearn.com/introduction-to-business-analysis\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",read_csv()) def test_check_page_section_for_certificate_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("certificate_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.certificate_page_section_present() if len(missing_section)>=1: rows = [['Certificate Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Certificate Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:68: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/agile-and-scrum/certified-scrum-developer-training ] | 30.61 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9CA00> value = 'https://www.simplilearn.com/agile-and-scrum/certified-scrum-developer-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",classroom_program_read_csv()) def test_check_page_section_for_classroom_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("classroom_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.classroom_page_section_present() if len(missing_section)>=1: rows = [['Classroom Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Classroom Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:103: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/kanban-system-design-kmp1-certification-training ] | 30.32 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9CB80> value = 'https://www.simplilearn.com/kanban-system-design-kmp1-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",classroom_program_read_csv()) def test_check_page_section_for_classroom_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("classroom_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.classroom_page_section_present() if len(missing_section)>=1: rows = [['Classroom Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Classroom Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:103: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/certified-agile-coaching-icp-acc-certification-training ] | 29.63 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9CC40> value = 'https://www.simplilearn.com/certified-agile-coaching-icp-acc-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",classroom_program_read_csv()) def test_check_page_section_for_classroom_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("classroom_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.classroom_page_section_present() if len(missing_section)>=1: rows = [['Classroom Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Classroom Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:103: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/advanced-certified-scrum-master-a-csm-certification-training ] | 21.58 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CA9CE80> value = 'https://www.simplilearn.com/advanced-certified-scrum-master-a-csm-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",classroom_program_read_csv()) def test_check_page_section_for_classroom_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("classroom_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.classroom_page_section_present() if len(missing_section)>=1: rows = [['Classroom Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Classroom Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:103: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/professional-scrum-master-2-psm-ii-certification] | 20.73 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB100> value = 'https://www.simplilearn.com/professional-scrum-master-2-psm-ii-certification' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",classroom_program_read_csv()) def test_check_page_section_for_classroom_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("classroom_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.classroom_page_section_present() if len(missing_section)>=1: rows = [['Classroom Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Classroom Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) print("value of count is :", count) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:103: Failed ------------------------------Captured stdout call------------------------------ value of count is : 1 | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/advanced-digital-marketing-certification-training-course ] | 21.70 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB310> value = 'https://www.simplilearn.com/advanced-digital-marketing-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/cyber-security/security-architect-bundle ] | 31.29 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB3A0> value = 'https://www.simplilearn.com/cyber-security/security-architect-bundle\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/it-hardware-and-networking/network-architect-bundle ] | 30.55 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB460> value = 'https://www.simplilearn.com/it-hardware-and-networking/network-architect-bundle\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/mobile-and-software-development/technical-architect-bundle ] | 39.74 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB520> value = 'https://www.simplilearn.com/mobile-and-software-development/technical-architect-bundle\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/digital-marketing/social-media-viral-marketing-training ] | 30.46 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB5E0> value = 'https://www.simplilearn.com/digital-marketing/social-media-viral-marketing-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/business-productivity-tools/microsoft-excel-2013-certification-training-online-bundle ] | 30.39 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB6A0> value = 'https://www.simplilearn.com/business-productivity-tools/microsoft-excel-2013-certification-training-online-bundle\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/quality-management/lean-six-sigma-certification-training-all-in-one-bundle ] | 48.82 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB760> value = 'https://www.simplilearn.com/quality-management/lean-six-sigma-certification-training-all-in-one-bundle\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/finance-management/complete-financial-modeling-career-advancement-certification-training-bundle ] | 30.62 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB820> value = 'https://www.simplilearn.com/finance-management/complete-financial-modeling-career-advancement-certification-training-bundle\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/big-data-and-analytics/senior-data-scientist-masters-program-training ] | 21.41 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB8E0> value = 'https://www.simplilearn.com/big-data-and-analytics/senior-data-scientist-masters-program-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/digital-marketing/seo-specialist-masters-program-training ] | 21.92 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAAB9A0> value = 'https://www.simplilearn.com/digital-marketing/seo-specialist-masters-program-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/cloud-solutions-architect-masters-program-training ] | 21.26 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABA60> value = 'https://www.simplilearn.com/cloud-solutions-architect-masters-program-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/devops-engineer-masters-program-certification-training ] | 21.14 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABB20> value = 'https://www.simplilearn.com/devops-engineer-masters-program-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/pmp-plus-bundle-masters-program ] | 21.64 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABBE0> value = 'https://www.simplilearn.com/pmp-plus-bundle-masters-program\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/pmp-renewal-pack-to-earn-pdus-masters-program ] | 30.30 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABCA0> value = 'https://www.simplilearn.com/pmp-renewal-pack-to-earn-pdus-masters-program\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/artificial-intelligence-masters-program-training-course ] | 39.55 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABD60> value = 'https://www.simplilearn.com/artificial-intelligence-masters-program-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/cyber-security-expert-master-program-training-course ] | 22.01 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABEE0> value = 'https://www.simplilearn.com/cyber-security-expert-master-program-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/big-data-engineer-masters-certification-training-course ] | 41.34 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAABFA0> value = 'https://www.simplilearn.com/big-data-engineer-masters-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/data-analyst-masters-certification-training-course ] | 21.23 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABE0A0> value = 'https://www.simplilearn.com/data-analyst-masters-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/aws-cloud-architect-certification-training-course ] | 21.15 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABE220> value = 'https://www.simplilearn.com/aws-cloud-architect-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/azure-cloud-architect-certification-training-course ] | 21.53 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABE2E0> value = 'https://www.simplilearn.com/azure-cloud-architect-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/itil-managing-professional-training-course ] | 30.28 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABE3A0> value = 'https://www.simplilearn.com/itil-managing-professional-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/azure-devops-solutions-expert-masters-program ] | 30.42 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABE460> value = 'https://www.simplilearn.com/azure-devops-solutions-expert-masters-program\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/data-science-and-artificial-intelligence-masters-program] | 48.57 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABE520> value = 'https://www.simplilearn.com/data-science-and-artificial-intelligence-masters-program' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",master_program_read_csv()) def test_check_page_section_for_master_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Master_program_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.master_page_section_present() if len(missing_section)>=1: rows = [['Master Program',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Master Program',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:137: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-data-analytics-certification-training-course ] | 46.04 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CABEC70> value = 'https://www.simplilearn.com/pgp-data-analytics-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-cloud-computing-professional-certificate-program ] | 63.59 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD2130> value = 'https://www.simplilearn.com/pgp-cloud-computing-professional-certificate-program\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/cloud-computing-bootcamp-certification-course ] | 63.69 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD21F0> value = 'https://www.simplilearn.com/cloud-computing-bootcamp-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/coding-bootcamp ] | 55.01 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD22B0> value = 'https://www.simplilearn.com/coding-bootcamp\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/ai-for-decision-making-program ] | 64.11 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD2370> value = 'https://www.simplilearn.com/ai-for-decision-making-program\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-business-analytics-certification-course ] | 50.02 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD24F0> value = 'https://www.simplilearn.com/pgp-business-analytics-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) > missing_section = pg_university_load.pg_new_template_section_present() test_prod\test_page_section_check.py:194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> def pg_new_template_section_present(self): missing_section=[] selenium_helper.scroll_page("4000") time.sleep(3) if selenium_helper.is_locator_present(self.locators['btn_sticky_faq_section_btn'],10)==False: missing_section.append("FAQs") else: self.btn_sticky_faq_section_btn.click() time.sleep(1) text1=self.btn_sticky_faq_section_btn_text.text #logging.info(f"Section is {text1}") if text1 in 'FAQs': assert True if selenium_helper.is_locator_present(self.locators['btn_sticky_overview_section_btn'],10)==False: missing_section.append("Overview") else: self.btn_sticky_overview_section_btn.click() time.sleep(1) text2=self.btn_sticky_overview_section_btn_text.text #logging.info(f"Section is {text2}") text2=text2.split()[1] if text2 in 'Overview': assert True if selenium_helper.is_locator_present(self.locators['btn_sticky_program_advantage_section_btn'],10)==False: missing_section.append("Program Advantage") else: self.btn_sticky_program_advantage_section_btn.click() time.sleep(1) text3=self.btn_sticky_program_advantage_section_btn_text.text #logging.info(f"Section is {text3}") if text3 in 'Advantage': assert True if selenium_helper.is_locator_present(self.locators['btn_sticky_program_details_section_btn'],10)==False: missing_section.append("Program Details") else: self.btn_sticky_program_details_section_btn.click() time.sleep(1) text4=self.btn_sticky_program_details_section_btn_text.text #logging.info(f"Section is {text4}") if text4 in 'Details': assert True if selenium_helper.is_locator_present(self.locators['btn_sticky_program_advisors_section_btn'],10)==False: missing_section.append("Program Advisors") else: self.btn_sticky_program_advisors_section_btn.click() time.sleep(1) text5=self.btn_sticky_program_advisors_section_btn_text.text #logging.info(f"Section is {text5}") if text5 in 'Advisor': assert True > if text4 in 'Learning Path': E UnboundLocalError: local variable 'text4' referenced before assignment pages\university_master_page.py:784: UnboundLocalError | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/umn-cloud-computing-bootcamp-program ] | 63.68 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD25B0> value = 'https://www.simplilearn.com/umn-cloud-computing-bootcamp-program\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/marketing-analytics-certification-online-course ] | 45.58 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD2AF0> value = 'https://www.simplilearn.com/marketing-analytics-certification-online-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgnew_program_read_csv()) def test_check_page_section_for_PG_new_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_new_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_new_template_section_present() if len(missing_section)>=1: rows = [['PG New Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG New Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:207: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-project-management-certification-training-course ] | 62.79 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAD2FA0> value = 'https://www.simplilearn.com/pgp-project-management-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-cyber-security-certification-training-course ] | 44.76 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE20A0> value = 'https://www.simplilearn.com/pgp-cyber-security-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-lean-six-sigma-certification-training-course ] | 44.72 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2160> value = 'https://www.simplilearn.com/pgp-lean-six-sigma-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-design-thinking-certification-training-course ] | 66.83 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE22E0> value = 'https://www.simplilearn.com/pgp-design-thinking-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/data-science-bootcamp ] | 44.92 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE26A0> value = 'https://www.simplilearn.com/data-science-bootcamp\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/ai-machine-learning-bootcamp ] | 44.64 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2760> value = 'https://www.simplilearn.com/ai-machine-learning-bootcamp\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/cybersecurity-bootcamp] | 44.49 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE29A0> value = 'https://www.simplilearn.com/cybersecurity-bootcamp' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",pgold_program_read_csv()) def test_check_page_section_for_PG_old_template_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("Pg_old_template_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.pg_old_template_section_present() if len(missing_section)>=1: rows = [['PG Old Template',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['PG Old Template',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:241: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://pg-p.ctme.caltech.edu/cloud-computing-certification-online-course ] | 19.22 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2C10> value = 'https://pg-p.ctme.caltech.edu/cloud-computing-certification-online-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://pg-p.ctme.caltech.edu/cloud-computing-certification-online-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://pg-p.ctme.caltech.edu/full-stack-web-development-certification-course ] | 17.38 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2CD0> value = 'https://pg-p.ctme.caltech.edu/full-stack-web-development-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://pg-p.ctme.caltech.edu/full-stack-web-development-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/ai-machine-learning-certification-course ] | 18.66 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2D90> value = 'https://bootcamp-sl.discover.online.purdue.edu/ai-machine-learning-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp-sl.discover.online.purdue.edu/ai-machine-learning-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/data-analytics-certification-course ] | 17.44 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2E50> value = 'https://bootcamp-sl.discover.online.purdue.edu/data-analytics-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp-sl.discover.online.purdue.edu/data-analytics-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/data-science-certification-course ] | 17.51 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2F10> value = 'https://bootcamp-sl.discover.online.purdue.edu/data-science-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp-sl.discover.online.purdue.edu/data-science-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/business-analysis-certification-course ] | 17.63 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAE2FD0> value = 'https://bootcamp-sl.discover.online.purdue.edu/business-analysis-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp-sl.discover.online.purdue.edu/business-analysis-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/digital-supply-chain-management-certification-course ] | 57.56 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF30D0> value = 'https://bootcamp-sl.discover.online.purdue.edu/digital-supply-chain-management-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/digital-marketing-certification-training-course ] | 57.23 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3190> value = 'https://bootcamp-sl.discover.online.purdue.edu/digital-marketing-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp-sl.discover.online.purdue.edu/digital-marketing-certification-course ] | 17.85 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3250> value = 'https://bootcamp-sl.discover.online.purdue.edu/digital-marketing-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp-sl.discover.online.purdue.edu/digital-marketing-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp.umass.edu/project-management-online-certification-course ] | 37.40 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3310> value = 'https://bootcamp.umass.edu/project-management-online-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp.umass.edu/project-management-online-certification-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp.umass.edu/lean-six-sigma-certification-training-course ] | 26.69 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF33D0> value = 'https://bootcamp.umass.edu/lean-six-sigma-certification-training-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://bootcamp.umass.edu/lean-six-sigma-certification-training-course#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://bootcamp.umass.edu/digital-marketing-certification ] | 57.22 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3490> value = 'https://bootcamp.umass.edu/digital-marketing-certification\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://ecourses.spjimr.org/data-science-for-business-decisions-certification ] | 58.46 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3550> value = 'https://ecourses.spjimr.org/data-science-for-business-decisions-certification\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://ecourses.spjimr.org/professional-brand-strategy-certification-online ] | 26.90 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3610> value = 'https://ecourses.spjimr.org/professional-brand-strategy-certification-online\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://ecourses.spjimr.org/professional-brand-strategy-certification-online#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://onlinebootcamp.umn.edu/business-analytics-certification-training ] | 59.06 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF36D0> value = 'https://onlinebootcamp.umn.edu/business-analytics-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://onlinebootcamp.umn.edu/pg-business-analytics-certification-course ] | 56.94 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3790> value = 'https://onlinebootcamp.umn.edu/pg-business-analytics-certification-course\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://onlinebootcamp.umn.edu/cloud-computing-certification-training ] | 57.52 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3850> value = 'https://onlinebootcamp.umn.edu/cloud-computing-certification-training\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://onlinebootcamp.umn.edu/blockchain-developer-certification ] | 57.16 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3910> value = 'https://onlinebootcamp.umn.edu/blockchain-developer-certification\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://certifications.spjain.org/product-management-course-online ] | 18.48 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF39D0> value = 'https://certifications.spjain.org/product-management-course-online\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') > missing_section = pg_university_load.subdomain_section_present() test_prod\test_page_section_check.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages\university_master_page.py:956: in subdomain_section_present text5=self.btn_sticky_program_highlights_section_btn_text.text _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.university_master_page.UniversityMasterPage object at 0x0000027A2CB1B460> loc = 'btn_sticky_program_highlights_section_btn_text' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: btn_sticky_program_highlights_section_btn_text core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [33mWARNING [0m setup:page_factory.py:53 the locator btn_sticky_program_highlights_section_btn_text on url https://certifications.spjain.org/product-management-course-online#ProgramHighlights is not visible | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://sl-onlinetraining.wharton.upenn.edu/ai-program-for-business ] | 58.72 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3A90> value = 'https://sl-onlinetraining.wharton.upenn.edu/ai-program-for-business\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_subdomain_program_url[https://sl-onlinetraining.xpro.mit.edu/executive-leadership-program] | 59.20 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3B50> value = 'https://sl-onlinetraining.xpro.mit.edu/executive-leadership-program' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",subdomain_program_read_csv()) def test_check_page_section_for_subdomain_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("urls_list_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') try: pytest.driver.get(city_url) time.sleep(2) except: logging.info(f'Page load failed for {city_url}') missing_section = pg_university_load.subdomain_section_present() if len(missing_section)>=1: rows = [['Subdomain',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Subdomain',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:278: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_job_guarantee_program_url[https://www.simplilearn.com/data-science-course-placement-guarantee ] | 40.75 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3E80> value = 'https://www.simplilearn.com/data-science-course-placement-guarantee\n' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",jg_program_read_csv()) def test_check_page_section_for_job_guarantee_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("job_guarantee_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.job_guarantee_section_present() if len(missing_section)>=1: rows = [['Job Guarantee',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Job Guarantee',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:313: Failed | |||
Failed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_job_guarantee_program_url[https://www.simplilearn.com/automation-testing-training-course-placement-guarantee] | 59.09 | |
self = <test_page_section_check.TestPageSectionCheck object at 0x0000027A2CAF3F40> value = 'https://www.simplilearn.com/automation-testing-training-course-placement-guarantee' @pytest.mark.test_details("SLUB-T0000","high","Page Section Check","Prince") @pytest.mark.parametrize("value",jg_program_read_csv()) def test_check_page_section_for_job_guarantee_program_url(self,value): #self._test_add_rows_in_csv() count=0 #with open("job_guarantee_prod.txt")as url_file: filename = "Report.csv" #count = 0 #for city_url in url_file: city_url = value.rstrip('\n') pytest.driver.get(city_url) time.sleep(2) missing_section = pg_university_load.job_guarantee_section_present() if len(missing_section)>=1: rows = [['Job Guarantee',city_url,'Fail',missing_section]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) count = count+1 else: rows = [['Job Guarantee',city_url,'Pass','NA']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if count>=1: > pytest.fail(f"Missing section, hence failed") E Failed: Missing section, hence failed test_prod\test_page_section_check.py:313: Failed | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training ] | 17.36 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cyber-security/cisa-certification-training ] | 17.19 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cyber-security/cissp-certification-training ] | 16.50 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/project-management/capm-certification-training ] | 14.44 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/project-management/pmp-certification-training ] | 14.90 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/project-management/prince2-foundation-certification-training ] | 14.71 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/project-management/ccba-certification-training ] | 14.34 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cyber-security/ceh-certification ] | 15.01 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/it-service-management/togaf-certification-program-training ] | 14.82 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/project-management/cbap-preparatory-course-training ] | 14.43 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/project-management/prince2-foundation-and-practitioner-certification-training ] | 14.58 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cyber-security/cism-certification-training ] | 15.45 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_certificate_program_url[https://www.simplilearn.com/cloud-computing/aws-solution-architect-associate-training ] | 15.17 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/agile-and-scrum/csm-certification-training ] | 13.48 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/agile-and-scrum/cspo-certification-training ] | 13.32 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/agile-and-scrum/safe-agilist-certification-training ] | 13.83 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/professional-scrum-master-psm-certification-training-course ] | 12.08 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/professional-scrum-product-owner-pspo-certification-training-course ] | 11.91 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/safe-scrum-master-ssm-certification-training ] | 14.38 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_classroom_program_url[https://www.simplilearn.com/safe-product-owner-product-manager-popm-certification-training ] | 12.86 | |
------------------------------Captured stdout call------------------------------ value of count is : 0 | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/digital-project-manager-masters-program-certification-training ] | 12.09 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_master_program_url[https://www.simplilearn.com/business-analyst-certification-training-course ] | 12.09 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_degree_program_url[https://www.simplilearn.com/global-mba-program-online-course ] | 34.17 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_degree_program_url[https://www.simplilearn.com/ms-in-artificial-intelligence ] | 33.99 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_degree_program_url[https://www.simplilearn.com/master-in-engineering-management] | 33.68 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-data-science-certification-bootcamp-program ] | 37.05 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-ai-machine-learning-certification-training-course ] | 37.52 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-data-engineering-certification-training-course ] | 37.16 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-cloud-computing-certification-training-course ] | 36.85 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course ] | 36.74 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-digital-marketing-certification-program ] | 37.34 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/pgp-advanced-executive-program-in-cyber-security ] | 36.86 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/business-analytics-certification-bootcamp-training ] | 37.15 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/umn-blockchain-developer-bootcamp-program ] | 36.83 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/product-management-certification-training-course ] | 36.73 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/iit-business-analytics-certification-program ] | 36.74 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/business-analytics-bootcamp ] | 36.78 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/data-engineering-bootcamp ] | 37.07 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/digital-marketing-bootcamp-program ] | 38.34 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/hr-analytics-certification-online-course ] | 36.73 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_new_template_program_url[https://www.simplilearn.com/digital-marketing-training-online] | 37.39 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-business-analysis-certification-training-course ] | 35.73 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-digital-transformation-certification-training-course ] | 35.56 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/applied-machine-learning-program ] | 37.66 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-devops-certification-training-course ] | 36.93 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/blockchain-certification-training-course ] | 35.44 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/pgp-digital-supply-chain-management-certification-training-course ] | 35.26 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/blockchain-developer-certification-bootcamp ] | 35.30 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_PG_old_template_program_url[https://www.simplilearn.com/professional-certificate-digital-marketing ] | 35.77 | |
No log output captured. | |||
Passed | test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_job_guarantee_program_url[https://www.simplilearn.com/java-full-stack-developer-certification-training-course ] | 32.01 | |
No log output captured. |