Index: tst_service_screen/test.py =================================================================== diff -u -r76cc0ad1823a2adf10071a84f103772ee71f411f -r06d29555beb8ba4c368040050afe740cb3233d0f --- tst_service_screen/test.py (.../test.py) (revision 76cc0ad1823a2adf10071a84f103772ee71f411f) +++ tst_service_screen/test.py (.../test.py) (revision 06d29555beb8ba4c368040050afe740cb3233d0f) @@ -19,7 +19,9 @@ from dialin.ui.hd_simulator import HDSimulator from dialin.common.hd_defs import HDOpModes, HDOpSubModes from dialin.ui import utils +from builtins import str + EXPORT_LOGS = "Export Logs" SERVICE_SCREEN_OPTIONS = ["Information", "Volume And Brightness", "Wi-Fi", "Bluetooth Cuff", "DG Cleaning", "Service", "Export Logs"] @@ -45,8 +47,7 @@ test.compare(device_settings_text.text, config.SERIVCES_TITLE, "{} screen is displayed".format(config.SERIVCES_TITLE)) verify_export_logs_screen() mouseClick(waitForObjectExists(names.o_shutdown_btn)) - test.compare(device_settings_text.text, config.SHUTDOWN_BUTTON_TEXT, "{} screen is displayed".format(config.SHUTDOWN_BUTTON_TEXT)) - test.compare(device_settings_text.text, config.SERIVCES_TITLE, "{} screen is displayed".format(config.SERIVCES_TITLE)) + test.compare(waitForObjectExists(names.o_shutdown_btn).text, config.SHUTDOWN_BUTTON_TEXT, "{} screen is displayed".format(config.SHUTDOWN_BUTTON_TEXT)) test.endSection() def verify_export_logs_screen(): @@ -64,8 +65,15 @@ # mouseClick(waitForObjectExists(names.o_back_btn)) # test.compare(services_screen_text_obj.text, config.BACK_BUTTON_TEXT, "{} screen is displayed".format(config.BACK_BUTTON_TEXT)) # mouseClick(waitForObjectExists(settings_text_obj(EXPORT_LOGS))) + combobox_dropdown = waitForObjectExists(names.o_combo_box ) + for option in range(3): + mouseClick(waitForObjectExists(names.o_combo_box )) + test.compare(combobox_dropdown.text.option[0], config.EXPORT_LOGS_OPTIONS[0], "{} combo box is displayed".format(config.EXPORT_LOGS_OPTIONS[0])) + mouseClick(waitForObjectExists(names.o_combo_box )) + test.compare(waitForObjectExists(names.o_combo_box).text, config.EXPORT_LOGS_OPTIONS, "{} combo box is displayed".format(config.EXPORT_LOGS_OPTIONS)) + mouseClick(waitForObjectExists(names.o_export_btn )) - test.compare(services_screen_text_obj.text, config.EXPORT_BUTTON_TEXT , "{} screen is displayed".forma(EXPORT_BUTTON_TEXT)) + test.compare(waitForObjectExists(names.o_export_btn).text, config.EXPORT_BUTTON_TEXT,"{} screen is displayed".format(config.EXPORT_BUTTON_TEXT)) test.endSection()