Index: tst_service_screen/test.py =================================================================== diff -u -r401f9693ca709b00517cf213decbfe5e22e1f96b -r09dad4f4fbf30637c5e2967a793ba2ea48615b74 --- tst_service_screen/test.py (.../test.py) (revision 401f9693ca709b00517cf213decbfe5e22e1f96b) +++ tst_service_screen/test.py (.../test.py) (revision 09dad4f4fbf30637c5e2967a793ba2ea48615b74) @@ -35,6 +35,7 @@ names.o_option_combo_box["text"] = text return names.o_option_combo_box + def settings_text_obj(text): """ Method to set custom object property for settings screen. @@ -81,10 +82,9 @@ mouseClick(waitForObjectExists(settings_text_obj(EXPORT_LOGS))) 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) - test.verify(log_status == True, "export data rectangles should be filled with contents under USB drive.") + test.verify(log_status == False, "export data rectangles should not be filled with contents under USB drive.") log_status = get_storage_data_status(names.o_SettingsBase_sdcFolderView_ListView) - test.verify(log_status == True, "export data rectangles should be filled with contents under SD card.") - + test.verify(log_status == False, "export data rectangles should be not filled with contents under SD card.") for option in range(len(config.EXPORT_LOGS_OPTIONS)): utils.waitForGUI(1) @@ -120,7 +120,8 @@ 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 )) - test.compare(waitForObjectExists(names.o_export_btn).text, config.EXPORT_BUTTON_TEXT,"{} screen is displayed".format(config.EXPORT_BUTTON_TEXT)) + 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") test.log("verification of progress bar color after 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))