Index: tst_service_screen/test.py =================================================================== diff -u -ra81fa769324346dd2b15d19a869a83b91a3d3877 -r76cc0ad1823a2adf10071a84f103772ee71f411f --- tst_service_screen/test.py (.../test.py) (revision a81fa769324346dd2b15d19a869a83b91a3d3877) +++ tst_service_screen/test.py (.../test.py) (revision 76cc0ad1823a2adf10071a84f103772ee71f411f) @@ -20,7 +20,7 @@ from dialin.common.hd_defs import HDOpModes, HDOpSubModes from dialin.ui import utils -EXPORT_LOGS = "EXport Logs" +EXPORT_LOGS = "Export Logs" SERVICE_SCREEN_OPTIONS = ["Information", "Volume And Brightness", "Wi-Fi", "Bluetooth Cuff", "DG Cleaning", "Service", "Export Logs"] @@ -38,7 +38,7 @@ """ Method to navigate to "Settings" screen """ - test.startSection("Navigating to 'Device Settings' screen") + test.startSection("Navigating to 'Service' screen") hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_SERV.value, sub_mode=HDOpSubModes.STANDBY_START_STATE.value) utils.waitForGUI(1) device_settings_text = waitForObjectExists(settings_text_obj(config.SERIVCES_TITLE)) @@ -55,15 +55,17 @@ """ test.startSection("Verifying the the export logs screen") test.log("Navigating to service screen to export log screen") - utils.waitForGUI(0.3) mouseClick(waitForObjectExists(settings_text_obj(EXPORT_LOGS))) - for logs in config.EXPORT_LOGS_OPTIONS: - logs_export = waitForObjectExists(services_screen_text_obj(logs)) - test.compare(logs_export.text, logs, "{} should be available under export logs screen".format(logs)) - - 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)) - + test.compare(waitForObjectExists(names.o_export_logs_text).text,config.EXPORT_TEXT,"{} should be under export logs screen ".format(config.EXPORT_TEXT)) +# for logs in config.EXPORT_LOGS_OPTIONS: +# logs_export = waitForObjectExists(services_screen_text_obj(logs)) +# test.compare(logs_export.text, logs, "{} should be available under export logs screen".format(logs)) +# +# 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))) + 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.endSection()