Index: tst_ui_alarms_dialog/test.py =================================================================== diff -u -r5c6c2daa8dc7d453535a9e9f59df872e81d805ca -rc6c61132161680b684b24fc9b4036fcde3ae55ed --- tst_ui_alarms_dialog/test.py (.../test.py) (revision 5c6c2daa8dc7d453535a9e9f59df872e81d805ca) +++ tst_ui_alarms_dialog/test.py (.../test.py) (revision c6c61132161680b684b24fc9b4036fcde3ae55ed) @@ -48,7 +48,7 @@ def read_data_from_alarms_conf_file(): """ - This method is used to read the data from Instructions.conf file. + This method is used to read the data from Alarms.conf file. """ utils.waitForGUI(0.2) with open(config.ALARMS_CONF_LOCATION, 'r') as conf_file: @@ -262,14 +262,14 @@ minimize() test.compare(str(waitForObjectExists(names.o_alarm_bar_text ).text), config.UNDEFINED_ALARM_ID_MSG.format(alarm_id), "verified alarm message for exceeded alarm id's") else: - test.compare(str(waitForObjectExists(names.o_alarm_text_description).text), config.ALARM_ID_AND_MESSAGES[alarm_id], "Alarm message is verified from alarm dialog box") + test.compare(str(waitForObjectExists(names.o_alarm_text_description).text), config.ALARM_ID_AND_ALARM_MESSAGES[alarm_id], "Alarm message is verified from alarm dialog box") minimize() - test.compare(str(waitForObjectExists(names.o_alarm_bar_text ).text), config.ALARM_ID_AND_MESSAGES[alarm_id], "Alarm message is verified from alarm bar") + test.compare(str(waitForObjectExists(names.o_alarm_bar_text ).text), config.ALARM_ID_AND_ALARM_MESSAGES[alarm_id], "Alarm message is verified from alarm bar") maximize() test.endSection() + - def test_verify_alarm_mute(alarm_timeout = 0, v_flags = 0, alarm_status = "Mute"): """ Method to verify alarm mute and unmute characteristics. @@ -311,7 +311,7 @@ @output N/A """ test.startSection("verification of alarm bar parameters") - for alarm_id in range(0, len(config.ALARM_ID_AND_MESSAGES)+1): + for alarm_id in range(0, len(config.ALARM_ID_AND_MESSAGES)): if alarm_id == config.ALARM_ID_NO_ALARM: test.log("validate alarm condition for alarm id : 0")