Index: suite_leahi/shared/scripts/configuration/utility.py =================================================================== diff -u -rf110ca9e178cb56b02ed6329dc7c98e579998fba -r885d84508080eb00e01a756e33c5109c9da761fe --- suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision f110ca9e178cb56b02ed6329dc7c98e579998fba) +++ suite_leahi/shared/scripts/configuration/utility.py (.../utility.py) (revision 885d84508080eb00e01a756e33c5109c9da761fe) @@ -40,7 +40,7 @@ names.o_text_object["text"] = txt return names.o_text_object -def set_Object_Text(text,obj): +def setObjectText(text,obj): """ Method to set object property based on text @param text : (string) treatment parameter text @@ -115,7 +115,7 @@ if type_combo_box is not None: squish.mouseClick(squish.waitForObjectExists(object)) - type_option = get_object_from_names(set_Object_Text(obj = names.o_option_combo_box,text = type[whichTypeIndex]),error_message=f"Option {type[whichTypeIndex]} object is missing",timeout_ms=5000) + type_option = get_object_from_names(setObjectText(obj = names.o_option_combo_box,text = type[whichTypeIndex]),error_message=f"Option {type[whichTypeIndex]} object is missing",timeout_ms=5000) if type_option is not None: squish.mouseClick(type_option) return True @@ -128,7 +128,7 @@ """ try: - value_field = waitForObject(value_field_obj) + value_field = waitForObject(value_field_obj,1000) test.log(f"Opening slider for {parameter}...") # Try right-click first Index: suite_leahi/shared/scripts/names.py =================================================================== diff -u -rf110ca9e178cb56b02ed6329dc7c98e579998fba -r885d84508080eb00e01a756e33c5109c9da761fe --- suite_leahi/shared/scripts/names.py (.../names.py) (revision f110ca9e178cb56b02ed6329dc7c98e579998fba) +++ suite_leahi/shared/scripts/names.py (.../names.py) (revision 885d84508080eb00e01a756e33c5109c9da761fe) @@ -73,4 +73,3 @@ o_PreTreatmentCreate_Text = {"container": o_PreTreatmentCreateStack_PreTreatmentCreate_PreTreatmentCreate, "type": "Text", "unnamed": 1 } - Index: suite_leahi/tst_create_treatment/test.py =================================================================== diff -u -rf110ca9e178cb56b02ed6329dc7c98e579998fba -r885d84508080eb00e01a756e33c5109c9da761fe --- suite_leahi/tst_create_treatment/test.py (.../test.py) (revision f110ca9e178cb56b02ed6329dc7c98e579998fba) +++ suite_leahi/tst_create_treatment/test.py (.../test.py) (revision 885d84508080eb00e01a756e33c5109c9da761fe) @@ -478,7 +478,7 @@ for expected_treatment_title,object in zip(CREATE_TREATMENT_PARAMETERS,CREATE_TREATEMENT_OBJ): - parameter_object = utility.set_Object_Text(text = expected_treatment_title,obj =object) + parameter_object = utility.setObjectText(text = expected_treatment_title,obj =object) parameter_text = waitForObject(parameter_object) parameter_text_color = parameter_text.border.color.name test.compare(COLOR_CODES, parameter_text_color, "parameter color should be ' \red for' " + expected_treatment_title +" , if the confirmation get rejected !") @@ -518,13 +518,13 @@ verify_create_custom_treatment_parameter() test.endSection() - test.startSection("Verify the validate function with out entering Patient ID") - td.td_operation_mode(TDOpModes.MODE_STAN.value) - # verify Standby screen - test.verify(waitForObjectExists(names.o_standByScreen_MainHome), "In Standby") - td.td_operation_mode(TDOpModes.MODE_TPAR.value, 0) - verify_create_custom_treatment_parameter() - test.endSection() + # test.startSection("Verify the validate function with out entering Patient ID") + # td.td_operation_mode(TDOpModes.MODE_STAN.value) + # # verify Standby screen + # test.verify(waitForObjectExists(names.o_standByScreen_MainHome), "In Standby") + # td.td_operation_mode(TDOpModes.MODE_TPAR.value, 0) + # verify_create_custom_treatment_parameter() + # test.endSection() test.startSection("Verify the slider function without Patient ID") verify_custom_treatment_slider()