Index: suite.conf =================================================================== diff -u -r40568c277aa2c01963d0f3f9da41748c2686d343 -rf268c732b393b4a4db05e8b8d4b1e17f7252ea27 --- suite.conf (.../suite.conf) (revision 40568c277aa2c01963d0f3f9da41748c2686d343) +++ suite.conf (.../suite.conf) (revision f268c732b393b4a4db05e8b8d4b1e17f7252ea27) @@ -5,6 +5,6 @@ IMPLICITAUTSTART=0 LANGUAGE=Python OBJECTMAPSTYLE=script -TEST_CASES=tst_GlobalTests tst_HomeScreen tst_ServiceShutdown tst_TreatmentScreen tst_Treatment_BloodDialysate_Section tst_Treatment_ParametersRange tst_Treatment_Adjustment_BloodDialysate tst_TreatmentTime tst_Alarm +TEST_CASES=tst_GlobalTests tst_HomeScreen tst_ServiceShutdown tst_TreatmentScreen tst_Treatment_Section_BloodDialysate tst_Treatment_ParametersRange tst_Treatment_Adjustment_BloodDialysate tst_Treatment_Time tst_Alarm VERSION=3 WRAPPERS=Qt Fisheye: Tag f268c732b393b4a4db05e8b8d4b1e17f7252ea27 refers to a dead (removed) revision in file `tst_TreatmentTime/test.py'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag f268c732b393b4a4db05e8b8d4b1e17f7252ea27 refers to a dead (removed) revision in file `tst_Treatment_BloodDialysate_Section/test.py'. Fisheye: No comparison available. Pass `N' to diff? Index: tst_Treatment_Section_BloodDialysate/test.py =================================================================== diff -u --- tst_Treatment_Section_BloodDialysate/test.py (revision 0) +++ tst_Treatment_Section_BloodDialysate/test.py (revision f268c732b393b4a4db05e8b8d4b1e17f7252ea27) @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- + +## +# Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +# copyright +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, +# IN PART OR IN WHOLE, +# WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# file tst_Treatment_Section_BloodDialysate +# date 2020/04/06 +# author Behrouz NematiPour +# + +import names + +def main(): + startApplication("denaliSquish") + + # Goto Treatment Screen + mouseClick(waitForObject(names.o_treatmentHome_startTreatment)) + + # Flows section is available + test.compare(waitForObjectExists(names.o_treatmentStart_flowsTouchArea_TreatmentFlows).visible, True) + + # Flow title visible + test.compare(waitForObjectExists(names.o_treatmentStart_FLOWS_Text).visible, True) + + #Blood Section + test.compare(waitForObjectExists(names.o_treatmentStart_Blood_Text).visible, True) + test.compare(str(waitForObjectExists(names.o_treatmentStart_Blood_Text).text), "Blood") + test.compare(waitForObjectExists(names.o_treatmentStart_0_Text).visible, True) + test.compare(waitForObjectExists(names.o_treatmentStart_mL_min_Text).visible, True) + test.compare(str(waitForObjectExists(names.o_treatmentStart_mL_min_Text).text), "mL/min") + + # Dialysate Section + test.compare(waitForObjectExists(names.o_treatmentStart_Dialysate_Text).visible, True) + test.compare(str(waitForObjectExists(names.o_treatmentStart_Dialysate_Text).text), "Dialysate") + test.compare(waitForObjectExists(names.o_treatmentStart_0_Text_2).visible, True) + test.compare(waitForObjectExists(names.o_treatmentStart_mL_min_Text_2).visible, True) + test.compare(str(waitForObjectExists(names.o_treatmentStart_mL_min_Text_2).text), "mL/min") + Index: tst_Treatment_Time/test.py =================================================================== diff -u --- tst_Treatment_Time/test.py (revision 0) +++ tst_Treatment_Time/test.py (revision f268c732b393b4a4db05e8b8d4b1e17f7252ea27) @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- + +## +# Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +# copyright +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, +# IN PART OR IN WHOLE, +# WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# file tst_Treatment_Time +# date 2020/04/10 +# author Behrouz NematiPour +# + +import names +import time +import denaliMessages + +def gotoScreenNtest_Contains_TimeSection(): + mouseClick(waitForObject(names.o_treatmentHome_startTreatment)) + test.compare(waitForObjectExists(names.o_treatmentStart_shape_Shape).visible, True) + +def startNTestTreatmentTime(vTotal): + for i in range(0,vTotal+1): + denaliMessages.setTreatmentTime(vTotal, i, vTotal - i) + test.compare(waitForObjectExists(names.o_treatmentStart_shape_Shape).parent.parent.parent.parent.progressValue, i) + test.compare(waitForObjectExists(names.o_treatmentStart_shape_Shape).parent.parent.parent.parent.timeTextValue, vTotal - i) + +def resetNTestTreatmentTime(vTotal): + denaliMessages.setTreatmentTime(vTotal, 0, vTotal) + test.compare(waitForObjectExists(names.o_treatmentStart_shape_Shape).parent.parent.parent.parent.maximum, vTotal) + test.compare(waitForObjectExists(names.o_treatmentStart_shape_Shape).parent.parent.parent.parent.minimum, 0) + +def main(): + startApplication("denaliSquish") + + gotoScreenNtest_Contains_TimeSection() + time.sleep(1) + + total = 60 + resetNTestTreatmentTime(total) + startNTestTreatmentTime(total) + resetNTestTreatmentTime(total) + + + total = 10 + resetNTestTreatmentTime(total) + startNTestTreatmentTime(total) + resetNTestTreatmentTime(total)