Index: tst_settings_information/test.py =================================================================== diff -u -r1786726a18852b973109f747fb034a426f508a4a -r236737fba3069061422944f63380de039bca606f --- tst_settings_information/test.py (.../test.py) (revision 1786726a18852b973109f747fb034a426f508a4a) +++ tst_settings_information/test.py (.../test.py) (revision 236737fba3069061422944f63380de039bca606f) @@ -30,29 +30,6 @@ names.o_settings_base_text_obj["text"] = text return names.o_settings_base_text_obj -def verify_clear_alarm_condition_button(): - """ - Method to verify the 'Clear Alarm Condition' button - """ - test.startSection("Verifying Clear Alarm Condition button") - clear_condition_button = waitForObjectExists(settings_text_obj(config.CLEAR_ALARM_CONDITION_TEXT)) - test.compare(clear_condition_button.text, config.CLEAR_ALARM_CONDITION_TEXT, "Clear Alarm Condition button text should be {}".format(config.CLEAR_ALARM_CONDITION_TEXT)) - test.compare(clear_condition_button.enabled, config.ENABLED, "Clear Alarm Condition button should be enabled") - test.endSection() - -def verify_export_button(state): - """ - Method to verify the 'Export' button - """ - test.startSection("Verifying Export button") - export_btn = waitForObjectExists(settings_text_obj(config.EXPORT_TEXT)) - test.compare(export_btn.text, config.EXPORT_TEXT, "Export button text should be {}".format(config.EXPORT_TEXT)) - if state == config.ENABLED: - test.compare(export_btn.enabled, config.ENABLED, "Export button should be enabled") - else: - test.compare(export_btn.enabled, config.DISABLED, "Export button should be disabled") - test.endSection() - def verify_settings_parameters(): """ Method to verify the buttons @@ -161,6 +138,31 @@ continue test.endSection() + +def verify_clear_alarm_condition_button(): + """ + Method to verify the 'Clear Alarm Condition' button + """ + test.startSection("Verifying Clear Alarm Condition button") + clear_condition_button = waitForObjectExists(settings_text_obj(config.CLEAR_ALARM_CONDITION_TEXT)) + test.compare(clear_condition_button.text, config.CLEAR_ALARM_CONDITION_TEXT, "Clear Alarm Condition button text should be {}".format(config.CLEAR_ALARM_CONDITION_TEXT)) + test.compare(clear_condition_button.enabled, config.ENABLED, "Clear Alarm Condition button should be enabled") + test.endSection() + +def verify_export_button(state): + """ + Method to verify the 'Export' button + """ + test.startSection("Verifying Export button") + export_btn = waitForObjectExists(settings_text_obj(config.EXPORT_TEXT)) + test.compare(export_btn.text, config.EXPORT_TEXT, "Export button text should be {}".format(config.EXPORT_TEXT)) + if state == config.ENABLED: + test.compare(export_btn.enabled, config.ENABLED, "Export button should be enabled") + else: + test.compare(export_btn.enabled, config.DISABLED, "Export button should be disabled") + test.endSection() + + def main(): utils.tstStart(__file__)