Index: suite_leahi/shared/scripts/names.py =================================================================== diff -u -r8dfee2fd30543d6171aa1d5139a5a0003d6c8f25 -r53a5b50bd65ec2533b82b5ae12cf294aa936cf3e --- suite_leahi/shared/scripts/names.py (.../names.py) (revision 8dfee2fd30543d6171aa1d5139a5a0003d6c8f25) +++ suite_leahi/shared/scripts/names.py (.../names.py) (revision 53a5b50bd65ec2533b82b5ae12cf294aa936cf3e) @@ -357,4 +357,7 @@ o_vitals_close_btn = {"container": o_Overlay, "id": "_image", "source": "qrc:/images/iClose", "type": "Image", "unnamed": 1 } o_TreatmentBloodPrime_TreatmentBloodPrime = {"container": treatmentStack, "objectName": "_TreatmentBloodPrime", "type": "TreatmentBloodPrime", } o_TreatmentBloodPrime_flowRateValue_Text = {"container": o_TreatmentBloodPrime_TreatmentBloodPrime, "objectName": "_flowRateValue", "type": "Text", } -o_createHDFTreatment_TouchRect = {"container": o_standByScreen_MainHome, "id": "_createHDFTreatment", "type": "TouchRect", "unnamed": 1 } +o_createHDFTreatment_TouchRect = {"container": o_standByScreen_MainHome, "id": "_createHDFTreatment", "type": "TouchRect", "unnamed": 1 } +#Added occurences and visible property to click on HDF tab +o_listView_ListView_2 = {"container": o_Gui_MainView, "id": "_listView", "occurrence": 2, "type": "ListView", "unnamed": 1, "visible": True} +o_listView_delegateControl_Item_2 = {"container": o_listView_ListView_2, "index": 3, "objectName": "delegateControl", "type": "Item" } Index: suite_leahi/tst_main_tx_hdf/test.py =================================================================== diff -u -r8dfee2fd30543d6171aa1d5139a5a0003d6c8f25 -r53a5b50bd65ec2533b82b5ae12cf294aa936cf3e --- suite_leahi/tst_main_tx_hdf/test.py (.../test.py) (revision 8dfee2fd30543d6171aa1d5139a5a0003d6c8f25) +++ suite_leahi/tst_main_tx_hdf/test.py (.../test.py) (revision 53a5b50bd65ec2533b82b5ae12cf294aa936cf3e) @@ -67,12 +67,8 @@ 0 , 0 , 0) - # mouseClick(waitForObject(utility.setObjectText(names.o_listView_Item, config.HDF), 3000)) - parent_obj = waitForObjectExists(names.o_listView_Item) - - hdf_text = utility.findChildByText(parent_object=parent_obj,target_text="HDF") - - mouseClick(hdf_text) + hdf_item = waitForObject(names.o_listView_delegateControl_Item_2,1000) + mouseClick(hdf_item) td.td_pressure(H2_arterial_pressure = 160, H14_venous_pressure = 440 , limit_state = 0, @@ -114,11 +110,11 @@ hdf_edit_button = waitForObject(names.o_treatmentHDF_treatmentHdfComponent_TreatmentHDFComponent) edit_hdf = utility.findObjectById(hdf_edit_button,"_editButton") mouseClick(edit_hdf) - utility.set_value_based_on_target(names.o_valueAdjuster_ValueAdjuster, 1.1) + utility.set_value_based_on_target(names.o_valueAdjuster_ValueAdjuster, 4.6) mouseClick(names.o_confirmButton_ConfirmButton) prescribed_fluid_volume = waitForObject(names.o_treatmentHDF_prescribedFluidVolume_LabelUnitValueAdjuster,1000) prescribed_fluid_volume_value = round(prescribed_fluid_volume.value,1) - test.compare(prescribed_fluid_volume_value, float(1.1), "Prescribed Fluid volume should be"+str(prescribed_fluid_volume_value)) + test.compare(prescribed_fluid_volume_value, float(4.6), "Prescribed Fluid volume should be"+str(prescribed_fluid_volume_value)) test.endSection() utils.tstDone()