Report generated on 03-Nov-2022 at 18:52:42 by pytest-html v2.1.1
Packages | {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "6.1.0"} |
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"} |
Python | 3.8.5 |
2 tests ran in 314.39 seconds.
(Un)check the boxes to filter the results.
2 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowCertificationProgram::test_Orders_and_Payment_Flow_certification | 128.44 | |
------------------------------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 150: 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 187, in console_main code = main() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\config\__init__.py", line 164, in main ret = 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 306, 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 257, 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 313, 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 338, 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 110, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 127, 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 216, 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 255, in call_runtest_hook return CallInfo.from_call( File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 310, in from_call result = func() # type: Optional[TResult] File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\runner.py", line 256, 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 163, in pytest_runtest_call item.runtest() File "c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\_pytest\python.py", line 1627, 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 184, in pytest_pyfunc_call result = testfunction(**testargs) File "C:\test_repos\pre_sales_test_python\test_prod\test_orders_and_payment_flow.py", line 57, in test_Orders_and_Payment_Flow_certification logging.info(f"course_data: {course_data}") Message: "course_data: ({'course_name': 'Agile Scrum Foundation', 'course_type': 'Online Self Learning', 'base_price': '₹ 10,499.00', 'final_price': '12,388.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': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}]))" Arguments: () -------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:37 Total URL Present is: 1 [32mINFO [0m setup:test_orders_and_payment_flow.py:48 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 [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=ebb3a3537ce52ca1362dddfbfba49e15fabd57f0fa4f84753719f3306a4e4810 is not visible [32mINFO [0m setup:test_orders_and_payment_flow.py:145 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:316 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:57 course_data: ({'course_name': 'Agile Scrum Foundation', 'course_type': 'Online Self Learning', 'base_price': '₹ 10,499.00', 'final_price': '12,388.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': 'Payment CTA appearing'}, {'EMI': 'Payment CTA appearing'}, {'CCAvenue': 'Payment CTA appearing'}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:61 Token No is: ebb3a3537ce52ca1362dddfbfba49e15fabd57f0fa4f84753719f3306a4e4810 [32mINFO [0m setup:test_orders_and_payment_flow.py:65 RAW SQL Data: [{'items': 'a:1:{i:0;a:23:{s:2:"id";s:1:"1";s:4:"name";s:43:"Agile Scrum Foundation Online Self Learning";s:11:"description";s:4:" - 1";s:5:"price";s:8:"12388.82";s:9:"basePrice";s:16:"10499.0000000000";s:19:"display_total_price";s:9:"10,499.00";s:8:"quantity";i:1;s:11:"isEarlyBird";i:0;s:4:"type";s:6:"online";s:15:"trainingType_id";s:1:"2";s:10:"accessDays";s:3:"180";s:13:"productTypeId";s:1:"1";s:15:"productTypeName";s:6:"course";s:11:"actual_name";s:22:"Agile Scrum Foundation";s:7:"priceId";s:0:"";s:11:"billingType";i:1;s:7:"img_url";s:96:"https://www.simplilearn.com/ice9/course_images/icons/AGILE-AND-SCRUM-Agile-Scrum-Foundation.svgz";s:10:"course_url";s:55:"/agile-and-scrum/agile-and-scrum-certification-training";s:17:"training_type_txt";s:20:"Online Self Learning";s:9:"messageTT";s:0:"";s:16:"primary_label_id";s:1:"9";s:18:"primary_label_name";s:15:"Agile and Scrum";s:12:"cateforyInfo";a:1:{i:9;s:15:"Agile and Scrum";}}}', 'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:67 SQL DATA in JSON format: {'id': '1', 'name': 'Agile Scrum Foundation Online Self Learning', 'description': ' - 1', 'price': '12388.82', 'basePrice': '10499.0000000000', 'display_total_price': '10,499.00', 'quantity': 'isEarlyBird', 'type': 'online', 'trainingType_id': '2', 'accessDays': '180', 'productTypeId': '1', 'productTypeName': 'course', 'actual_name': 'Agile Scrum Foundation', 'priceId': '', 'img_url': 'https://www.simplilearn.com/ice9/course_images/icons/AGILE-AND-SCRUM-Agile-Scrum-Foundation.svgz', 'course_url': '/agile-and-scrum/agile-and-scrum-certification-training', 'training_type_txt': 'Online Self Learning', 'messageTT': '', 'primary_label_id': '9', 'primary_label_name': 'Agile and Scrum'} [32mINFO [0m setup:test_orders_and_payment_flow.py:267 Verifiaction Status Log Message: ['DB Verification Successfull'] | |||
Passed | test_orders_and_payment_flow.py::TestOrderAndPaymentFlowMastersProgram::test_Orders_and_Payment_Flow_masters_program | 183.63 | |
-------------------------------Captured log call-------------------------------- [32mINFO [0m setup:test_orders_and_payment_flow.py:348 Total URL Present is: 1 [32mINFO [0m setup:test_orders_and_payment_flow.py:359 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 [32mINFO [0m setup:orders_page.py:157 clicked on Enroll Now button for Masters Program [32mINFO [0m setup:orders_page.py:160 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:448 <class 'tuple'> [32mINFO [0m setup:ssvc_cart_page.py:336 Payment Deatils Entered [32mINFO [0m setup:test_orders_and_payment_flow.py:367 <class 'tuple'> [32mINFO [0m setup:test_orders_and_payment_flow.py:370 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', 'Splitit', '2Checkout'], [{'creditcard': 'All option clickable and Payment CTA appearing '}, {'Paypal': 'Payment CTA appearing '}, {'2checkout': 'Payment CTA appearing '}, {'Split_it': 'All option clickable and Payment CTA appearing '}])) [32mINFO [0m setup:test_orders_and_payment_flow.py:374 Token No is: 23fe56c0d5c6b7534c677d1b48551d4c0e44b0a3f995bdbb5b937b3ac263d1e0 [32mINFO [0m setup:test_orders_and_payment_flow.py:378 RAW SQL Data: [{'items': 'a:1:{i:0;a:33:{s:2:"id";s:3:"105";s:4:"name";s:65:"Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass";s:11:"description";s:4:" - 1";s:5:"price";s:7:"1390.00";s:9:"basePrice";s:4:"1390";s:19:"display_total_price";s:8:"1,390.00";s:8:"quantity";i:1;s:11:"isEarlyBird";i:0;s:4:"type";s:9:"classroom";s:15:"trainingType_id";s:1:"9";s:10:"accessDays";s:3:"335";s:13:"productTypeId";s:1:"2";s:15:"productTypeName";s:6:"bundle";s:11:"actual_name";s:37:"Full Stack Web Developer - MEAN Stack";s:7:"priceId";s:0:"";s:11:"billingType";i:1;s:7:"img_url";s:83:"https://www.simplilearn.com/ice9/course_images/bundle313x225/mean-stack-master.svgz";s:10:"course_url";N;s:17:"training_type_txt";s:27:"Online Classroom Flexi-Pass";s:9:"messageTT";s:0:"";s:8:"cohortId";s:24:"633fe1958ce55e424c5f4509";s:14:"welcomeClassId";s:24:"633fe2188ce55e424c5f450c";s:10:"cohortName";s:25:"MS MEAN Mar 2023 Cohort 1";s:21:"welcomeClassStartDate";i:1675103400;s:15:"cohortStartDate";i:1677900600;s:13:"cohortEndDate";i:1693467000;s:25:"welcomeClassStartDateUser";i:1675130400;s:19:"cohortStartDateUser";i:1677927600;s:17:"cohortEndDateUser";i:1693508400;s:16:"primary_label_id";s:2:"25";s:18:"primary_label_name";s:20:"Software Development";s:12:"cateforyInfo";a:1:{i:25;s:20:"Software Development";}s:15:"program_version";i:1;}}', 'emailId': 'simplilearnautomation@gmail.com', 'contactNumber': '+91-123456789'}] [32mINFO [0m setup:test_orders_and_payment_flow.py:380 SQL DATA in JSON format: {'id': '105', 'name': 'Full Stack Web Developer - MEAN Stack Online Classroom Flexi-Pass', 'description': ' - 1', 'price': '1390.00', 'basePrice': '1390', 'display_total_price': '1,390.00', 'quantity': 'isEarlyBird', 'type': 'classroom', 'trainingType_id': '9', 'accessDays': '335', 'productTypeId': '2', 'productTypeName': 'bundle', 'actual_name': 'Full Stack Web Developer - MEAN Stack', 'priceId': '', 'img_url': 'https://www.simplilearn.com/ice9/course_images/bundle313x225/mean-stack-master.svgz', 'training_type_txt': 'Online Classroom Flexi-Pass', 'messageTT': '', 'cohortId': '633fe1958ce55e424c5f4509', 'welcomeClassId': '633fe2188ce55e424c5f450c', 'cohortName': 'MS MEAN Mar 2023 Cohort 1', 'welcomeClassStartDate': 'cohortStartDate', 'cohortEndDate': 'welcomeClassStartDateUser', 'cohortStartDateUser': 'cohortEndDateUser', 'primary_label_id': '25', 'primary_label_name': 'Software Development'} [32mINFO [0m setup:test_orders_and_payment_flow.py:625 Verifiaction Status Log Message: ['DB Verification Successfull'] |