Report generated on 28-Jul-2023 at 04:19:19 by pytest-html v2.1.1
Packages | {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "7.2.2"} |
Platform | Windows-10-10.0.19041-SP0 |
Plugins | {"allure-pytest": "2.8.18", "datadir": "1.3.1", "html": "2.1.1", "metadata": "1.10.0", "order": "1.1.0", "xdist": "3.2.1"} |
Python | 3.8.5 |
23 tests ran in 1151.83 seconds.
(Un)check the boxes to filter the results.
21 passed, 0 skipped, 2 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Failed | test_home_and_skillup_page_check.py::TestHomeVerification::test_explore_program_CTA | 38.62 | |
self = <test_home_and_skillup_page_check.TestHomeVerification object at 0x0000021F9D6ADAC0> @pytest.mark.test_details("SLUB-T", "high", "HomePage", "Pallavi") def test_explore_program_CTA(self): time.sleep(15) self._close_all_window() self._test_add_rows_in_csv() url = pg_home_page.load_url() > message, counter = pg_home_page.explore_program_CTA() test_prod\test_home_and_skillup_page_check.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages_prod\home_page.py:53: in explore_program_CTA explore_program_verify = self.explore_program_verify.get_text() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages_prod.home_page.HomePage object at 0x0000021F9D7E6640>, loc = 'explore_program_verify' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: explore_program_verify core\page_factory.py:60: NoSuchElementException -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [33mWARNING [0m setup:page_factory.py:53 the locator explore_program_verify on url https://www.simplilearn.com/#post-graduate-programs is not visible | |||
Failed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_skillUp_certificate_unlock | 82.19 | |
self = <test_home_and_skillup_page_check.TestSkillupVerification object at 0x0000021F9D7C9B80> testdata = {'chat_gtp_elearning_id': '6000', 'dashboard_url': '/dashboard', 'email': 'simplilearnautomation+script1682680655@gmail.com', 'password': 'Simpli@123'} @pytest.mark.test_details("SLUB-T", "high", "SkillUp", "Pradeep") def test_skillUp_certificate_unlock(self, testdata): self._close_all_window() message = '' try: login_helper.lms_prod_login(testdata['email'], testdata['password']) selenium_helper.wait_for_page_to_load(60, testdata['dashboard_url']) time.sleep(12) pytest.driver.refresh() time.sleep(12) lms_page.go_to_skillup_course(testdata['chat_gtp_elearning_id']) > lms_page.click_on_certificate() test_prod\test_home_and_skillup_page_check.py:593: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages_prod.lms_page.LmsPage object at 0x0000021F9D7E6AF0> def click_on_certificate(self): selenium_helper.is_locator_present(self.locators['certificate_icon_on_learning_page'],10) > self.certificate_icon_on_learning_page.click_button() pages_prod\lms_page.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages_prod.lms_page.LmsPage object at 0x0000021F9D7E6AF0>, loc = 'certificate_icon_on_learning_page' def __getattr__(self, loc): logging.debug(f"the current locator to be found {loc} on url {self.driver.current_url}") if loc in self.locators.keys(): error = "" for loc_pair in self.locators[loc]: loc_pair[0] = selenium_helper.TYPE_OF_LOCATORS[loc_pair[0].lower()] loc_pair = tuple(loc_pair) try: element = WebDriverWait(self.driver, self.timeout).until( EC.presence_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e #logging.warning(f"the locator {loc} on url {self.driver.current_url} is not present") continue try: element = WebDriverWait(self.driver, self.timeout).until( EC.visibility_of_element_located(loc_pair) ) except (StaleElementReferenceException, NoSuchElementException, TimeoutException) as e: error = e logging.warning(f"the locator {loc} on url {self.driver.current_url} is not visible") continue element = self.get_web_element(*loc_pair) element._locator = loc_pair logging.debug(f"the locator {loc} is found!") return element > raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) E selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: certificate_icon_on_learning_page core\page_factory.py:60: NoSuchElementException During handling of the above exception, another exception occurred: self = <test_home_and_skillup_page_check.TestSkillupVerification object at 0x0000021F9D7C9B80> testdata = {'chat_gtp_elearning_id': '6000', 'dashboard_url': '/dashboard', 'email': 'simplilearnautomation+script1682680655@gmail.com', 'password': 'Simpli@123'} @pytest.mark.test_details("SLUB-T", "high", "SkillUp", "Pradeep") def test_skillUp_certificate_unlock(self, testdata): self._close_all_window() message = '' try: login_helper.lms_prod_login(testdata['email'], testdata['password']) selenium_helper.wait_for_page_to_load(60, testdata['dashboard_url']) time.sleep(12) pytest.driver.refresh() time.sleep(12) lms_page.go_to_skillup_course(testdata['chat_gtp_elearning_id']) lms_page.click_on_certificate() message = lms_page.unlock_skillup_certificate_from_cart() url = pytest.driver.current_url lead_type = 'Skillup_unlock_certificate_check' filename = "report.csv" rows = [[lead_type, url, message]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception: logging.info("Exception Occured",exc_info= True) lead_type = 'Skillup_unlock_certificate_check' message = 'Failed' filename = "report.csv" url = pytest.driver.current_url rows = [[lead_type, url, message]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) > pytest.fail("Failed in Exception") E Failed: Failed in Exception test_prod\test_home_and_skillup_page_check.py:614: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:lms_page.py:28 Clicked on skillup course in learner dashboard [32mINFO [0m setup:test_home_and_skillup_page_check.py:604 Exception Occured Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_home_and_skillup_page_check.py", line 593, in test_skillUp_certificate_unlock lms_page.click_on_certificate() File "C:\test_repos\pre_sales_test_python\pages_prod\lms_page.py", line 36, in click_on_certificate self.certificate_icon_on_learning_page.click_button() File "C:\test_repos\pre_sales_test_python\core\page_factory.py", line 60, in __getattr__ raise NoSuchElementException("An exception of type " + type(error).__name__ + " occurred. With Element -: " + loc) selenium.common.exceptions.NoSuchElementException: Message: An exception of type TimeoutException occurred. With Element -: certificate_icon_on_learning_page | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_explore_category_CTA | 24.79 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [32mINFO [0m setup:home_page.py:82 Menu item : Data Science & Business Analytics [32mINFO [0m setup:home_page.py:89 url loading is:https://www.simplilearn.com/data-science-and-business-analytics [32mINFO [0m setup:home_page.py:93 Data Science & Business Analytics | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_requestdemo_CTA | 22.61 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [32mINFO [0m setup:home_page.py:116 request_demo_url is :https://www.simplilearn.com/corporate-training | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_all_course_mega_menu | 16.22 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [32mINFO [0m setup:home_page.py:178 Redirected URL is: https://www.simplilearn.com/data-science-and-business-analytics [32mINFO [0m setup:home_page.py:184 Response Code of the new page: 200 [32mINFO [0m setup:home_page.py:188 Test Passed: Page loaded successfully with status code 200. | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_check_search_functionality | 61.88 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_Resources_url | 47.36 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_check_redirection_slimplilearn_for_business_url | 51.13 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_become_an_instructor_url | 47.81 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_check_rediirection_hire_from_us_url | 47.62 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [32mINFO [0m setup:home_page.py:497 Hire from us url Opened is: https://www.simplilearn.com/simplirecruit | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_home_request_callback_urls | 37.56 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [32mINFO [0m setup:university_master_page.py:238 Request Callback Lead Submission Status message is Thank you for showing your interest ! Our educational consultant will get back to you shortly ! | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_check_login_button | 61.40 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded [32mINFO [0m setup:home_page.py:521 https://accounts.simplilearn.com/user/login?redirect_url=https%3A%2F%2Flms.simplilearn.com%2F | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_home_live_chat | 27.31 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:39 url loaded | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_explore_program_CTA_skillup | 43.60 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:536 Search Button Popup Appeared and clicked [32mINFO [0m setup:home_page.py:68 Data Science & Business Analytics | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_search_functionality_skillup | 48.41 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:536 Search Button Popup Appeared and clicked | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_rediirection_live_skillup_url | 75.81 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:536 Search Button Popup Appeared and clicked [32mINFO [0m setup:home_page.py:293 Simplilearn Live Skill Up url opend is : https://www.youtube.com/@SimplilearnOfficial/streams | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_rediirection_quiz | 76.07 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:536 Search Button Popup Appeared and clicked [32mINFO [0m setup:home_page.py:327 Skill Up Quiz Url is opened successfully | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_login_button | 46.84 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:home_page.py:536 Search Button Popup Appeared and clicked [32mINFO [0m setup:home_page.py:521 https://accounts.simplilearn.com/user/login?redirect_url=https%3A%2F%2Flms.simplilearn.com%2F | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_Start_learning_button | 58.63 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:skillUp_page.py:61 Search Button Popup Appeared and clicked [32mINFO [0m setup:skillUp_page.py:34 Clicked on Start lerning Button [32mINFO [0m setup:skillUp_page.py:39 New window Opend [32mINFO [0m setup:skillUp_page.py:41 WebDriver Switched to new Window [32mINFO [0m setup:skillUp_page.py:43 url_opened is : https://accounts.simplilearn.com/user/register?assignmentToken=Y291cnNlX2lkJDY2NCZjb3VudHJ5X2lkJDYmY291bnRyeV9jb2RlJElOJmRldmljZSREZXNrdG9wJmRldmljZU9zJFdpbmRvd3MgMTAmcGFnZV9zb3VyY2UkR0ExLjIuMjgyMDczMDg2LjE2OTA0OTc3OTQudXRtY3NyPShkaXJlY3QpfHV0bWNjbj0oZGlyZWN0KXx1dG1jbWQ9KG5vbmUpfHNsdGltZT0xNjkwNDk3Nzk0JmFjY2Vzc19kYXlzJDkwJnJld2FyZF9lbmFibGVkJHRydWU=&utm_source=(direct)&utm_campaign=(direct)&utm_medium=(none)&skillup=true [32mINFO [0m setup:skillUp_page.py:52 success | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_take_quiz_from_lms_dashboard_button | 116.81 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:lms_page.py:164 New window Opend [32mINFO [0m setup:lms_page.py:166 WebDriver Switched to new Window [32mINFO [0m setup:lms_page.py:168 url_opened is : https://www.simplilearn.com/free-quiz-skillup [32mINFO [0m setup:lms_page.py:180 success | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_check_invite_now_from_lms_dashboard_button | 104.17 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:lms_page.py:192 clicked on Invite Now [32mINFO [0m setup:lms_page.py:197 New window Opend [32mINFO [0m setup:lms_page.py:199 WebDriver Switched to new Window [32mINFO [0m setup:lms_page.py:201 url_opened is : https://www.simplilearn.com/skillup-referral?refcode=test3515 [32mINFO [0m setup:lms_page.py:208 clicked on share on Social Media [32mINFO [0m setup:lms_page.py:212 New window Opend [32mINFO [0m setup:lms_page.py:214 WebDriver Switched to new Window [32mINFO [0m setup:lms_page.py:216 url_opened is : https://www.linkedin.com/uas/login?session_redirect=https%3A%2F%2Fwww.linkedin.com%2FshareArticle%3Fmini%3Dtrue%26url%3Dhttps%253A%252F%252Fsimpli-web.app.link%252Fe%252FbY1LeeBPMBb [32mINFO [0m setup:lms_page.py:241 success | |||
Passed | test_home_and_skillup_page_check.py::TestHomeVerification::test_homepage_report_details_to_DB | 0.73 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_home_and_skillup_page_check.py:63 Total rows present in file are 20 [32mINFO [0m setup:test_home_and_skillup_page_check.py:79 Total Home page urls is 11 [32mINFO [0m setup:test_home_and_skillup_page_check.py:80 Total testcases passes is 11 [32mINFO [0m setup:test_home_and_skillup_page_check.py:81 Total testcases failed is 0 [32mINFO [0m setup:db_helper.py:51 DB_type selected : mysql [32mINFO [0m 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-07-28'); | |||
Passed | test_home_and_skillup_page_check.py::TestSkillupVerification::test_SkillUp_report_details_to_DB | 0.42 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_home_and_skillup_page_check.py:347 Total rows present in file are 20 [32mINFO [0m setup:test_home_and_skillup_page_check.py:365 Total Skill Up urls is 9 [32mINFO [0m setup:test_home_and_skillup_page_check.py:366 Total testcases passes is 8 [32mINFO [0m setup:test_home_and_skillup_page_check.py:367 Total testcases failed is 1 [32mINFO [0m setup:db_helper.py:51 DB_type selected : mysql [32mINFO [0m 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', '9', '8', '1', '2023-07-28'); |