# -*- 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_ParametersRange # date 2020/04/06 # 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 gotoScreenNTest_Contains_Ranges(): mouseClick(waitForObject(names.o_treatmentStart_flowsTouchArea_TreatmentFlows)) test.compare(waitForObjectExists(names.o_modalDialog).visible, True) def test_Dialysate_Ranges(): test.compare(waitForObjectExists(names.o_dialysateFlowSlider_Slider).minimum, 150) test.compare(waitForObjectExists(names.o_dialysateFlowSlider_Slider).maximum, 550) test.compare(str(waitForObjectExists(names.o_dialysateFlowSlider_Slider).minText.text), "150mL/min") test.compare(str(waitForObjectExists(names.o_dialysateFlowSlider_Slider).maxText.text), "550mL/min") def main(): startApplication("denaliSquish") gotoScreenNtest_Contains_FlowsSection() gotoScreenNTest_Contains_Ranges() utils.waitForGUI(1) denaliMessages.setTreatmentParamRanges(0, 0, 0, 0, 150, 550) #coverage denaliMessages.setTreatmentParamRanges(0, 0, 0, 0, 150, 550) denaliMessages.send_acknowledge_UI() test_Dialysate_Ranges()