# -*- 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_BloodFlowRate # date 2020/04/13 # author Behrouz NematiPour # import names import utils import denaliMessages def gotoScreenNtest_Contains_FlowsSection(): mouseClick(waitForObject(names.o_treatmentHome_startTreatment)) test.compare(waitForObjectExists(names.o_treatmentStart_flowsTouchArea_TreatmentFlows).visible, True) def main(): utils.tstStart() startApplication("denaliSquish") utils.waitForGUI(1) gotoScreenNtest_Contains_FlowsSection() utils.waitForGUI(1) test.compare(str(waitForObjectExists(names.o_treatmentStart_flowsTouchArea_TreatmentFlows).bloodFlowSetPoint), "0") denaliMessages.setTreatmentBloodFlowRate(125, 0, 0, 0, 0, 0, 0) # coverage denaliMessages.setTreatmentBloodFlowRate(125, 0, 0, 0, 0, 0, 0) test.compare(str(waitForObjectExists(names.o_treatmentStart_flowsTouchArea_TreatmentFlows).bloodFlowSetPoint), "125") denaliMessages.setTreatmentBloodFlowRate(175, 1, 1, 1, 1, 1, 1) test.compare(str(waitForObjectExists(names.o_treatmentStart_flowsTouchArea_TreatmentFlows).bloodFlowSetPoint), "175") utils.tstDone()