Index: tst_settings_information/test.py =================================================================== diff -u -r5d66024fa1c6079e344883fa1726b3228ec6cf16 -r9adc943bb139152cea73c31b2d508b2cea3d6ec5 --- tst_settings_information/test.py (.../test.py) (revision 5d66024fa1c6079e344883fa1726b3228ec6cf16) +++ tst_settings_information/test.py (.../test.py) (revision 9adc943bb139152cea73c31b2d508b2cea3d6ec5) @@ -338,7 +338,7 @@ Method to verify "Wi-Fi" screen """ test.startSection("Verifying Wi-Fi setting") - utils.waitForGUI(0.2) + utils.waitForGUI(0.5) mouseClick(waitForObjectExists(names.o_SettingsHome_wifi_Text)) test.compare(waitForObjectExists(names.o_SettingsBase_Wi_Fi_Text).text, config.WIFI_TITLE_TEXT,"Wi-Fi Title must be {}".format(config.WIFI_TITLE_TEXT)) test.compare(waitForObjectExists(names.o_SettingsBase_IP_Address_Text).text, config.IP_ADDRESS_TEXT,"IP Address Text must be {}".format(config.IP_ADDRESS_TEXT)) @@ -383,6 +383,8 @@ key_val = squish.waitForObject(utility.keyboard_input(value)) squish.mouseClick(key_val) utils.waitForGUI(0.1) + type(waitForObject(param), "") + utils.waitForGUI(0.1) test.endSection() @@ -439,18 +441,24 @@ Method to verify "Bluetooth Cuff" screen """ test.startSection("Verifying Bluetooth Cuff Setting") - utils.waitForGUI(0.2) + utils.waitForGUI(0.5) mouseClick(waitForObjectExists(names.o_SettingsHome_mouseArea_MouseArea)) test.compare(waitForObjectExists(names.o_SettingsBase_Bluetooth_Cuff_Text).text, config.BLUETOOTH_CUFF_TITLE_TEXT,"Bluetooth Cuff Title must be {}".format(config.BLUETOOTH_CUFF_TITLE_TEXT)) test.compare(waitForObjectExists(names.o_SettingsBase_Devices_Label).text, config.DEVICES_TEXT,"Devices must be {}".format(config.DEVICES_TEXT)) test.compare(waitForObjectExists(names.o_SettingsBase_SCAN_Text_2).text, config.SCAN_TEXT,"SCAN Text must be {}".format(config.SCAN_TEXT)) test.compare(waitForObjectExists(names.o_back_button).text, config.BACK_BUTTON_TEXT,"BACK Button Text must be {}".format(config.BACK_BUTTON_TEXT)) + utility.scroll_to_zone(zone=names.o_SettingsBase_ScrollBar, screen_object=names.o_SettingsBase_ScrollBar, direction = None) + utils.waitForGUI(1) + utility.scroll_to_zone(zone=names.o_SettingsBase_ScrollBar, screen_object=names.o_SettingsBase_ScrollBar, direction = "Top") + utils.waitForGUI(1) mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_4)) utils.waitForGUI(1) test.compare(waitForObjectExists(names.o_SettingsBase_bluetooth_cuff_notification_text_one).text, config.BLUETOOTH_CUFF_NOTIFICATION_MESSAGE_TEXT,"Notification Message Text must be {}".format(config.BLUETOOTH_CUFF_NOTIFICATION_MESSAGE_TEXT)) + doubleClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_4)) + utils.waitForGUI(1) mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_2)) + utils.waitForGUI(1) test.endSection() - def verify_water_flush_heat_disinfection_dg_cleaning_setting(parameter): """ @@ -571,14 +579,43 @@ mouseClick(waitForObjectExists(names.o_service_back_btn)) utils.waitForGUI(1) test.endSection() + +def verify_missing_path(): + try: + utility.rename_file(config.APPLICATION_FOLDER_LOCATION,"application") + utils.waitForGUI(0.2) + test.log("Navigating to 'Volume and Brightness' screen") + mouseClick(waitForObjectExists(settings_text_obj(config.VOLUME_AND_BRIGHTNESS_TEXT))) + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(service_date_obj(config.BACK_TEXT))) + utils.waitForGUI(0.5) + test.log("Navigating to 'wifi' screen") + mouseClick(waitForObjectExists(names.o_SettingsHome_wifi_Text)) + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_3)) + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea)) + test.log("Navigating to 'Bluetooth cuff' screen") + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_bluetooth_cuff_button_rect)) + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_4)) + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_2)) + + except: + test.log(str("Failed to verify missing path scenario")) + finally: + utility.rename_old_name(config.APPLICATION_FOLDER_LOCATION,"application") + def main(): utils.tstStart(__file__) startApplication(config.AUT_NAME) navigate_to_settings_screen() - + verify_settings_parameters() verify_parameters_under_information() verify_hd_and_dg_versions(hd_major=10, hd_minor=20, hd_micro=30, hd_build=4000, hd_fpga_id=50, @@ -604,31 +641,32 @@ hd_serial="HD09876543210987", dg_major=100, dg_minor=95, dg_micro=105, dg_build=1000, dg_fpga_id=124, dg_fpga_major=75, dg_fpga_minor=65, dg_fpga_lab=125, dg_compatibility_rev=4000, dg_serial="DG9876543210987") - + utils.waitForGUI(0.5) verify_service_date(hd_day=DAY_3, hd_month=MONTH_NOVEMBER, hd_year=YEAR_2022, hd_interval_days=INTERVAL_DAYS_2_YEARS, dg_day=DAY_25, dg_month=MONTH_JAN, dg_year=YEAR_1977, dg_interval_days=INTERVAL_DAYS_1_YEARS) - + utils.waitForGUI(0.5) verify_service_date(hd_day=DAY_25, hd_month=MONTH_JAN, hd_year=YEAR_1977, hd_interval_days=INTERVAL_DAYS_1_YEARS, dg_day=DAY_12, dg_month=MONTH_APRIL, dg_year=YEAR_2001, dg_interval_days=INTERVAL_DAYS_6_MONTHS) - + utils.waitForGUI(0.5) verify_service_date(hd_day=DAY_12, hd_month=MONTH_APRIL, hd_year=YEAR_2001, hd_interval_days=INTERVAL_DAYS_6_MONTHS, dg_day=DAY_30, dg_month=MONTH_AUGUST, dg_year=YEAR_2045, dg_interval_days=INTERVAL_DAYS_10_MONTHS) - + utils.waitForGUI(0.5) verify_service_date(hd_day=DAY_30, hd_month=MONTH_AUGUST, hd_year=YEAR_2045, hd_interval_days=INTERVAL_DAYS_10_MONTHS, dg_day=DAY_3, dg_month=MONTH_NOVEMBER, dg_year=YEAR_2022, dg_interval_days=INTERVAL_DAYS_2_YEARS) - + test.log("Navigating to 'Settings' screen") mouseClick(waitForObjectExists(service_date_obj(config.BACK_TEXT))) utils.waitForGUI(0.5) test.log("Navigating to 'Volume and Brightness' screen") mouseClick(waitForObjectExists(settings_text_obj(config.VOLUME_AND_BRIGHTNESS_TEXT))) verify_volume_and_brightness_section() verify_alarm_volume() - + verify_wifi_setting() verify_bluetooth_cuff_setting() verify_dg_cleaning_setting() verify_service_password_screen() + verify_missing_path() utils.tstDone() \ No newline at end of file