report.html

Report generated on 25-Apr-2023 at 04:07:41 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", "order": "1.1.0", "xdist": "3.2.1"}
Python 3.8.5

Summary

20 tests ran in 453.75 seconds.

16 passed, 0 skipped, 4 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Failed test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_hire_from_us_url 18.76
self = <test_home_and_skillup_page_check.TestHomeVerification object at 0x0000021FADFBA7F0>

@pytest.mark.test_details("SLUB-T","high","HomePage","Pallavi")
def test_check_rediirection_hire_from_us_url(self):
url=pg_home_page.load_url()
> counter,message=pg_home_page.check_rediretion_url_hire_from_us()

test_prod\test_home_and_skillup_page_check.py:215:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pages_prod.home_page.HomePage object at 0x0000021FAE145160>

def check_rediretion_url_hire_from_us(self):
counter=0
time.sleep(3)
if selenium_helper.is_element_present(self.locators["hire_from_us"][0], 10) == True:
default_handle = self.driver.current_window_handle
self.hire_from_us.click()
time.sleep(3)
handles = list(self.driver.window_handles)
for handle_check_counter in range(1,10):
if len(handles) > 1:
time.sleep(7)
self.driver.switch_to.window(handles[1])
current_url=pytest.driver.current_url
logging.info(f"Hire from us url Opened is: {current_url}")
> assert 'recruit' in current_url
E AssertionError

pages_prod\home_page.py:401: AssertionError
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:400 Hire from us url Opened is: about:blank
Failed test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_rediirection_job_guarantee_url 12.35
self = <test_home_and_skillup_page_check.TestSkillupVerification object at 0x0000021FADFC5430>

@pytest.mark.test_details("SLUB-T","high","skillup","Pallavi")
def test_check_rediirection_job_guarantee_url(self):
with open("skillup.txt") as file:
for url in file:
pytest.driver.get(url)
> counter,message=pg_home_page.check_rediretion_urls_jobs_skillup()

test_prod\test_home_and_skillup_page_check.py:348:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pages_prod.home_page.HomePage object at 0x0000021FAE145160>

def check_rediretion_urls_jobs_skillup(self):
counter=0
time.sleep(3)
if selenium_helper.is_element_present(self.locators["jobs_link"][0], 10) == True:
default_handle = self.driver.current_window_handle
self.jobs_link.click()
handles = list(self.driver.window_handles)
for handle_check_counter in range(1,10):
if len(handles) > 1:
time.sleep(7)
self.driver.switch_to.window(handles[1])
current_url=pytest.driver.current_url
> assert 'jobs' in current_url
E AssertionError

pages_prod\home_page.py:216: AssertionError
Failed test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_rediirection_live_skillup_url 15.25
self = <test_home_and_skillup_page_check.TestSkillupVerification object at 0x0000021FADFC55B0>

@pytest.mark.test_details("SLUB-T","high","skillup","Pallavi")
def test_check_rediirection_live_skillup_url(self):
with open("skillup.txt") as file:
for url in file:
pytest.driver.get(url)
> counter,message=pg_home_page.check_rediretion_urls_simplilearn_live_skillup()

test_prod\test_home_and_skillup_page_check.py:363:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pages_prod.home_page.HomePage object at 0x0000021FAE145160>

def check_rediretion_urls_simplilearn_live_skillup(self):
counter=0
time.sleep(3)
if selenium_helper.is_element_present(self.locators["simplilearn_live_skillup"][0], 10) == True:
default_handle = self.driver.current_window_handle
self.simplilearn_live_skillup.click()
time.sleep(3)
handles = list(self.driver.window_handles)
for handle_check_counter in range(1,10):
if len(handles) > 1:
time.sleep(7)
self.driver.switch_to.window(handles[1])
current_url=pytest.driver.current_url
logging.info(f"Simplilearn live url opend is : {current_url}")
> assert 'youtube' in current_url
E AssertionError

pages_prod\home_page.py:243: AssertionError
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:242 Simplilearn live url opend is : https://www.simplilearn.com/skillup-free-online-courses
Failed test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_rediirection_quiz 14.78
self = <test_home_and_skillup_page_check.TestSkillupVerification object at 0x0000021FADFC5730>

@pytest.mark.test_details("SLUB-T","high","skillup","Pallavi")
def test_check_rediirection_quiz(self):
with open("skillup.txt") as file:
for url in file:
pytest.driver.get(url)
> counter,message=pg_home_page.check_rediretion_urls_quiz()

test_prod\test_home_and_skillup_page_check.py:378:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pages_prod.home_page.HomePage object at 0x0000021FAE145160>

def check_rediretion_urls_quiz(self):
counter=0
time.sleep(3)
if selenium_helper.is_element_present(self.locators["quiz"][0], 10) == True:
default_handle = self.driver.current_window_handle
self.quiz.click()
time.sleep(3)
handles = list(self.driver.window_handles)
for handle_check_counter in range(1,10):
if len(handles) > 1:
time.sleep(7)
self.driver.switch_to.window(handles[1])
current_url=pytest.driver.current_url
> assert 'free-quiz-skillup' in current_url
E AssertionError

pages_prod\home_page.py:269: AssertionError
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_explore_program_CTA 17.59
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_explore_category_CTA 23.70
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:82 Menu item : Data Science & Business Analytics INFO  setup:home_page.py:88 url loading is:https://www.simplilearn.com/data-science-and-business-analytics INFO  setup:home_page.py:92 Data Science & Business Analytics
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_requestdemo_CTA 21.41
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:115 request_demo_url is :https://www.simplilearn.com/corporate-training
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_all_course_mega_menu 89.31
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:134 Data Science & Business Analytics INFO  setup:home_page.py:134 AI & Machine Learning INFO  setup:home_page.py:134 Project Management INFO  setup:home_page.py:134 Cyber Security INFO  setup:home_page.py:134 Cloud Computing INFO  setup:home_page.py:134 DevOps INFO  setup:home_page.py:134 Business and Leadership INFO  setup:home_page.py:134 Quality Management INFO  setup:home_page.py:134 Software Development INFO  setup:home_page.py:134 Agile and Scrum INFO  setup:home_page.py:134 IT Service and Architecture INFO  setup:home_page.py:134 Digital Marketing INFO  setup:home_page.py:134 Big Data INFO  setup:home_page.py:139 course :Data Science & Business Analytics INFO  setup:home_page.py:143 url loaded: https://www.simplilearn.com/data-science-and-business-analytics INFO  setup:home_page.py:145 Status is : 200 INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:139 course :AI & Machine Learning INFO  setup:home_page.py:143 url loaded: https://www.simplilearn.com/data-science-and-business-analytics INFO  setup:home_page.py:145 Status is : 200 INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:139 course :Project Management INFO  setup:home_page.py:143 url loaded: https://www.simplilearn.com/data-science-and-business-analytics INFO  setup:home_page.py:145 Status is : 200 INFO  setup:home_page.py:36 url loaded INFO  setup:home_page.py:139 course :Cyber Security INFO  setup:home_page.py:143 url loaded: https://www.simplilearn.com/data-science-and-business-analytics INFO  setup:home_page.py:145 Status is : 200 INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_check_search_functionality 31.01
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_Resources_url 15.91
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_corporate_training_url 16.20
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_become_an_instructor_url 16.19
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_home_request_callback_urls 35.26
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_check_login_button 24.67
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_home_live_chat 26.30
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:36 url loaded
Passed test_home_and_skillup_page_check.py::TestSkillupVerification::test_explore_program_CTA_skillup 21.49
-------------------------------Captured log call--------------------------------
INFO  setup:home_page.py:66 Data Science & Business Analytics
Passed test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_search_functionality_skillup 26.35
No log output captured.
Passed test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_login_button 16.64
No log output captured.
Passed test_home_and_skillup_page_check.py::TestHomeVerification::test_homepage_report_details_to_DB 0.64
-------------------------------Captured log call--------------------------------
INFO  setup:test_home_and_skillup_page_check.py:47 Total rows present in file are 14 INFO  setup:test_home_and_skillup_page_check.py:63 Total Home page urls is 11 INFO  setup:test_home_and_skillup_page_check.py:64 Total testcases passes is 11 INFO  setup:test_home_and_skillup_page_check.py:65 Total testcases failed is 0 INFO  setup:db_helper.py:51 DB_type selected : mysql INFO  setup:db_connection.py:96 Requested Query : INSERT INTO automation_ice9.td_home_page_and_skillUp_report_details(module_name, sub_module_name, total_testcase_count, passed, failed, run_date) VALUES( 'Home page and Skill Up', 'HomePage', '11', '11', '0', '2023-04-25');
Passed test_home_and_skillup_page_check.py::TestSkillupVerification::test_SkillUp_report_details_to_DB 0.30
-------------------------------Captured log call--------------------------------
INFO  setup:test_home_and_skillup_page_check.py:278 Total rows present in file are 14 INFO  setup:test_home_and_skillup_page_check.py:294 Total Skill Up urls is 3 INFO  setup:test_home_and_skillup_page_check.py:295 Total testcases passes is 3 INFO  setup:test_home_and_skillup_page_check.py:296 Total testcases failed is 0 INFO  setup:db_helper.py:51 DB_type selected : mysql INFO  setup:db_connection.py:96 Requested Query : INSERT INTO automation_ice9.td_home_page_and_skillUp_report_details(module_name, sub_module_name, total_testcase_count, passed, failed, run_date) VALUES( 'Home page and Skill up', 'Skill Up', '3', '3', '0', '2023-04-25');