Index: tst_ui_alarms_dialog/test.py =================================================================== diff -u -rb3070943b619120d7b14fb33b98ce03e831621ca -r24040f876de4a23667fb51c34d0964906d546c6a --- tst_ui_alarms_dialog/test.py (.../test.py) (revision b3070943b619120d7b14fb33b98ce03e831621ca) +++ tst_ui_alarms_dialog/test.py (.../test.py) (revision 24040f876de4a23667fb51c34d0964906d546c6a) @@ -8,11 +8,12 @@ # file tst_post # @author (last) Joseph varghese # @date (last) 02-Feb-2022 -# +# This test contradicts verification of ui alarms dialog +# section + import names import logging from dialin.ui import utils -from configuration import utility from configuration import config from dialin.ui.hd_simulator import HDSimulator from dialin.protocols.CAN import DenaliCanMessenger @@ -49,9 +50,9 @@ def test_buttons(flag, vButtons): """ Method to verify buttons on alarm dialog box - @param alarm_instance - instance for hd - @param flag - alarm flag to be set - @param vButtons - button binary + @param flag - (bool) alarm flag to be set + @param vButtons - (bool) button binary + @output N/A """ alarm.cmd_activate_alarm_id(state = 1, alarm = 1, flags = flag) test.compare(waitForObjectExists(names.o_alarm_button_ok ).visible, @@ -96,6 +97,8 @@ def verification_of_alarm_flag(): """ Method to verify alarm flag + @param N/A + @output N/A """ test.startSection("verification of alarm flag.") @@ -127,6 +130,7 @@ """ Method to verify alarm dialog box color based on alarm priority @param alarm_priority - (int) alarm priority level + @output N/A """ test.startSection("verification of alarm dialog box color based on alarm priority -> " + config.ALARM_PRIORITY_OPTIONS[alarm_priority]) @@ -143,7 +147,7 @@ def test_message_based_on_alarm_id(alarm_id): """ Method to verify alarm message based on alarm id - @param alarm id + @param alarm id - (int) alarm id to be set. @output N/A """ test.startSection("verification of alarm message based on alarm id -> " + str(alarm_id)) @@ -168,8 +172,9 @@ def test_verify_alarm_mute(alarm_timeout = 0, v_flags = 0, alarm_status = "Mute"): """ Method to verify alarm mute and unmute characteristics. - @param alarm_timeout - timeout delay for alarm - @param v_flag - flag for mute and unmute operation. + @param alarm_timeout - (int) timeout delay for alarm + @param alarm_status - (str) status of alarm + @param v_flag - (int) flag for mute and unmute operation. @output N/A """ test.startSection("verification of alarm " + str(alarm_status) + "condition for timeout " + str(alarm_timeout)) @@ -237,7 +242,7 @@ flag_mute = alarm.cmd_make_alarm_flags(alarms_silenced=1) flag_unmute = alarm.cmd_make_alarm_flags(alarms_silenced=0) - for alarm_id in (2, 3, 5, 7, 10, 15): + for alarm_id in (2, 3, 5, 7, 10, 15, 20, 25, 30, 50): for alarm_index in range(config.NUM_OF_ALARM_PRIORITIES): alarm.cmd_activate_alarm_id(state = alarm_index, alarm = alarm_id, @@ -262,7 +267,7 @@ #verify cleared alarm alarm.cmd_set_alarm_cleared(alarm_id) - utils.waitForGUI(1) #delay for fetching effect on UI + utils.waitForGUI(0.2) #delay for fetching effect on UI test.endSection()