Index: suite_leahi/tst_ultrafiltration/test.py =================================================================== diff -u -rbc991ff3f0c12142cc4d10c52021f3bc01f4fbeb -r6d83d7cbea9b040ee4717d7b90fdc44bf618bdcf --- suite_leahi/tst_ultrafiltration/test.py (.../test.py) (revision bc991ff3f0c12142cc4d10c52021f3bc01f4fbeb) +++ suite_leahi/tst_ultrafiltration/test.py (.../test.py) (revision 6d83d7cbea9b040ee4717d7b90fdc44bf618bdcf) @@ -23,9 +23,12 @@ from leahi_dialin.common.td_defs import TDOpModes,TDTreatmentStates from leahi_dialin.common import msg_ids from leahi_dialin.utils import conversions +from configuration.getrejectiontext import ScopedRejectionRepository + td =TD_Messaging() + MAX_UF_VOLUME = 10.00 MAX_UF_RATE = 10.00 MAX_VOLUME_DELIVERED = 8.00 @@ -43,9 +46,9 @@ UF_VOLUME_GOAL = "UF Volume Goal" NEW_UF_VOLUME = "New UF Volume" NEW_UF_RATE = "New UF Rate" -REJECT_TEXT = "[1] Request is not allowed in the current operating mode" + MAX_NEW_UF_VOLUME = 8.0 MAX_NEW_UF_RATE = 2.0 @@ -93,6 +96,10 @@ def main(): utils.tstStart(__file__) + + conf_path = "/home/denali/Public/luis/config/configurations/Alarms/Rejections.conf" + repo = ScopedRejectionRepository(path=conf_path) + startApplication(config.AUT_NAME) td.td_operation_mode(TDOpModes.MODE_STAN.value) @@ -187,7 +194,8 @@ rejectionReason = 1) reject_text = waitForObject(names.o_notificationBar_NotificationBarSmall).text - test.compare(reject_text,REJECT_TEXT,"Text should be ->" +str(REJECT_TEXT)) + REJECT_TEXT = repo.get("1", "Title") + test.compare(reject_text,"[1] "+REJECT_TEXT ,"Text should be ->" +str(REJECT_TEXT)) test.endSection() utils.tstDone()