Index: shared/scripts/configuration/config.py =================================================================== diff -u -r29c20da01a9b6e69b3cc28efa76ddfe24192145e -rab5e7951a67b810bb37aa86ac3c7d72089ac3f13 --- shared/scripts/configuration/config.py (.../config.py) (revision 29c20da01a9b6e69b3cc28efa76ddfe24192145e) +++ shared/scripts/configuration/config.py (.../config.py) (revision ab5e7951a67b810bb37aa86ac3c7d72089ac3f13) @@ -17,7 +17,7 @@ from pathlib import Path from configuration.strings import * -AUT_NAME = "denaliSquish" +AUT_NAME = "denaliSquish -k -K -S" CONFIG_PATH = Path(os.getcwd()) HOME_DIR_PATH = CONFIG_PATH.parent.parent.parent POST_TREATMENT_LOG_LOCATION = "".join([str(HOME_DIR_PATH),'/Desktop/sd-card/treatment/*.log']) Index: shared/scripts/configuration/strings.py =================================================================== diff -u -rbbf165f0fb568a5fd163816a611a754b22900cde -rab5e7951a67b810bb37aa86ac3c7d72089ac3f13 --- shared/scripts/configuration/strings.py (.../strings.py) (revision bbf165f0fb568a5fd163816a611a754b22900cde) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision ab5e7951a67b810bb37aa86ac3c7d72089ac3f13) @@ -21,6 +21,7 @@ PATIENT_DISCONNECTION_TEXT = "Patient Disconnection" REVIEW_TEXT = "Review" EXPORT_TEXT = "Export" +EXPORT_LOG_MSG = "Unable to export treatment log ''" PATIENT_DISCONNECTION_CONFIRM_BUTTON_TEXT = "CONFIRM" DISPOSABLE_TEXT = "Disposables" NEXT_TEXT = "NEXT" Index: shared/scripts/names.py =================================================================== diff -u -r45d310f0a2c4e815013caab8bc79bd183aeaa115 -rab5e7951a67b810bb37aa86ac3c7d72089ac3f13 --- shared/scripts/names.py (.../names.py) (revision 45d310f0a2c4e815013caab8bc79bd183aeaa115) +++ shared/scripts/names.py (.../names.py) (revision ab5e7951a67b810bb37aa86ac3c7d72089ac3f13) @@ -82,11 +82,11 @@ o_eject_button = {"container": o_PostTreatmentStack_treatmentReviewConfirm_PostTreatmentReview, "id": "_image", "source": "qrc:/images/iEject", "type": "Image", "unnamed": 1, "visible": True} o_right_arrow = {"id": "_rightImage", "source": "qrc:/images/iArrowRight", "type": "Image", "unnamed": 1, "visible": True} o_left_arrow = {"id": "_leftImage", "source": "qrc:/images/iArrowLeft", "type": "Image", "unnamed": 1, "visible": True} +o_PostTreatment_Export_mousearea = {"container": o_PostTreatmentStack_treatmentReviewConfirm_PostTreatmentReview, "id": "_mouseArea", "occurrence": 2, "type": "MouseArea", "unnamed": 1, "visible": True} +o_treatmentlog_msg_export_btn = {"container": o_PostTreatmentStack_treatmentReviewConfirm_PostTreatmentReview, "text": "Unable to export treatment log ''", "type": "Text", "unnamed": 1, "visible": True} - - #post treatment review o_Gui_MainView = {"type": "Gui::MainView", "unnamed": 1, "visible": True} o_PostTreatmentStack_PostTreatmentStack = {"container": o_Gui_MainView, "objectName": "_PostTreatmentStack", "type": "PostTreatmentStack", "visible": True} Index: tst_post_treatment/test.py =================================================================== diff -u -r45d310f0a2c4e815013caab8bc79bd183aeaa115 -rab5e7951a67b810bb37aa86ac3c7d72089ac3f13 --- tst_post_treatment/test.py (.../test.py) (revision 45d310f0a2c4e815013caab8bc79bd183aeaa115) +++ tst_post_treatment/test.py (.../test.py) (revision ab5e7951a67b810bb37aa86ac3c7d72089ac3f13) @@ -30,6 +30,7 @@ from configuration import utility from dialin.common.hd_defs import HDOpModes, HDOpSubModes, PostTreatmentStates + hd_simulator = HDSimulator() SCREEN_OBJ1 = names.o_PostTreatmentStack_patientDisconnectionConfirm_TreatmentFlowBase @@ -209,6 +210,9 @@ test.compare(str(waitForObjectExists(names.o_treatmentReviewConfirm_Export_Text).text), config.EXPORT_TEXT,"Export button text must be {}".format(config.EXPORT_TEXT)) test.verify(waitForObjectExists(names.o_treatmentReviewConfirm_Export_Text).enabled, " Export button should be enabled") test.verify(waitForObject(names.o_eject_button).enabled, "Eject button must be enable") + mouseClick(waitForObject(names.o_PostTreatment_Export_mousearea)) + test.compare(str(waitForObjectExists(names.o_treatmentlog_msg_export_btn).text), config.EXPORT_LOG_MSG,"Treatment log message on clicking Export button text must be {}".format(config.EXPORT_LOG_MSG)) +# test.verify(waitForObjectExists(names.o_treatmentlog_msg_export_btn).visible, "Treatment log message should be visible") mouseClick(waitForObject(names.o_eject_button)) test.verify(not waitForObjectExists(names.o_treatmentReviewConfirm_Export_Text).enabled, " Export button should be disabled") verify_post_treatment_review_parameters() @@ -549,7 +553,7 @@ def main(): utils.tstStart(__file__) - startApplication(config.AUT_NAME) + startApplication(config.AUT_NAME+ " -l") hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_POST.value, sub_mode=PostTreatmentStates.HD_POST_TREATMENT_PATIENT_DISCONNECTION_STATE.value) verify_patient_disconnection_screens() verify_treatment_review_screen()