Index: tst_Treatment_Adjustment_Saline/test.py =================================================================== diff -u -r393fd43e9a1cbf6b25a0f107928a051a622b2be2 -r54849f9bbce1803f0a5330508e4891c161bb86d4 --- tst_Treatment_Adjustment_Saline/test.py (.../test.py) (revision 393fd43e9a1cbf6b25a0f107928a051a622b2be2) +++ tst_Treatment_Adjustment_Saline/test.py (.../test.py) (revision 54849f9bbce1803f0a5330508e4891c161bb86d4) @@ -28,13 +28,12 @@ def getUnit(): - global saline_unit - saline_unit = str(waitForObjectExists(names.o_treatmentStart_SalineSection).unit) + return str(waitForObjectExists(names.o_treatmentStart_SalineSection).unit) def test_target(vTarget): test.compare( waitForObjectExists(names.o_treatmentStart_SalineSection).valueTarget , vTarget ) - test.compare(str(waitForObjectExists(names.o_treatmentStart_SalineTarget ).text) , "({:.0f} {})".format(vTarget, saline_unit)) + test.compare(str(waitForObjectExists(names.o_treatmentStart_SalineTarget ).text) , "({:.0f} {})".format(vTarget, getUnit())) def test_state(vAccept, vText): @@ -64,8 +63,6 @@ gotoScreenNtest_Contains_TreatmentSalineBolusData() utils.waitForGUI(1) - getUnit() - # Init stopped, stopped =(accepted)=> running (Text => STOP ) test_state(True , "STOP" ) test_ultrafiltration(False)