Report generated on 28-Aug-2020 at 15:09:27 by pytest-html v2.1.1
JAVA_HOME | /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home |
Packages | {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "5.4.3"} |
Platform | macOS-10.15.6-x86_64-i386-64bit |
Plugins | {"allure-pytest": "2.8.17", "datadir": "1.3.1", "html": "2.1.1", "metadata": "1.10.0"} |
Python | 3.8.4 |
22 tests ran in 537.32 seconds.
(Un)check the boxes to filter the results.
20 passed, 0 skipped, 1 failed, 0 errors, 1 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Failed | test_forgot_password.py::TestForgotPassword::test_forgot_pwd_not_registered_email | 10.16 | |
self = <test_forgot_password.TestForgotPassword object at 0x105158df0>, initialize_pages = None, navigate_launch = None @pytest.mark.test_details("0","high","Sign In","Mohanraj") def test_forgot_pwd_not_registered_email(self,initialize_pages,navigate_launch): """ Objective: To verify Alert "The email address is not registered with us' when entering an invalid email or random email address (Launch the app) Pre-requisite: Logout if user is already logged in! Step1: On Launch page click on link 'login' Step2: On Login Page click on 'Forgot password?' Step3: On the Forgot Password screen enter random email on the email text field Step4: Verify the alert pop is found """ # Step1: On Launch page click on link 'login' self.launch_page.link_login.tap() # Step2: On Login Page click on 'Forgot password?' self.login_page.link_forger_pwd.tap() inputs = [utils.random_alpha_num(),utils.random_email()] for input in inputs: # Step3: On the Forgot Password screen enter random email on the email text field self.forgot_pwd_page.is_element_present(self.forgot_pwd_page.locators['edt_email'],10) self.forgot_pwd_page.edt_email.set_text(input) # Step4: Click on 'Send' self.forgot_pwd_page.is_element_present(self.forgot_pwd_page.locators['btn_send'],10) self.forgot_pwd_page.btn_send.tap() # Step5: Verify the alert pop is found assert self.login_page.is_alert_present() > assert pytest.driver.switch_to.alert.text == "This email address is not registered with us." E AssertionError: assert 'Something we... again later.' == 'This email a...ered with us.' E - This email address is not registered with us. E + Something went wrong E + Please try again later. test/test_forgot_password.py:148: AssertionError | |||
XFailed | test_account.py::TestAccount::test_cont_as_guest_location_check | 40.23 | |
self = <test_account.TestAccount object at 0x10503adc0>, initialize_pages = None, navigate_launch = None @pytest.mark.test_details("0","high","Account Page","Mohanraj") @pytest.mark.xfail def test_cont_as_guest_location_check(self,initialize_pages,navigate_launch): """ Objective: To check the location in Accounts based on user's mobile location (Launch the app) Pre-requisite: Set Location to India Step1: On Launch activity click on link 'Continue as a guest' Step2: On Home activity click on Account button Step3: On the Account activity, verify the country 'India' Step4: Repeat the above steps by selecting the country 'United States' """ locations = { "India" : {"lat":"12.9716","long":"77.5946"}, "United States": {"lat":"40.7128","long":"74.0060"} } for country in locations.keys(): # Pre-requisite: Set Location to India pytest.driver.set_location(latitude=locations[country]['lat'], longitude=locations[country]['long']) # reset app so the location will be updated on the app. utils.reset_app() # Step1: On Launch activity click on link 'Continue as a guest' assert self.launch_page.is_element_present(self.launch_page.locators['link_cont_as_guest']) login_helper.continue_as_guest() # Step2: On Home activity click on Account button self.account_page.btn_account.tap() # Step3: On the Account activity, verify the country 'India' # Add custom locator loc = self.account_page.locators['lbl_country'] loc[1].replace('<<country>>',country) > assert self.account_page.is_element_present(loc) E assert False E + where False = <bound method PageFactory.is_element_present of <pages.account_page.AccountPage object at 0x10503a9d0>>(['xpath', "//XCUIElementTypeStaticText[@name='<<country>>']"]) E + where <bound method PageFactory.is_element_present of <pages.account_page.AccountPage object at 0x10503a9d0>> = <pages.account_page.AccountPage object at 0x10503a9d0>.is_element_present E + where <pages.account_page.AccountPage object at 0x10503a9d0> = <test_account.TestAccount object at 0x10503adc0>.account_page test/test_account.py:237: AssertionError | |||
Passed | test_account.py::TestAccount::test_cont_as_guest_welcome_message_on_name | 3.65 | |
-------------------------------Captured log setup------------------------------- [32mINFO [0m setup:conftest.py:137 reading config from path "config.json" [32mINFO [0m setup:conftest.py:111 creating driver for provided platform - ios | |||
Passed | test_account.py::TestAccount::test_cont_as_guest_welcome_image | 7.79 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_login_welcome_message_check_name | 14.16 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_login_welcome_message_check_email | 13.11 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_login_welcome_message_check_image | 13.35 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_cont_as_guest_fields_validation | 9.19 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_cont_as_guest_login_takes_to_launch | 20.42 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_account_logout_cancel_ok | 20.80 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_cont_as_guest_support_login_navigates_to_support | 20.00 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_account_login_push_notification_switch | 17.55 | |
No log output captured. | |||
Passed | test_account.py::TestAccount::test_account_login_download_over_wifi_switch | 17.73 | |
No log output captured. | |||
Passed | test_forgot_password.py::TestForgotPassword::test_forgot_pwd_send_btn_disabled_default | 3.43 | |
No log output captured. | |||
Passed | test_forgot_password.py::TestForgotPassword::test_forgot_pwd_send_btn_enabled_when_data_entered | 5.51 | |
No log output captured. | |||
Passed | test_forgot_password.py::TestForgotPassword::test_forgot_pwd_sign_up_navigation | 7.07 | |
No log output captured. | |||
Passed | test_signin.py::TestLogin::test_sign_in_valid | 16.19 | |
No log output captured. | |||
Passed | test_signin.py::TestLogin::test_sign_in_button_disabled_default | 2.61 | |
No log output captured. | |||
Passed | test_signin.py::TestLogin::test_sign_in_button_disabled_when_email_invalid | 4.02 | |
No log output captured. | |||
Passed | test_signin.py::TestLogin::test_sign_in_button_disabled_when_password_empty | 7.65 | |
No log output captured. | |||
Passed | test_signin.py::TestLogin::test_sign_in_invalid | 18.52 | |
No log output captured. | |||
Passed | test_signin.py::TestLogin::test_sign_in_forgot_pwd_navigation | 4.01 | |
No log output captured. |