Report generated on 23-Jul-2023 at 02:45:55 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 |
65 tests ran in 9949.82 seconds.
(Un)check the boxes to filter the results.
56 passed, 0 skipped, 9 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[T] | 238.68 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x0000025221E91CA0> value = 'T', initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", certification_program_course_read_csv()) def test_Orders_and_Payment_Flow_certification(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt') logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_certification_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() time.sleep(2) pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) selenium_helper.scroll_to_page_bottom() self.pg_home.close_iframe_popUp() self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10): course_data = None self.pg_orders.click_enroll_now_certification(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_certification(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'Certification Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][1],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:207: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:59 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:60 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:182 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 148, in test_Orders_and_Payment_Flow_certification for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:193 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[W] | 238.22 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x0000025221E91EE0> value = 'W', initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", certification_program_course_read_csv()) def test_Orders_and_Payment_Flow_certification(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt') logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_certification_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() time.sleep(2) pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) selenium_helper.scroll_to_page_bottom() self.pg_home.close_iframe_popUp() self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10): course_data = None self.pg_orders.click_enroll_now_certification(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_certification(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'Certification Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][1],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:207: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:59 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:60 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:182 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 148, in test_Orders_and_Payment_Flow_certification for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:193 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[X] | 237.96 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x0000025221E91FA0> value = 'X', initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", certification_program_course_read_csv()) def test_Orders_and_Payment_Flow_certification(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt') logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_certification_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() time.sleep(2) pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) selenium_helper.scroll_to_page_bottom() self.pg_home.close_iframe_popUp() self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10): course_data = None self.pg_orders.click_enroll_now_certification(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_certification(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'Certification Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][1],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:207: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:59 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:60 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:182 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 148, in test_Orders_and_Payment_Flow_certification for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:193 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AD] | 237.68 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x0000025221EA4460> value = 'AD', initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", certification_program_course_read_csv()) def test_Orders_and_Payment_Flow_certification(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt') logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_certification_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() time.sleep(2) pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) selenium_helper.scroll_to_page_bottom() self.pg_home.close_iframe_popUp() self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10): course_data = None self.pg_orders.click_enroll_now_certification(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_certification(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'Certification Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][1],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:207: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:59 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:60 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:182 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 148, in test_Orders_and_Payment_Flow_certification for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:193 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AH] | 237.41 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x0000025221EA4760> value = 'AH', initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", certification_program_course_read_csv()) def test_Orders_and_Payment_Flow_certification(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt') logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_certification_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() time.sleep(2) pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) selenium_helper.scroll_to_page_bottom() self.pg_home.close_iframe_popUp() self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10): course_data = None self.pg_orders.click_enroll_now_certification(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_certification(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'Certification Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][1],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:207: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:59 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:60 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:182 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 148, in test_Orders_and_Payment_Flow_certification for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:193 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AI] | 238.12 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowCertificationProgram object at 0x0000025221EA4820> value = 'AI', initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0000","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", certification_program_course_read_csv()) def test_Orders_and_Payment_Flow_certification(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' url_count = self._count_url_txt_file_subdomain('Orders_and_Payment_Flow_Certification.txt') logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_certification_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() time.sleep(2) pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) selenium_helper.scroll_to_page_bottom() self.pg_home.close_iframe_popUp() self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['common_button_enroll_now_certificaton'],10): course_data = None self.pg_orders.click_enroll_now_certification(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_certification(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Certification Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'Certification Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][1],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:207: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:59 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:60 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:182 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 148, in test_Orders_and_Payment_Flow_certification for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:193 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[P] | 193.00 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowMastersProgram object at 0x0000025221EA49D0>, value = 'P' initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0001","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", master_program_course_read_csv()) def test_Orders_and_Payment_Flow_masters_program(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' # self.add_rows_in_csv('Report.csv') this step is commentd to make one CSV file # self.add_rows_in_csv('Report.csv') #url_count = self._count_url_txt_file_subdomain('Order_and_Payment_Flow_masters.txt') #logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_master_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['btn_enroll_now_masters_program'],10): course_data = None self.pg_orders.click_enroll_now_for_masters(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_masters_program(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Masters Program' # course_type = sql_items['training_type_txt'] rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Masters Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'master Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][0],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:542: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:164 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:165 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:175 clicked on Enroll Now button for Masters Program again [32mINFO [0m setup:orders_page.py:180 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:181 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjEtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:517 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 482, in test_Orders_and_Payment_Flow_masters_program for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:528 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[X] | 191.91 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowMastersProgram object at 0x0000025221EB7F40>, value = 'X' initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0001","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", master_program_course_read_csv()) def test_Orders_and_Payment_Flow_masters_program(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' # self.add_rows_in_csv('Report.csv') this step is commentd to make one CSV file # self.add_rows_in_csv('Report.csv') #url_count = self._count_url_txt_file_subdomain('Order_and_Payment_Flow_masters.txt') #logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_master_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['btn_enroll_now_masters_program'],10): course_data = None self.pg_orders.click_enroll_now_for_masters(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_masters_program(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Masters Program' # course_type = sql_items['training_type_txt'] rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Masters Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'master Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][0],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:542: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:164 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:165 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:orders_page.py:175 clicked on Enroll Now button for Masters Program again [32mINFO [0m setup:orders_page.py:180 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:181 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNjUtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:517 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 482, in test_Orders_and_Payment_Flow_masters_program for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:528 1st else block in Exception | |||
Failed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[AB] | 192.09 | |
self = <test_orders_and_payment_flow.TestOrderAndPaymentFlowMastersProgram object at 0x0000025221EBF280>, value = 'AB' initialize_pages = None testdata = {'contact_no': '123456789', 'country': ['in', 'us', 'gb', 'au', 'de', 'sg', ...], 'db_type': 'mysql', 'dynamo_db_type': 'dynamo', ...} @pytest.mark.test_details("0001","high","Order and Payment Flow","Pradeep") @pytest.mark.parametrize("value", master_program_course_read_csv()) def test_Orders_and_Payment_Flow_masters_program(self,value,initialize_pages,testdata): ''' Objective: Make payment and validate the data in Dynamo db and mySql Step 01: get url Step 02: click on Enroll Now CTA Step 03: Make payment Step 04: Validate the Dynamo db and MySql daya for the payment ''' # self.add_rows_in_csv('Report.csv') this step is commentd to make one CSV file # self.add_rows_in_csv('Report.csv') #url_count = self._count_url_txt_file_subdomain('Order_and_Payment_Flow_masters.txt') #logging.info(f"Total URL Present is: {url_count}") # Step 01: get url counter = 0 df = pd.read_csv('order_and_payment_master_prod.csv', on_bad_lines='skip') data = df[df['id']==value] url_value = data['url'].values[0] country_value = data['country'].values[0] try: pytest.driver.delete_all_cookies() pytest.driver.get(url_value) logging.info(f"Url Opened is: {url_value}") selenium_helper.wait_for_page_to_load(10,value) self.pg_orders.change_country(country_value) if selenium_helper.is_locator_present(self.pg_orders.locators['btn_enroll_now_masters_program'],10): course_data = None self.pg_orders.click_enroll_now_for_masters(url_value) course_data = self._complete_payment(country_value,testdata['payment_type'],testdata['name'],testdata['email_id'],testdata['contact_no']) logging.info(type(course_data)) time.sleep(5) logging.info(f"course_data: {course_data}") # Step 04: Validate the Dynamo db and MySql data for the payment token_no = pytest.driver.current_url.split('authtoken=')[-1] logging.info(f"Token No is: {token_no}") query = f"""SELECT emailId,contactNumber, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"name"', -1), '";', 1), '"', -1) AS name, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"training_type_txt"', -1), '";', 1), '"', -1) AS training_type_txt, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"display_total_price"', -1), '";', 1), '"', -1) AS display_total_price, SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(items, '"price"', -1), '";', 1), '"', -1) AS price FROM ssvc.cart where token = '{token_no}';""" sql_data = db_helper.get_prod_data(query,testdata['db_type']) logging.info(f"RAW SQL Data: {sql_data}\n") # sql_items = self.convert_items_to_json(sql_data) # logging.info(f"SQL DATA in JSON format: {sql_items}\n") all_payment_cta = [] for i in course_data[1][1]: a = (list(i.values())[0]) if 'failed' in list(i.values())[0].lower(): all_payment_cta.append('fail') message = self.verify_mySQL_data_masters_program(course_data[0],sql_data,testdata) if 'successfull' in message[0].lower() and len(all_payment_cta) == 0: status = 'Success' else: status = 'Fail' filename = 'Report.csv' course_name = course_data[0]['course_name'] course_type = 'Masters Program' # course_type = sql_items['training_type_txt'] rows = [[country_value.upper(),course_name,course_type,url_value,message,course_data[1][0],course_data[1][1],status]] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if status == 'Fail': pytest.fail("Status is Fail") else: message = "Enroll Now button is not Appearing" logging.info(message) filename = 'Report.csv' course_name = self.pg_orders.course_name_in_url.get_text() course_type = 'Masters Program' rows = [[country_value.upper(),course_name,course_type,url_value,message,'','','CTA NOT AVAILABLE']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) except Exception as e: counter = counter+1 logging.error("Exception occurred", exc_info=True) filename = 'Report.csv' course_name = 'NA' course_type = 'master Program' if course_data == None: logging.info("If block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'','','','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 1: logging.info("1st else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[0],'','Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) elif len(course_data) == 2: logging.info("2nd else block in Exception") rows = [[country_value.upper(),course_name,course_type,url_value,'',course_data[1][0],course_data[1][0],'Fail']] with open(filename, 'a', newline='\n') as csvfile: csvwriter = csv.writer(csvfile) csvwriter.writerows(rows) if counter != 0: > pytest.fail('Failed') E Failed: Failed test_prod\test_orders_and_payment_flow.py:542: Failed -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:164 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:165 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrOTcxLTEyMzQ1Njc4OSxTaW1wbGlsZWFybg== [32mINFO [0m setup:orders_page.py:175 clicked on Enroll Now button for Masters Program again [32mINFO [0m setup:orders_page.py:180 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:181 url opend for paymnent is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrOTcxLTEyMzQ1Njc4OSxTaW1wbGlsZWFybg== [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//div[@id='ssvcApp']//div[contains(text(), 'Cart Summary')][contains(@class,'active_heading')]") on url https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrOTcxLTEyMzQ1Njc4OSxTaW1wbGlsZWFybg== is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ('Failed to Load Cart Page',) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrOTcxLTEyMzQ1Njc4OSxTaW1wbGlsZWFybg== [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [] [31m[1mERROR [0m setup:test_orders_and_payment_flow.py:517 Exception occurred Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 482, in test_Orders_and_Payment_Flow_masters_program for i in course_data[1][1]: IndexError: tuple index out of range [32mINFO [0m setup:test_orders_and_payment_flow.py:528 1st else block in Exception | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[A] | 186.13 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 171: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 129, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Aug 05 - Aug 06\\n(2 days) Classroom', 'base_price': '₹ 18,999.00', 'final_price': '22,418.82'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', '', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:selenium_helper.py:61 Message: [33mWARNING [0m setup:selenium_helper.py:62 the locator ('xpath', "//li[@id='shopse']//h2[contains(text(),'EMI')][not(contains(@style,'none'))]/ancestor::a") on url https://www.simplilearn.com/secure/checkout/details?authtoken=f71ee6f0ea571fe640d96677c00556f1fed2af4abac4cc3ddba66620d7e8e83c is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Aug 05 - Aug 06\n(2 days) Classroom', 'base_price': '₹ 18,999.00', 'final_price': '22,418.82'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', '', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: f71ee6f0ea571fe640d96677c00556f1fed2af4abac4cc3ddba66620d7e8e83c [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '18,999.00', 'price': '22418.82'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[B] | 79.23 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[C] | 94.67 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 128: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 129, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': '₹ 174,195.00', 'final_price': '205,550.10'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:home_page.py:519 Popup Iframe present [32mINFO [0m setup:home_page.py:521 Inside Iframe [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': '₹ 174,195.00', 'final_price': '205,550.10'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 2d0103f49a19bbbe9984c67917876933c5c098aa7a572cb2ded4b1623e20b4a1 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'CISA<sup>®</sup> Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '174,195.00', 'price': '205550.10'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[D] | 108.17 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 134: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 129, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '₹ 168,525.00', 'final_price': '198,859.50'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '₹ 168,525.00', 'final_price': '198,859.50'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 18a4087427311019b9a3d74be7c25f463346f6652ebe8dd16e61868126faf623 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'CISSP<sup>®</sup> Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '168,525.00', 'price': '198859.50'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[E] | 108.88 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 163: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 129, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Big Data Hadoop and Spark Developer', 'course_type': 'Online Self Learning', 'base_price': '₹ 21,420.00', 'final_price': '25,275.60'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Big Data Hadoop and Spark Developer', 'course_type': 'Online Self Learning', 'base_price': '₹ 21,420.00', 'final_price': '25,275.60'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 4041829a089ab40fe057d5496cfa3c790fffd8c99e4555d137aaff36204a0b42 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'Big Data Hadoop and Spark Developer Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '21,420.00', 'price': '25275.60'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[F] | 186.44 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: US [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Jul 24 - Jul 25\n(2 days) Classroom', 'base_price': '$ 599.00', 'final_price': '599.00'}, (['Credit Card', 'PayPal', 'Affirm', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'Affirm': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: d3b49887e59f6763183b2dbce98b80a771b7eb103be3be4c4b1aabcc749af50a [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '599.00', 'price': '599.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[G] | 79.04 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: US [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[H] | 111.85 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: US [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': '$ 2,299.00', 'final_price': '2,299.00'}, (['Credit Card', 'PayPal', 'Affirm', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'Affirm': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 56f2c482508e097b5491db9fc9019f89c3d990e2a67593fb3d6d112886062576 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'CISA<sup>®</sup> Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '2,299.00', 'price': '2299.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[I] | 114.62 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: US [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '$ 2,200.00', 'final_price': '2,200.00'}, (['Credit Card', 'PayPal', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 80e5ecfbc2d1a25d1c7511b326744893ebb7dc97900b2431474335acec7333db [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'CISSP<sup>®</sup> Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '2,200.00', 'price': '2200.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[J] | 114.83 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: US [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Big Data Hadoop and Spark Developer', 'course_type': 'Online Self Learning', 'base_price': '$ 899.00', 'final_price': '899.00'}, (['Credit Card', 'PayPal', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 647a908ad883a0d304a416ad19624093ce70b5f28aee4a535ad43282efdb8f36 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'Big Data Hadoop and Spark Developer Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '899.00', 'price': '899.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[K] | 219.80 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Jul 26 - Jul 28\n(2 days) Classroom', 'base_price': '£ 549.00', 'final_price': '549.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 16db2903809d449e7ba5256a8a735a4d2b3f6e0ac4f87b943985721652f6ebc1 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+44-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '549.00', 'price': '549.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[L] | 78.77 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[M] | 146.47 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': '£ 2,799.00', 'final_price': '2,799.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 86d40f387c9ac6f9986408dc8a599f637699486d590cb4fb40e9daabdf510b72 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+44-123456789', 'name': 'CISA<sup>®</sup> Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '2,799.00', 'price': '2799.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[N] | 143.55 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '£ 2,099.00', 'final_price': '2,099.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 30a41c3f0bed717aab0effa3a1a074b57b3ea690a4aa468bb4226a8e769f0bdc [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+44-123456789', 'name': 'CISSP<sup>®</sup> Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '2,099.00', 'price': '2099.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[O] | 145.50 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Big Data Hadoop and Spark Developer', 'course_type': 'Online Self Learning', 'base_price': '£ 969.00', 'final_price': '969.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 93c1c9caaa556c1b36d22aee7ba92b064574d0793eced25a8d76ca1822a65217 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+44-123456789', 'name': 'Big Data Hadoop and Spark Developer Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '969.00', 'price': '969.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[P] | 351.17 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:43 Payment Page is not Loaded [32mINFO [0m setup:orders_page.py:44 url opend for payment is : https://www.simplilearn.com/cart/add-to-cart?auh=c2ltcGxpbGVhcm5hdXRvbWF0aW9uQGdtYWlsLmNvbSwrNDQtMTIzNDU2Nzg5LFNpbXBsaWxlYXJu [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:54 clicked on Enroll Now button again [32mINFO [0m setup:orders_page.py:57 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Jul 26 - Jul 28\n(2 days) Classroom', 'base_price': 'A$ 799.00', 'final_price': '799.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: d074e3d14cba0cc313d2d9b0ee749cda7e2cd138d0a082b18dd9f8e0f1bbfd73 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '799.00', 'price': '799.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[Q] | 79.37 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[R] | 144.63 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': 'A$ 3,799.00', 'final_price': '3,799.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 73920abaefcf0a076e70abde70d8de12fc8b533bfebc7673f8748eb52ad8086d [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'CISA<sup>®</sup> Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '3,799.00', 'price': '3799.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[S] | 144.60 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': 'A$ 2,689.00', 'final_price': '2,689.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: b2b9b5f2ed67c333725337c4e8bf0f1a75f1ceb7a8c193efad78b1fb296c10cc [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'CISSP<sup>®</sup> Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '2,689.00', 'price': '2689.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[U] | 218.36 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Jul 26 - Jul 28\n(2 days) Classroom', 'base_price': '€ 599.00', 'final_price': '599.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 8e49aaebc75381d7bc49d7f5ebcf565507dc64b7c834ccedebffc9e08c8cec34 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '599.00', 'price': '599.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[V] | 78.91 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[Y] | 142.73 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/big-data-and-analytics/big-data-and-hadoop-training [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Big Data Hadoop and Spark Developer', 'course_type': 'Online Self Learning', 'base_price': '€ 749.00', 'final_price': '749.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 0d4b5568732caf7bb0ef3065c48c8854b130caddc6346e80ff3576787b5fbb4e [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+49-123456789', 'name': 'Big Data Hadoop and Spark Developer Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '749.00', 'price': '749.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[Z] | 217.10 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Jul 26 - Jul 28\n(2 days) Classroom', 'base_price': '$ 599.00', 'final_price': '646.92'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: b607d02fb4f3853f41e1319d347c6290ee75c7f401ea7e9a6336653aeb865a0b [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+49-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '599.00', 'price': '646.92'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AA] | 84.92 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AB] | 143.25 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': '$ 2,799.00', 'final_price': '3,022.92'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 3ea95abfa409e6f2a4419836d87275d0b87418556f0020cdca02139437ace4a7 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'CISA<sup>®</sup> Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '2,799.00', 'price': '3022.92'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AC] | 143.42 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cissp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISSP®', 'course_type': 'Online Self Learning', 'base_price': '$ 2,099.00', 'final_price': '2,266.92'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 3679c41c655589254daf059b7b729ff0b4cf1100d462cb0fd562206851ac37b9 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'CISSP<sup>®</sup> Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '2,099.00', 'price': '2266.92'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AE] | 216.99 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/agile-and-scrum-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//button[contains(text(),'Enroll now')]") on url https://www.simplilearn.com/agile-and-scrum/csm-certification-training is not visible [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'Certified ScrumMaster® (CSM)', 'course_type': 'Jul 26 - Jul 28\n(2 days) Classroom', 'base_price': '$ 599.00', 'final_price': '599.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: 42c96b04cb75f7cb598d1ddcd68e8de050e64008995ade499b7106aa3a6f96ac [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'Certified ScrumMaster<sup>®</sup> (CSM) Classroom', 'training_type_txt': 'Classroom', 'display_total_price': '599.00', 'price': '599.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AF] | 79.67 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/agile-and-scrum/pmi-acp-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [32mINFO [0m setup:test_orders_and_payment_flow.py:171 Enroll Now button is not Appearing | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification[AG] | 143.69 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:104 Total URL Present is: 5 [32mINFO [0m setup:test_orders_and_payment_flow.py:116 Url Opened is: https://www.simplilearn.com/cyber-security/cisa-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [32mINFO [0m setup:orders_page.py:38 clicked on Enroll Now button [32mINFO [0m setup:orders_page.py:41 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:233 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:126 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:129 course_data: ({'course_name': 'CISA®', 'course_type': 'Online Bootcamp', 'base_price': '$ 2,799.00', 'final_price': '2,799.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:133 Token No is: d08fa1dc5ca4872006457ed81a75ab89db2b317aae746fbc2222d9467bd7e217 [32mINFO [0m setup:test_orders_and_payment_flow.py:143 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'CISA<sup>®</sup> Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '2,799.00', 'price': '2799.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:359 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[A] | 141.55 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 160: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 463, in test_Orders_and_Payment_Flow_masters_program logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '₹ 45,762.00', 'final_price': '53,999.16'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '₹ 45,762.00', 'final_price': '53,999.16'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 36504fa500be4a57e5c5b66643b2eb69f3e9f97c7c3658f4de5f646594e029c5 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '45,762.00', 'price': '53999.16'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[B] | 141.09 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 157: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 463, in test_Orders_and_Payment_Flow_masters_program logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '₹ 45,762.00', 'final_price': '53,999.16'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '₹ 45,762.00', 'final_price': '53,999.16'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 9ffa42ee68dd9f79f20026ae4833eb231fdf86032fa860d4577f837c3e362447 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '45,762.00', 'price': '53999.16'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[C] | 140.10 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 142: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 463, in test_Orders_and_Payment_Flow_masters_program logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '₹ 52,541.50', 'final_price': '61,998.97'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '₹ 52,541.50', 'final_price': '61,998.97'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: ddca8b577df94642b3fb81d78552a1a2a5c9c339acc26c7b1330f2ff9d548738 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '52,541.50', 'price': '61998.97'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[D] | 68.49 | |
------------------------------Captured stderr call------------------------------ --- Logging error --- Traceback (most recent call last): File "c:\users\qateam\appdata\local\programs\python\python38\lib\logging\__init__.py", line 1084, in emit stream.write(msg + self.terminator) File "c:\users\qateam\appdata\local\programs\python\python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20b9' in position 151: character maps to <undefined> Call stack: File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\qateam\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\qateam\AppData\Local\Programs\Python\Python38\Scripts\pytest.exe\__main__.py", line 7, in <module> sys.exit(console_main()) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 190, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 167, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 112, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 131, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 220, in call_and_report call = call_runtest_hook(item, when, **kwds) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 259, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 339, in from_call result: Optional[TResult] = func() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 260, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 167, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1789, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall res = hook_impl.function(*args) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 195, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 463, in test_Orders_and_Payment_Flow_masters_program logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '₹ 54,407.00', 'final_price': '64,200.26'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: IN [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:345 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '₹ 54,407.00', 'final_price': '64,200.26'}, (['Credit Card', 'Debit Card', 'Net Banking', 'UPI', 'EMI', 'ShopSe EMI', 'CCAvenue'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'debitcard': 'All option clickable and Payment CTA appearing '}, {'net_banking': 'All option clickable and Payment CTA appearing '}, {'UPI': 'All option clickable and Payment CTA appearing '}, {'EMI': 'All option clickable and Payment CTA appearing '}, {'CCAvenue': 'All option clickable and Payment CTA appearing '}, {'ShopSE EMI': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 1c7e0edef78ab95cb536e23d118bfb3d5a9768c0939d8edeb68a96bef147b0e5 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'Digital Marketing Specialist Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '54,407.00', 'price': '64200.26'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[E] | 144.48 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: US [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,499.00', 'final_price': '1,499.00'}, (['Credit Card', 'PayPal', 'Affirm', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'Affirm': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 212962efb561c29ad2bdcb7686436a767c1b415bed5af719a165933f4bdd2234 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,499.00', 'price': '1499.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[F] | 144.07 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: US [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,499.00', 'final_price': '1,499.00'}, (['Credit Card', 'PayPal', 'Affirm', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'Affirm': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 5af0debbf8cf165be563bee2bfdf0699303ccf01cb57cc26f4b2bcecc9248517 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,499.00', 'price': '1499.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[G] | 144.25 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: US [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,999.00', 'final_price': '1,999.00'}, (['Credit Card', 'PayPal', 'Affirm', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'Affirm': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: fa8102a523c45aeea44eff1c4160bc5e58705cf4cd27b6ad94b227fdf186c484 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,999.00', 'price': '1999.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[H] | 72.13 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: US [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,649.00', 'final_price': '1,649.00'}, (['Credit Card', 'PayPal', 'Affirm', 'Klarna'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'Affirm': 'All option clickable and Payment CTA appearing '}, {'klarna': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 80457879a304df4525e4dabb9aa2c6cdb551c9215bc0839488fbae48f2800dcf [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'Digital Marketing Specialist Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '1,649.00', 'price': '1649.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[I] | 177.38 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 984118c67e4a4d832e759f09f5e9a813f0a1cb0d4582717a1284d441a5c413f7 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,390.00', 'price': '1390.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[J] | 175.59 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,099.00', 'final_price': '1,099.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 7baac04e19f2f3530880d00beff0341f719ebc9a095dbc6e6a11e758bf3e83d5 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+1-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,099.00', 'price': '1099.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[K] | 175.45 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,700.00', 'final_price': '1,700.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: ee1df95641b157523edf80ccfc38600e446ffc5f4020d64cd51482b1c08af879 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+44-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,700.00', 'price': '1700.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[L] | 102.96 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: GB [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '£ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 820f4e6daff1e228a7bad9bb8803dddc733d8056f773f861349dfa3f09730265 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+44-123456789', 'name': 'Digital Marketing Specialist Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '1,049.00', 'price': '1049.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[M] | 176.46 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': 'A$ 1,605.00', 'final_price': '1,605.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: fd90dde9dea8e19d5221f66e18e810acff25927e82aa9dc5e4e192fcbb468162 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,605.00', 'price': '1605.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[N] | 175.61 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': 'A$ 1,649.00', 'final_price': '1,649.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: c8d6c2277a07b2f670cf86fc6646e6a325500fe3fb3e028b5f2fafe129e4786b [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,649.00', 'price': '1649.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[O] | 176.05 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AU [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': 'A$ 1,949.00', 'final_price': '1,949.00'}, (['Credit Card', 'PayPal'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 9637e88e61568ae9ebca2b69cf4725c6a68e7f54a0bf413c13d6616b711d3cd8 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+61-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,949.00', 'price': '1949.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[Q] | 173.62 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 8635bb0cfad32986f0966c0817e4f29c2b718dda64f8447c5f6f5d57a82553a4 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+49-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,390.00', 'price': '1390.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[R] | 174.65 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,099.00', 'final_price': '1,099.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 3f9bb7dd2d35380a729853fe2168f06a747aa81efad2053ad2942c8c72ab7014 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+49-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,099.00', 'price': '1099.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[S] | 173.97 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,700.00', 'final_price': '1,700.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 44aa2e15247439f6f7500a8ac908a6e8d5e2a4e721a89655331a5a7c3515ed12 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+49-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,700.00', 'price': '1700.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[T] | 101.52 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/advanced-digital-marketing-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: DE [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Digital Marketing Specialist', 'course_type': 'Online Bootcamp', 'base_price': '€ 1,049.00', 'final_price': '1,049.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 9198a015617919d8bc9006f799f112aa1af9681a8678a6ee7cef584ac6d14012 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+49-123456789', 'name': 'Digital Marketing Specialist Online Self Learning', 'training_type_txt': 'Online Self Learning', 'display_total_price': '1,049.00', 'price': '1049.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[U] | 174.83 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,390.00', 'final_price': '1,501.20'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: cfcf920c93e2f0ab87cd9431bcba46ee46b2702466835670c6c369799d60a86e [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,390.00', 'price': '1501.20'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[V] | 175.41 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,099.00', 'final_price': '1,186.92'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 453a350c32653ad4b67152b1bcb8f26b1dbc6e2f238d9d2beee0eba1fae2351b [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,099.00', 'price': '1186.92'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[W] | 174.74 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: SG [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,400.00', 'final_price': '1,512.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: eec5072baf85c1214fa6a01852a18912d606fcee0702a9fbc1d307708ee0f377 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+65-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,400.00', 'price': '1512.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[Y] | 176.69 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Full Stack Web Developer - MEAN Stack', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,390.00', 'final_price': '1,390.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: c7fc4ba1140fb24a17c209a433a5a2728b63815e7d6a0543894f8524e016fead [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+971-123456789', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,390.00', 'price': '1390.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[Z] | 174.20 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/automation-testing-masters-program-certification-training-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/automation-testing-masters-program-certification-training-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'Automation Testing Masters Program', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,099.00', 'final_price': '1,099.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: 8614a752b9150a31d9edc083972c93625d44ec96c3456f37332628a2943bdc83 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+971-123456789', 'name': 'Automation Testing Masters Program Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,099.00', 'price': '1099.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program[AA] | 173.95 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:451 Url Opened is: https://www.simplilearn.com/ui-ux-design-masters-program-certification-course [32mINFO [0m setup:orders_page.py:30 Country Set to: AE [31m[1mERROR [0m setup:selenium_helper.py:113 Message: [33mWARNING [0m setup:selenium_helper.py:114 the locator ('xpath', "//form[@id='frmBundles']//a") on url https://www.simplilearn.com/ui-ux-design-masters-program-certification-course is not visible [32mINFO [0m setup:orders_page.py:159 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:162 Payment Page Loaded [31m[1mERROR [0m setup:ssvc_cart_page.py:55 Exception in City dropdown Traceback (most recent call last): File "C:\test_repos\pre_sales_test_python\pages_prod\ssvc_cart_page.py", line 52, in fill_learner_details_and_proceed self.city_dropdown.select_element_by_index(1) 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 -: city_dropdown [32mINFO [0m setup:test_orders_and_payment_flow.py:566 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:367 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:460 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:463 course_data: ({'course_name': 'UI/UX Design Expert', 'course_type': 'Online Bootcamp', 'base_price': '$ 1,400.00', 'final_price': '1,400.00'}, (['Credit Card', 'PayPal', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'All option clickable and Payment CTA appearing '}, {'2checkout': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:467 Token No is: a2e6e5de1a0d9ae5b8382775ef7e065b95fd323d3582ae0fb22bd6f14cefbb32 [32mINFO [0m setup:test_orders_and_payment_flow.py:477 RAW SQL Data: [{'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+971-123456789', 'name': 'UI/UX Design Expert Online Classroom Flexi-Pass', 'training_type_txt': 'Online Classroom Flexi-Pass', 'display_total_price': '1,400.00', 'price': '1400.00'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:703 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_orderAndPayment_flow_certification_program_report_details_to_DB | 0.54 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:55 Total rows present in file are 63 [32mINFO [0m setup:test_orders_and_payment_flow.py:71 Total certification program urls are 35 [32mINFO [0m setup:test_orders_and_payment_flow.py:73 Total testcases passes is 35 [32mINFO [0m setup:test_orders_and_payment_flow.py:74 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_order_and_payment_flow_report_details(module_name, sub_module_name, total_testcase_count, passed, failed, run_date) VALUES( 'Order and Payment Flow', 'Certification Program', '35', '35', '0', '2023-07-23'); | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_orderAndPayment_flow_master_program_report_details_to_DB | 0.42 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:390 Total rows present in file are 63 [32mINFO [0m setup:test_orders_and_payment_flow.py:406 Total master program urls are 25 [32mINFO [0m setup:test_orders_and_payment_flow.py:408 Total testcases passes is 25 [32mINFO [0m setup:test_orders_and_payment_flow.py:409 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_order_and_payment_flow_report_details(module_name, sub_module_name, total_testcase_count, passed, failed, run_date) VALUES( 'Order and Payment Flow', 'Master Program', '25', '25', '0', '2023-07-23'); |