Index: shared/scripts/configuration/strings.py =================================================================== diff -u -re264ad616a126dd88590cba240b1b6e671a3e36c -rb20bf1d72b0cb790a0e8966b405b769d306fcf0e --- shared/scripts/configuration/strings.py (.../strings.py) (revision e264ad616a126dd88590cba240b1b6e671a3e36c) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision b20bf1d72b0cb790a0e8966b405b769d306fcf0e) @@ -184,6 +184,8 @@ #Setting DEVICE_SETTINGS_TEXT = "Device Settings" DEVICE_SETTINGS_SCREEN_PARAMETER = ["Information", "Volume And Brightness", "Wi-Fi", "Bluetooth Cuff", "DG Cleaning", "Service", "Export Logs"] + +#Service CLEAR_ALARM_CONDITION_TEXT = "Clear Alarm Condition" EXPORT_LOGS ="Export Logs" EXPORT_LOG_TEXT ="Export Logs" @@ -193,11 +195,11 @@ SD_CARD_DETAILS =["SD-Card (MB)", "Free : 0.000","Total: 0.000"] USB_DRIVE_DETAILS = ["USB Drive (MB)","Free : 0.000","Total: 0.000"] EXPORT_BUTTON_TEXT = "Export" +SERVICE_SCREEN_PARAMETER = ["Information", "Volume And Brightness", "Wi-Fi", "Bluetooth Cuff", "DG Cleaning"] SettingsHome_Treatment_Text = "Treatment" SettingsHome_Manager_Text = "Manager" SettingsHome_Settings_Text = "Settings" SERVICE_SCREEN_TITLE_TEXT = "Service" -SERVICE_SCREEN_PARAMETER = ["Information", "Volume And Brightness", "Wi-Fi", "Bluetooth Cuff", "Dialysate Generator Settings", "Services"] #create custom treatment TREATMENT_TITLE = "Create a Custom Treatment" @@ -372,15 +374,39 @@ SERVICE_TEXT = "Service" SERVICES_PARAMETERS = ["HD Last Service Date", "HD Next Service Date", "DG Last Service Date", "DG Next Service Date"] -#volume and brightness + +#Service Information +INFORMATION_TITLES = ["Information", "Versions"] +VERSION_PARAMETERS = ["Information", "UI Version", "HD Version", "HD FPGA Version", "HD Serial Number", "DG Version", "DG FPGA Version", "DG Serial Number"] +SERIVCES_TITLE = "Service" +SERVICES_PARAMETERS = ["HD Last Service Date", "HD Next Service Date", "DG Last Service Date", "DG Next Service Date"] + +#Service volume and brightness VOLUME_AND_BRIGHTNESS_TEXT = "Volume And Brightness" BRIGHTNESS_TEXT = "Brightness" ALARM_VOLUME_TEXT = "Alarm Volume" NOTIFICATION_MESSAGE_TEXT = "The response value is incorrect. [1007]" CONFIRM_TEXT = "CONFIRM" SERVICE_BACK_BTN = "BACK" +BACK_TEXT = "BACK" UNIT_OF_VOLUME_AND_BRIGHTNESS = "%" +#Service wifi +WIFI_PARAMETERS_TEXTS = ["Wi-Fi", "IP Address", "Gateway", "Subnet Mask", "DNS", "SSID", "SCAN", "Scan Finished", "BACK"] + +#SErvice Bluetooth cuff +BLUETOOTH_CUFF_PARAMETERS = ["Bluetooth Cuff", "Devices"] +BLUETOOTH_CUFF_NOTIFICATION_MESSAGE_TEXT = "The Bluetooth cuff pair clear error. [1001]" + +#SErvice DG Cleaning +DG_CLEANING_PARAMETERS = ["DG Cleaning", "Water Flush", "Time (HH:MM)", "Cycle (Days)", "Heat Disinfection", "Time (HH:MM)", "Cycle (Days)"] + +#service export log +BACK_TEXT = "BACK" +CONFIRM_TEXT = "CONFIRM" +SERVICE_BACK_BTN = "BACK" +UNIT_OF_VOLUME_AND_BRIGHTNESS = "%" + #services SHUTDOWN_TEXT = "SHUTDOWN" @@ -1059,6 +1085,3 @@ WATER_FLUSH_CYCLE_TEXT = "Cycle (Days)" HEAT_DISINFECTION_TIME_TEXT = "Time (HH:MM)" HEAT_DISINFECTION_CYCLE_TEXT = "Cycle (Days)" - - - Index: shared/scripts/names.py =================================================================== diff -u -r3321e8fd5c07f2fe7aa8134160ba206a90235da8 -rb20bf1d72b0cb790a0e8966b405b769d306fcf0e --- shared/scripts/names.py (.../names.py) (revision 3321e8fd5c07f2fe7aa8134160ba206a90235da8) +++ shared/scripts/names.py (.../names.py) (revision b20bf1d72b0cb790a0e8966b405b769d306fcf0e) @@ -243,7 +243,6 @@ o_SettingsBase_SettingsDateTime = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsDateTime", "visible": True} o_SettingsBase_mouseArea_MouseArea = {"container": o_SettingsBase_SettingsDateTime, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} o_eject_btn = {"container": o_SettingsHome_SettingsHome, "id": "_image", "source": "qrc:/images/iEject", "type": "Image", "unnamed": 1, "visible": True} -o_arrow_btn = {"container": o_SettingsHome_SettingsHome, "id": "_image", "source": "qrc:/images/iArrowRight", "type": "Image", "unnamed": 1, "visible": True} o_SettingsBase_SettingsBase = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsBase", "visible": True} o_settings_base_text_obj = {"container": o_SettingsBase_SettingsBase, "type": "Text", "unnamed": 1, "visible": True} o_service_date_obj = {"container": o_SettingsBase_SettingsBase, "type": "Text", "unnamed": 1, "visible": True} @@ -1006,22 +1005,54 @@ o_minimize_button = {"container": o_Overlay, "id": "_image", "source": "qrc:/images/iChevronDown", "type": "Image", "unnamed": 1, "visible": True} o_SettingsHome_SettingsHome = {"container": o_Gui_MainView, "objectName": "_SettingsHome", "type": "SettingsHome", "visible": True} o_settings_home_text_obj = {"container": o_SettingsHome_SettingsHome, "type": "Text", "unnamed": 1, "visible": True} +o_SettingsBase_Information_Text = {"container": o_SettingsBase_SettingsBase, "type": "Text", "unnamed": 1, "visible": True} o_SettingsDateTime_mouseArea_MouseArea_2 = {"container": o_SettingsBase_SettingsDateTime, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} o_SettingsHome_mouseArea_MouseArea_2_set_date_time = {"container": o_SettingsHome_SettingsHome, "id": "_mouseArea", "occurrence": 7, "type": "MouseArea", "unnamed": 1, "visible": True} + # service screen o_SettingsBase_SettingsBase = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsBase", "visible": True} o_services_screen_text_obj = {"container": o_SettingsBase_SettingsBase, "type": "Text", "unnamed": 1, "visible": True} o_export_logs_text = {"container": o_SettingsBase_SettingsBase, "text": "Export Logs", "type": "Text", "unnamed": 1, "visible": True} o_combo_box= {"container": o_SettingsBase_SettingsBase, "id": "_logTypeCombo", "type": "ComboBox", "unnamed": 1, "visible": True} o_option_combo_box={"container": o_Overlay, "type": "Text", "unnamed": 1, "visible": True} -# #Export button + +# service information screen +o_SettingsHome_touchItem_TouchRect_service_information = {"container": o_SettingsHome_SettingsHome_2, "id": "_touchItem", "type": "TouchRect", "unnamed": 1, "visible": True} +o_SettingsBase_backbutton_service_information_mouseArea_MouseArea_2 = {"container": o_SettingsBase_SettingsBase, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} + +# service volume and brightness screen +o_SettingsHome_mousearea_service_volume_and_brightness = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 3, "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsBase_SettingsVolumeBrightness = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsVolumeBrightness", "visible": True} +o_SettingsBase_backbutton_service_vandb_mouseArea_MouseArea_3 = {"container": o_SettingsBase_SettingsVolumeBrightness, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} + +# service wifi screen +o_SettingsHome_mousearea_service_wifi = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 4, "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsBase_SettingsWiFi = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsWiFi", "visible": True} +o_SettingsHome_backbutton_mousearea_service_wifi = {"container": o_SettingsBase_SettingsWiFi, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsBase_service_wifi_scan_button_mouseArea_MouseArea_2 = {"container": o_SettingsBase_SettingsWiFi, "id": "_mouseArea", "occurrence": 2, "type": "MouseArea", "unnamed": 1, "visible": True} +#o_SettingsBase_Wi_Fi_Text = {"container": o_SettingsBase_SettingsWiFi, "type": "Text", "unnamed": 1, "visible": True} + +# service bluetooth cuff screen +o_SettingsHome_mousearea_service_bluetooth_cuff = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 5, "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsHome_backbutton_mousearea_service_bluetooth_cuff = {"container": o_SettingsBase_SettingsBase, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsBase_service_bluetooth_cuff_scan_button_mouseArea_MouseArea_3 = {"container": o_SettingsBase_SettingsBase, "id": "_mouseArea", "occurrence": 2, "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsBase_The_Bluetooth_cuff_pair_clear_error_1001_Text = {"container": o_SettingsBase_SettingsBase, "text": "The Bluetooth cuff pair clear error. [1001]", "type": "Text", "unnamed": 1, "visible": True} + +# service dg cleaning screen +o_SettingsHome_mousearea_service_dg_cleaning = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 6, "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsHome_backbutton_mousearea_service_dg_cleaning = {"container": o_SettingsBase_SettingsBase, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsBase_SettingsDG = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsDG", "visible": True} +o_SettingsBase_service_dg_cleaning_scan_button_mouseArea_MouseArea_4 = {"container": o_SettingsBase_SettingsDG, "id": "_mouseArea", "occurrence": 3, "type": "MouseArea", "unnamed": 1, "visible": True} + +#Export button o_export_btns = {"container": o_SettingsBase_SettingsBase,"id": "_logTypeExportButton", "type": "ExportButton", "unnamed": 1, "visible": True} o_export_btn = {"container": o_export_btns, "text": "Export", "type": "Text", "unnamed": 1, "visible": True} o_SettingsBase_SettingsExportLogs = {"container": o_Gui_MainView, "objectName": "_SettingsBase", "type": "SettingsExportLogs", "visible": True} o_SettingsBase_export_button_mouseArea_MouseArea_2 = {"container": o_SettingsBase_SettingsExportLogs, "id": "_mouseArea", "occurrence": 5, "type": "MouseArea", "unnamed": 1, "visible": True} -o_SettingsHome_export_log_mouseArea_MouseArea = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 8, "type": "MouseArea", "unnamed": 1, "visible": True} +o_SettingsHome_export_log_mouseo_SettingsBase_service_bluetooth_cuff_scan_button_mouseArea_MouseArea_3Area_MouseArea = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 8, "type": "MouseArea", "unnamed": 1, "visible": True} o_SettingsBase_export_log_backButton_BackButton = {"container": o_SettingsBase_SettingsExportLogs, "objectName": "_backButton", "type": "BackButton", "visible": True} o_SettingsHome_service_confirmButton_TouchRect = {"container": o_SettingsHome_SettingsHome_2, "objectName": "_confirmButton", "type": "TouchRect", "visible": True} +o_SettingsHome_export_log_mouseArea_MouseArea = {"container": o_SettingsHome_SettingsHome_2, "id": "_mouseArea", "occurrence": 8, "type": "MouseArea", "unnamed": 1, "visible": True} #USB drive and SD crad Information o_usb_folder_slider = {"container": o_SettingsBase_SettingsBase, "id": "_usbFolderView", "type": "ListView", "unnamed": 1, "visible": True} @@ -1035,7 +1066,6 @@ o_shutdownRect_TouchRect = {"container": o_Overlay, "id": "_shutdownRect", "type": "TouchRect", "unnamed": 1, "visible": True} o_cancelTouch_TouchRect = {"container": o_Overlay, "id": "_cancelTouch", "type": "TouchRect", "unnamed": 1, "visible": True} - ##Below set of objects are belongs to Disinfection-it is the combination of Heat,Flush and chemical disinfection. #Disinfection o_DisinfectStack_DisinfectStack = {"container": o_Gui_MainView, "objectName": "_DisinfectStack", "type": "DisinfectStack", "visible": True} @@ -1199,8 +1229,6 @@ #Manager o_manager_Text = {"container": o_Gui_MainView, "text": "Manager", "type": "Text", "unnamed": 1, "visible": True} o_treatment_management = {"container": o_Gui_MainView, "text": "Treatment Management", "type": "Text", "unnamed": 1, "visible": True} - - o_treatmentHome_mouseArea_MouseArea_2 = {"container": o_treatmentStack_treatmentHome_TreatmentHome, "id": "_mouseArea", "occurrence": 15, "type": "MouseArea", "unnamed": 1, "visible": True} o_treatmentStack_TreatmentStack = {"container": o_Gui_MainView, "objectName": "TreatmentStack", "type": "TreatmentStack", "visible": True} o_treatmentStack_modal_MouseArea = {"container": o_treatmentStack_TreatmentStack, "id": "_modal", "type": "MouseArea", "unnamed": 1, "visible": False} @@ -1214,3 +1242,4 @@ o_time_duration_confirmButton_TouchRect_2 = {"container": o_Overlay, "id": "_confirmButton", "type": "TouchRect", "unnamed": 1, "visible": True} o_treatment_duration = {"container": o_treatmentHome, "objectName": "TreatmentTime", "type": "TreatmentTime", "visible": True} o_pop_up_close_button = {"container": o_Overlay, "id": "_image", "source": "qrc:/images/iClose", "type": "Image", "unnamed": 1, "visible": True} + Index: tst_service_screen/test.py =================================================================== diff -u -r3321e8fd5c07f2fe7aa8134160ba206a90235da8 -rb20bf1d72b0cb790a0e8966b405b769d306fcf0e --- tst_service_screen/test.py (.../test.py) (revision 3321e8fd5c07f2fe7aa8134160ba206a90235da8) +++ tst_service_screen/test.py (.../test.py) (revision b20bf1d72b0cb790a0e8966b405b769d306fcf0e) @@ -41,6 +41,15 @@ return names.o_settings_home_text_obj +def text_obj(text): + """ + Method to set custom object property for information screen. + @param text : (string) parameter text + """ + names.o_SettingsBase_Information_Text["text"] = text + return names.o_SettingsBase_Information_Text + + def navigate_to_settings_screen(): """ Method to navigate to "Settings" screen @@ -53,6 +62,120 @@ test.endSection() +def verify_settings_parameters(): + """ + Method to verify the parameters of 'Service' screen + """ + test.startSection("Verify the parameters of Service screen") + for parameter in config.SERVICE_SCREEN_PARAMETER: + parameter_text = waitForObjectExists(settings_text_obj(parameter)) + test.compare(parameter_text.text, parameter, "{} should be available under 'Service' screen".format(parameter)) + test.endSection() + + +def verify_parameters_under_information(): + """ + Method to verify the parameter under 'Information' + """ + test.startSection("Verify the parameter under Information screen") + test.log("Navigating to 'Information' screen") + mouseClick(waitForObjectExists(names.o_SettingsHome_touchItem_TouchRect_service_information)) + for title in config.INFORMATION_TITLES: + title_text = waitForObjectExists(text_obj(title)) + test.compare(title_text.text, title, "{} should be available".format(title)) + + for info_parameter in config.VERSION_PARAMETERS: + info_parameter_text = waitForObjectExists(text_obj(info_parameter)) + test.compare(info_parameter_text.text, info_parameter, "{} should be available under 'Information'".format(info_parameter)) + + test.log("Verifying services title and parameters") + services_text = waitForObjectExists(text_obj(config.SERIVCES_TITLE)) + test.compare(services_text.text, config.SERIVCES_TITLE, "Service title should be {}".format(config.SERIVCES_TITLE)) + + for services_parameter in config.SERVICES_PARAMETERS: + services_par_text = waitForObjectExists(text_obj(services_parameter)) + test.compare(services_par_text.text, services_parameter, "{} should be available under service tile".format(services_parameter)) + mouseClick(waitForObjectExists(names.o_SettingsBase_backbutton_service_information_mouseArea_MouseArea_2)) + test.endSection() + + +def verify_volume_and_brightness_section(): + """ + Method to verify "Volume and Brightness" screen in service + """ + test.startSection("Verifying volume and brightness screen") + test.log("Verifying the title text of 'Volume And Brightness' screen") + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_SettingsHome_mousearea_service_volume_and_brightness)) + volume_and_brightness_text = waitForObjectExists(text_obj(config.VOLUME_AND_BRIGHTNESS_TEXT)) + test.compare(volume_and_brightness_text.text, config.VOLUME_AND_BRIGHTNESS_TEXT, "Volume and Brightness text should be {}".format(config.VOLUME_AND_BRIGHTNESS_TEXT)) + brightness_text = waitForObjectExists(text_obj(config.BRIGHTNESS_TEXT)) + test.compare(brightness_text.text, config.BRIGHTNESS_TEXT,"Brightness title text should be {}".format(config.BRIGHTNESS_TEXT)) + alarm_volume_text = waitForObjectExists(text_obj(config.ALARM_VOLUME_TEXT)) + test.compare(alarm_volume_text.text, config.ALARM_VOLUME_TEXT,"Alarm Volume text should be {}".format(config.ALARM_VOLUME_TEXT)) + notification_text = waitForObjectExists(text_obj(config.NOTIFICATION_MESSAGE_TEXT)) + test.compare(notification_text.text, config.NOTIFICATION_MESSAGE_TEXT, "{} notification message is displayed and should be The response value is incorrect. [1007]".format(config.NOTIFICATION_MESSAGE_TEXT)) + back_btn = waitForObjectExists(text_obj(config.BACK_TEXT)) + test.compare(back_btn.enabled , True, "Back button should be enabled") + utils.waitForGUI(0.5) + mouseClick(waitForObjectExists(names.o_SettingsBase_backbutton_service_vandb_mouseArea_MouseArea_3)) + utils.waitForGUI(1) + test.endSection() + + +def verify_wifi_setting(): + """ + Method to verify "Wi-Fi" screen in service + """ + test.startSection("Verifying Wi-Fi setting") + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsHome_mousearea_service_wifi)) + for services_parameter in config.WIFI_PARAMETERS_TEXTS: + services_par_text = waitForObjectExists(text_obj(services_parameter)) + test.compare(services_par_text.text, services_parameter, "{} should be available under Wi-Fi title".format(services_parameter)) + utils.waitForGUI(0.3) + mouseClick(waitForObjectExists(names.o_SettingsBase_service_wifi_scan_button_mouseArea_MouseArea_2)) + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsHome_backbutton_mousearea_service_wifi)) + test.endSection() + + +def verify_bluetooth_cuff_setting(): + """ + Method to verify "Bluetooth Cuff" screen in service + """ + test.startSection("Verifying Bluetooth Cuff Setting") + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsHome_mousearea_service_bluetooth_cuff)) + for services_parameter in config.BLUETOOTH_CUFF_PARAMETERS: + services_par_text = waitForObjectExists(text_obj(services_parameter)) + test.compare(services_par_text.text, services_parameter, "{} should be available under Bluetooth Cuff title".format(services_parameter)) + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsBase_service_bluetooth_cuff_scan_button_mouseArea_MouseArea_3)) + mouseClick(waitForObjectExists(names.o_SettingsBase_service_bluetooth_cuff_scan_button_mouseArea_MouseArea_3)) + utils.waitForGUI(0.2) + test.compare(waitForObjectExists(names.o_SettingsBase_The_Bluetooth_cuff_pair_clear_error_1001_Text).text, config.BLUETOOTH_CUFF_NOTIFICATION_MESSAGE_TEXT,"Notification Message Text must be {}".format(config.BLUETOOTH_CUFF_NOTIFICATION_MESSAGE_TEXT)) + mouseClick(waitForObjectExists(names.o_SettingsHome_backbutton_mousearea_service_bluetooth_cuff)) + test.endSection() + + +def verify_dg_cleaning_setting(): + """ + Method to verify "DG Cleaning" screen in service + """ + test.startSection("Verifying DG Cleaning setting") + utils.waitForGUI(0.2) + mouseClick(waitForObject(names.o_SettingsHome_mousearea_service_dg_cleaning)) + for services_parameter in config.DG_CLEANING_PARAMETERS: + services_par_text = waitForObjectExists(text_obj(services_parameter)) + test.compare(services_par_text.text, services_parameter, "{} should be available under Bluetooth Cuff title".format(services_parameter)) + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsBase_service_dg_cleaning_scan_button_mouseArea_MouseArea_4)) + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsHome_backbutton_mousearea_service_dg_cleaning)) + test.endSection() + + def get_storage_data_status(file_name): """ Method to verify the storage data exported or not exported. @@ -75,6 +198,7 @@ """ test.startSection("Verifying the the export logs screen") test.log("Navigating to service screen to export log screen") + utils.waitForGUI(0.3) mouseClick(waitForObjectExists(names.o_SettingsHome_export_log_mouseArea_MouseArea)) test.compare(waitForObjectExists(names.o_export_logs_text).text,config.EXPORT_LOG_TEXT,"{} should be under export logs screen ".format(config.EXPORT_LOG_TEXT)) log_status = get_storage_data_status(names.o_usb_folder_slider) @@ -91,7 +215,6 @@ mouseClick(export_option) test.compare(config.EXPORT_LOGS_OPTIONS[option], waitForObjectExists(names.o_combo_box ).displayText, "User should able to select {}".format(config.EXPORT_LOGS_OPTIONS[option])) utils.waitForGUI(1) - test.endSection() @@ -103,7 +226,7 @@ test.log("verification of progress bar color before exporting data") test.compare(waitForObjectExists(names.o_SettingsBase_progressCircle_ProgressCircle).color.name, config.RED_COLOR,"{} color progress bar is displayed for sd-card".format(config.RED_COLOR)) test.compare(waitForObjectExists(names.o_SettingsBase_progressCircle_ProgressCircle_2).color.name, config.GREEN_COLOR,"{} color progress bar is displayed for usb-drive".format(config.GREEN_COLOR)) - + utils.waitForGUI(0.2) mouseClick(waitForObjectExists(names.o_SettingsBase_export_button_mouseArea_MouseArea_2)) utils.waitForGUI(2) @@ -115,7 +238,7 @@ test.compare(waitForObjectExists(names.o_SettingsBase_progressCircle_ProgressCircle).color.name, config.RED_COLOR,"{} color progress bar is displayed for sd-card".format(config.RED_COLOR)) test.compare(waitForObjectExists(names.o_SettingsBase_progressCircle_ProgressCircle_2).color.name, config.GREEN_COLOR,"{} color progress bar is displayed for usb-drive".format(config.GREEN_COLOR)) - mouseClick(waitForObjectExists(names.o_SettingsBase_image_Image_export_log_eject_button )) + mouseClick(waitForObjectExists(names.o_SettingsBase_image_Image_export_log_eject_button )) ## test.compare(waitForObjectExists(names.o_export_btn).text, config.EXPORT_BUTTON_TEXT,"Export button text should be {}".format(config.EXPORT_BUTTON_TEXT)) test.compare(waitForObjectExists(names.o_export_btn).enabled, False, "Export button should be disabled") @@ -131,6 +254,7 @@ verify shutdown button after clicking export button """ test.startSection("verification of system shutdown option") + utils.waitForGUI(0.2) mouseClick(waitForObjectExists(names.o_SettingsBase_export_log_backButton_BackButton)) test.compare(waitForObjectExists(names.o_keyboard_object).text, config.SHUTDOWN_BUTTON_TEXT, "User should able to click {}".format(config.SHUTDOWN_BUTTON_TEXT)) utils.waitForGUI(1) @@ -141,6 +265,7 @@ hd_simulator.cmd_send_poweroff_button_pressed() mouseClick(waitForObjectExists(names.o_cancelTouch_TouchRect)) hd_simulator.cmd_send_poweroff_button_pressed() + utils.waitForGUI(0.2) mouseClick(waitForObjectExists(names.o_shutdownRect_TouchRect)) #0x0E00 #0x0E00 @@ -154,7 +279,12 @@ utils.tstStart(__file__) startApplication(config.AUT_NAME+ " -l") navigate_to_settings_screen() - + verify_settings_parameters() + verify_parameters_under_information() + verify_volume_and_brightness_section() + verify_wifi_setting() + verify_bluetooth_cuff_setting() + verify_dg_cleaning_setting() verify_export_logs_screen() verify_export_functionality() verify_device_shutdown()