report.html

Report generated on 04-Apr-2023 at 08:59:53 by pytest-html v2.1.1

Environment

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", "xdist": "3.2.1"}
Python 3.8.5

Summary

182 tests ran in 6286.62 seconds.

47 passed, 0 skipped, 135 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
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 ] 24.86
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377291F0>
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 ] 23.73
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729640>
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.43
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729A00>
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 ] 23.32
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729AC0>
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 ] 23.39
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729B80>
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/search-engine-optimization-seo-certification-training ] 23.96
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729C40>
value = 'https://www.simplilearn.com/digital-marketing/search-engine-optimization-seo-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/social-media-certification-training ] 23.36
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729D00>
value = 'https://www.simplilearn.com/digital-marketing/social-media-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/pay-per-click-ppc-certification-training ] 23.63
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729DC0>
value = 'https://www.simplilearn.com/digital-marketing/pay-per-click-ppc-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/content-marketing-certification-training ] 23.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729E80>
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.66
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837729F40>
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 ] 23.41
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377511C0>
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 ] 23.40
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751340>
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 0x000001B837751400>
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.81
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377514C0>
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.42
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751580>
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.35
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377517C0>
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.49
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751880>
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 ] 32.35
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751940>
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 ] 32.30
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751A00>
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.10
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751AC0>
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 ] 32.57
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751C40>
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 ] 23.65
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751D00>
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.39
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751DC0>
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 ] 23.39
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837751F40>
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 ] 23.55
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B040>
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.34
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B100>
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.73
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B1C0>
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/mobile-and-software-development/java-javaee-soa-development-training ] 23.70
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B280>
value = 'https://www.simplilearn.com/mobile-and-software-development/java-javaee-soa-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/digital-marketing/digital-analytics-foundation-training-course ] 32.10
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B340>
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 ] 70.69
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B400>
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/tableau-training-and-data-visualization-course ] 23.92
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B4C0>
value = 'https://www.simplilearn.com/tableau-training-and-data-visualization-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/angular-certification-training-course ] 23.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B580>
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 ] 32.53
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B640>
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.59
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B700>
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 ] 24.09
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B7C0>
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.46
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B880>
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 ] 24.57
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775B940>
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/sql-database-training-course ] 32.46
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BA00>
value = 'https://www.simplilearn.com/sql-database-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/dot-net-programming-certification-training-course ] 32.68
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BAC0>
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.73
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BB80>
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/power-bi-certification-training-course ] 32.52
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BC40>
value = 'https://www.simplilearn.com/power-bi-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/deep-learning-course-with-tensorflow-training ] 23.87
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BD00>
value = 'https://www.simplilearn.com/deep-learning-course-with-tensorflow-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.19
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BDC0>
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.90
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BE80>
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 ] 23.70
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83775BF40>
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 ] 88.17
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769040>
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 ] 80.78
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769100>
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.36
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377691C0>
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.47
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769280>
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 ] 32.37
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769340>
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.13
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769400>
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.87
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377694C0>
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 ] 31.93
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769580>
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.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769640>
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.66
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769700>
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 ] 32.34
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377697C0>
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.06
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769880>
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.28
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769940>
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.66
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769A00>
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/docker-certified-associate-dca-certification-training-course ] 23.63
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769AC0>
value = 'https://www.simplilearn.com/docker-certified-associate-dca-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/google-cloud-architect-certification-training-course ] 32.51
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769B80>
value = 'https://www.simplilearn.com/google-cloud-architect-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.27
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769C40>
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/aws-big-data-certification-training-course ] 32.40
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769D00>
value = 'https://www.simplilearn.com/aws-big-data-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 ] 32.30
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769DC0>
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_certificate_program_url[https://www.simplilearn.com/cyber-security/cobit-certification-training] 23.79
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837769E80>
value = 'https://www.simplilearn.com/cyber-security/cobit-certification-training'

@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.25
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377752B0>
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.09
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775430>
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.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377754F0>
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 ] 30.18
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775730>
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] 21.03
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775970>
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.37
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775B80>
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 ] 30.33
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775C10>
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.33
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775CD0>
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.41
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775D90>
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.23
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775E50>
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.43
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775F10>
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.56
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837775FD0>
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.31
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C0D0>
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.33
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C190>
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.26
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C250>
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.20
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C310>
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.21
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C3D0>
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.26
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C490>
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.18
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C550>
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 0x000001B83778C610>
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 ] 21.21
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C790>
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 ] 39.65
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C850>
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.39
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778C910>
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.06
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778CA90>
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.13
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778CB50>
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.20
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778CC10>
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.33
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778CCD0>
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.55
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B83778CD90>
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.30
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799520>
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.53
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377999A0>
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.73
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799A60>
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 ] 54.49
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799B20>
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.00
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799BE0>
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/business-analytics-certification-bootcamp-training ] 54.90
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799CA0>
value = 'https://www.simplilearn.com/business-analytics-certification-bootcamp-training\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/umn-cloud-computing-bootcamp-program ] 63.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799E20>
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/umn-blockchain-developer-bootcamp-program ] 72.76
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B837799EE0>
value = 'https://www.simplilearn.com/umn-blockchain-developer-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/business-analytics-bootcamp ] 54.67
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB160>
value = 'https://www.simplilearn.com/business-analytics-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/digital-marketing-bootcamp-program ] 54.65
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB2E0>
value = 'https://www.simplilearn.com/digital-marketing-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.47
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB3A0>
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_new_template_program_url[https://www.simplilearn.com/digital-marketing-training-online] 54.65
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB520>
value = 'https://www.simplilearn.com/digital-marketing-training-online'

@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 ] 53.87
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB850>
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.56
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB910>
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.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377AB9D0>
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 ] 62.46
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377ABB50>
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.07
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377ABF10>
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.40
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377ABFD0>
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/blockchain-developer-certification-bootcamp ] 44.36
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB0D0>
value = 'https://www.simplilearn.com/blockchain-developer-certification-bootcamp\t\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.26
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB250>
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 ] 58.47
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB4C0>
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()
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://pg-p.ctme.caltech.edu/full-stack-web-development-certification-course ] 57.68
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB580>
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()
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/ai-machine-learning-certification-course ] 57.87
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB640>
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()
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/data-analytics-certification-course ] 56.83
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB700>
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()
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/data-science-certification-course ] 56.85
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB7C0>
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()
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/business-analysis-certification-course ] 56.95
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB880>
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()
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-supply-chain-management-certification-course ] 56.89
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BB940>
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 ] 56.71
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBA00>
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 ] 56.99
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBAC0>
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()
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.umass.edu/project-management-online-certification-course ] 58.58
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBB80>
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()
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.umass.edu/lean-six-sigma-certification-training-course ] 56.83
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBC40>
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()
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.umass.edu/digital-marketing-certification ] 56.84
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBD00>
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.12
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBDC0>
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 ] 56.97
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBE80>
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()
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/business-analytics-certification-training ] 58.24
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377BBF40>
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.87
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE040>
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 ] 56.84
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE100>
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.38
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE1C0>
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 ] 58.41
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE280>
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()
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.wharton.upenn.edu/ai-program-for-business ] 57.52
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE340>
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] 58.98
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE400>
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/automation-testing-training-course-placement-guarantee] 58.91
self = <test_page_section_check.TestPageSectionCheck object at 0x000001B8377CE7F0>
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 ] 14.48
------------------------------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 ] 14.28
------------------------------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 ] 14.28
------------------------------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.47
------------------------------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/pmi-rmp-training ] 14.26
------------------------------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.59
------------------------------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.76
------------------------------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.29
------------------------------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 ] 14.37
------------------------------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.53
------------------------------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.39
------------------------------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.38
------------------------------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 ] 14.46
------------------------------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 ] 14.36
------------------------------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 ] 12.33
------------------------------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 ] 12.00
------------------------------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 ] 11.95
------------------------------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 ] 11.89
------------------------------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.82
------------------------------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 ] 11.93
------------------------------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.25
------------------------------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.01
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 ] 11.97
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 ] 33.88
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.68
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] 34.00
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 ] 36.53
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 ] 36.97
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 ] 36.75
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.30
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.65
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 ] 36.27
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.77
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-business-analytics-certification-course ] 36.54
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.55
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.46
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 ] 36.51
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.58
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.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/pgp-digital-transformation-certification-training-course ] 35.59
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 ] 35.67
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.38
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.33
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.41
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.36
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 ] 31.75
No log output captured.
Passed test_page_section_check.py::TestPageSectionCheck::test_check_page_section_for_job_guarantee_program_url[https://www.simplilearn.com/data-science-course-placement-guarantee ] 31.11
No log output captured.