Index: shared/scripts/configuration/config.py =================================================================== diff -u -r65cfe31dba0ad2b97090fdacb83181ea235f319f -r699b53e1e0941f2847c68ba4c1a1026f90f7d6fc --- shared/scripts/configuration/config.py (.../config.py) (revision 65cfe31dba0ad2b97090fdacb83181ea235f319f) +++ shared/scripts/configuration/config.py (.../config.py) (revision 699b53e1e0941f2847c68ba4c1a1026f90f7d6fc) @@ -14,11 +14,14 @@ ############################################################################ import os +from pathlib import Path from configuration.strings import * AUT_NAME = "denaliSquish" +CONFIG_PATH = Path(os.getcwd()) +HOME_DIR_PATH = CONFIG_PATH.parent.parent.parent +TREATMENT_LOG_LOCATION = "".join([str(HOME_DIR_PATH),'/Desktop/sd-card/treatment/*.log']) -COMMON_PATH = os.environ['HOME']+"/Projects" COLOR_CODES = {"Aqua": "#81ffff", "Blue": "#017dea", "Blue 2": "#1090d5", "Green": "#29fd2d", "Grey": "#d3d3d3", "Lavender": "#db98f5", "Light Blue": "#acd7f1", "Light Teal": "#29f1da","Lime": "#b7fc36", @@ -40,8 +43,6 @@ INCOMPLETE_COLOR = '#607a91' #post treatment review - -TREATMENT_LOG_LOCATION = '/home/denali/Desktop/sd-card/treatment/*.log' VISIBLE = True #dictionary consist of review parameters values of post treatment Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r79c10476a6ccb22f3faf9b37be90463c8e28fe46 -r699b53e1e0941f2847c68ba4c1a1026f90f7d6fc --- shared/scripts/configuration/utility.py (.../utility.py) (revision 79c10476a6ccb22f3faf9b37be90463c8e28fe46) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 699b53e1e0941f2847c68ba4c1a1026f90f7d6fc) @@ -22,6 +22,7 @@ import squish from configuration import config from builtins import int as pyInt + def get_bullet_object(screen_obj, num): @@ -132,6 +133,7 @@ try: list_of_files = glob.glob(config.TREATMENT_LOG_LOCATION) latest_file = max(list_of_files, key=os.path.getctime) + test.log(str(latest_file)) return latest_file except: test.fail("log file is not created during application interaction") Index: tst_post_treatment/test.py =================================================================== diff -u -r65cfe31dba0ad2b97090fdacb83181ea235f319f -r699b53e1e0941f2847c68ba4c1a1026f90f7d6fc --- tst_post_treatment/test.py (.../test.py) (revision 65cfe31dba0ad2b97090fdacb83181ea235f319f) +++ tst_post_treatment/test.py (.../test.py) (revision 699b53e1e0941f2847c68ba4c1a1026f90f7d6fc) @@ -19,6 +19,8 @@ import names import csv +import os +from pathlib import Path import test import builtins from dialin.ui import utils @@ -38,7 +40,11 @@ rightarrow_obj_names = [names.o_PostTreatmentStack_patientDisconnectionConfirm_TreatmentFlowBase] leftarrow_obj_names = [names.o_PostTreatmentStack_patientDisconnectionConfirm_TreatmentFlowBase] +pth = Path(os.getcwd()) + + + def get_rightarrow_obj(screen_obj): """ To obtain object for right arrow based on container @@ -463,7 +469,7 @@ def main(): utils.tstStart(__file__) - startApplication(config.AUT_NAME) + startApplication(config.AUT_NAME) 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()