Index: shared/scripts/configuration/config.py =================================================================== diff -u -ra1d120f01d22b926f56978fd2aa4f23dab4ced40 -rc5fa7d0843882d5d33083b4938614907ec141b49 --- shared/scripts/configuration/config.py (.../config.py) (revision a1d120f01d22b926f56978fd2aa4f23dab4ced40) +++ shared/scripts/configuration/config.py (.../config.py) (revision c5fa7d0843882d5d33083b4938614907ec141b49) @@ -43,6 +43,12 @@ #ui_logs LOG_LOCATION = "".join([str(HOME_DIR_PATH),'/Desktop/sd-card/log/']) +CLOUDSYNC_FOLDER_PATH = "".join([str(HOME_DIR_PATH)+'/Desktop/']) +SD_CARD_CLOUDSYNC_FOLDER_PATH = "".join([str(HOME_DIR_PATH)+'/Desktop/sd-card/']) +SD_CARD_LOCATION = "".join([str(HOME_DIR_PATH)+'/Desktop/']) +USB_DISK_FOLDER_LOCATION = "".join([str(HOME_DIR_PATH)+'/Desktop/']) +SETTINGS_FOLDER_LOCATION = "".join([str(HOME_DIR_PATH)+'/Projects/application/resources/']) +APPLICATION_FOLDER_LOCATION = "".join([str(HOME_DIR_PATH)+'/Projects/']) PEM_FILES = ['1.pem', '2.pem', '3.pem' ] #standby mode Index: shared/scripts/configuration/strings.py =================================================================== diff -u -r2a5366f00288a7fe09d72b2c20f28e54b7a7be8d -rc5fa7d0843882d5d33083b4938614907ec141b49 --- shared/scripts/configuration/strings.py (.../strings.py) (revision 2a5366f00288a7fe09d72b2c20f28e54b7a7be8d) +++ shared/scripts/configuration/strings.py (.../strings.py) (revision c5fa7d0843882d5d33083b4938614907ec141b49) @@ -1298,73 +1298,10 @@ ALARM_PRIORITIES = {1: "LOW", 2: "MEDIUM", 3: "HIGH"} ALARM_LIST_TITLE = "Alarm list" - -REJECTION_REASON = { - 0: "No Active Alarm List", - 1: "REQUEST_REJECT_REASON_NOT_ALLOWED_IN_CURRENT_MODE", # Request is not allowed in the current operating mode - 2: "REQUEST_REJECT_REASON_TIMEOUT_WAITING_FOR_USER_CONFIRM", # Validated request was not confirmed by user in reasonable time - 3: "REQUEST_REJECT_REASON_NOT_IN_TREATMENT_MODE", # Request is not allowed if not in treatment mode - 4: "REQUEST_REJECT_REASON_INVALID_TREATMENT_STATE", # Request is not allowed in current treatment state - 5: "REQUEST_REJECT_REASON_TREATMENT_TOO_CLOSE_TO_FINISHED", # Request is not allowed so near end of treatment - 6: "REQUEST_REJECT_REASON_TREATMENT_TIME_OUT_OF_RANGE", # Treatment duration is out of range - 7: "REQUEST_REJECT_REASON_TREATMENT_TIME_LESS_THAN_CURRENT", # Treatment time change is less than currently elapsed treatment time - 8: "REQUEST_REJECT_REASON_BLOOD_FLOW_OUT_OF_RANGE", # Blood flow is out of range - 9: "REQUEST_REJECT_REASON_DIAL_FLOW_OUT_OF_RANGE", # Dialysate flow is out of range - 10: "REQUEST_REJECT_REASON_DIAL_VOLUME_OUT_OF_RANGE", # Dialysate flow rate or treatment duration causes dialysate volume to exceed limit - 11: "REQUEST_REJECT_REASON_UF_VOLUME_OUT_OF_RANGE", # Ultrafiltration volume is out of range - 12: "REQUEST_REJECT_REASON_UF_RATE_OUT_OF_RANGE", # Ultrafiltration rate is out of range - 13: "REQUEST_REJECT_REASON_TREATMENT_TIME_LESS_THAN_MINIMUM", # Treatment time change is less than minimum treatment time - 14: "REQUEST_REJECT_REASON_UF_NOT_IN_PROGESS", # Ultrafiltration is not currently in progress - 15: "REQUEST_REJECT_REASON_UF_NOT_PAUSED", # Ultrafiltration is not currently paused - 16: "REQUEST_REJECT_REASON_SALINE_BOLUS_IN_PROGRESS", # A saline bolus is in progress - 17: "REQUEST_REJECT_REASON_PARAM_OUT_OF_RANGE", # A treatment parameter is out of range - 18: "REQUEST_REJECT_REASON_HEPARIN_PRESTOP_EXCEEDS_DURATION", # The Heparin pre-stop setting is greater than the treatment duration - 19: "REQUEST_REJECT_REASON_ARTERIAL_PRESSURE_LOW_VS_HIGH", # Arterial pressure low and high alarm limits are not inconsistent - 20: "REQUEST_REJECT_REASON_VENOUS_PRESSURE_LOW_VS_HIGH", # Venous pressure low and high alarm limits are inconsistent - 21: "REQUEST_REJECT_REASON_SALINE_MAX_VOLUME_REACHED", # Saline bolus volume maximum has been reached - no more saline allowed - 22: "REQUEST_REJECT_REASON_SALINE_BOLUS_NOT_IN_PROGRESS", # A saline bolus is not in progress - 23: "REQUEST_REJECT_REASON_ACTION_DISABLED_IN_CURRENT_STATE", # Requested user action is disabled in current state - 24: "REQUEST_REJECT_REASON_ALARM_IS_ACTIVE", # Requested user action not allowed while alarm is active - 25: "REQUEST_REJECT_REASON_INVALID_COMMAND", # Requested user action invalid - 26: "REQUEST_REJECT_REASON_TREATMENT_IS_COMPLETED", # The treatment has been completed - 27: "REQUEST_REJECT_REASON_ADDL_RINSEBACK_MAX_VOLUME_REACHED", # Rinseback additional volume maximum has been reached - no more additional rinsebacks allowed - 28: "REQUEST_REJECT_REASON_UF_VOLUME_NOT_SET", # Ultrafiltration volume is not set yet - 29: "REQUEST_REJECT_REASON_NO_PATIENT_CONNECTION_CONFIRM", # The user has not confirmed patient connection - 30: "REQUEST_REJECT_REASON_HEPARIN_PAUSE_INVALID_IN_THIS_STATE", # Heparin cannot be paused if not currently deliverying Heparin - 31: "REQUEST_REJECT_REASON_HEPARIN_NOT_PAUSED", # Heparin cannot be resumed if not paused - 32: "REQUEST_REJECT_REASON_DG_COMM_LOST", # Treatment cannot initiate if DG comm is lost - 33: "REQUEST_REJECT_REASON_DRAIN_NOT_COMPLETE", # Post-treatment reservoirs drain not complete - 34: "REQUEST_REJECT_REASON_DG_NOT_IN_STANDBY_IDLE_STATE", # Treatment cannot initiate if DG is not in standby idle state - 35: "REQUEST_REJECT_REASON_INVALID_REQUEST_FORMAT", # Request message not formatted properly - 36: "REQUEST_REJECT_REASON_INVALID_DATE_OR_TIME", # Given date/time is invalid - 37: "REQUEST_REJECT_REASON_TREATMENT_IN_PROGRESS", # Treatment is in progress - 38: "REQUEST_REJECT_REASON_BATTERY_IS_NOT_CHARGED", # Battery does not have enough charge to start treatment - 39: "REQUEST_REJECT_REASON_RINSEBACK_NOT_COMPLETED", # Cannot move on to recirculate without completing full rinseback. - 40: "REQUEST_REJECT_REASON_RESERVOIR_ONE_IS_NOT_READY", # Reservoir one fill is not complete - 41: "REQUEST_REJECT_REASON_PUMP_TRACK_NOT_CLOSED", # Pump track is not ready / closed - 42: "REQUEST_REJECT_REASON_DOOR_NOT_CLOSED", # Door is not closed - 43: "REQUEST_REJECT_REASON_SYRINGE_NOT_PRESENT", # Syringe is not present - 44: "REQUEST_REJECT_REASON_DG_DIALYSATE_CAP_OPEN", # Dialysate cap open - 45: "REQUEST_REJECT_REASON_DG_CONCENTRATE_CAP_OPEN", #Concentrate cap open - 46: "NUM_OF_REQUEST_REJECT_REASONS" # Number of settings change reject codes - } # dictionary of rejection reason from application source code. # message location -> denali-> Headers-> common-> MsgDefs.h -#create custom treatment -HEPARIN_TYPE = "UFH 1,000 IU/mL" -ACID_CONCENTRATE = ["08-1251-1", "08-2251-0", "08-3251-9"] -BICARBONATE_CONCENTRATE = "Fres. Centrisol" -DIALYZER_TYPE = ["BB Diacap Pro 13H", "BB Diacap Pro 16H", "BB Diacap Pro 19H", "F Optiflux F160NRe", "F Optiflux F180NRe", "F Optiflux F200NRe"] -CONFIRM_TREATMENT_TITLE = "Confirm Treatment" -PRESCRIPTION_TITLE = "PRESCRIPTION" -OPERATING_PARAMETERS_TITLE = "OPERATING PARAMETERS" - -UNDEFINED_ALARM_ID_MSG = "ALARM_ID_UNDEFINED" -ALARM_TITLE = "Alarm" - - #wifi WIFI_TITLE_TEXT = "Wi-Fi" IP_ADDRESS_TEXT = "IP Address" @@ -1374,54 +1311,16 @@ SSID_TEXT = "SSID" SCAN_TEXT = "SCAN" SCAN_FINISHED_TEXT = "Scan Finished" -BACK_BUTTON_TEXT = "BACK" -#Bluetooth cuff -BLUETOOTH_CUFF_TITLE_TEXT = "Bluetooth Cuff" -DEVICES_TEXT = "Devices" - -#DG Cleaning -DG_CLEANING_TITLE_TEXT = "DG Cleaning" -WATER_FLUSH_TEXT = "Water Flush" -HEAT_DISINFECTION_TEXT = "Heat Disinfection" -WATER_FLUSH_TIME_TEXT = "Time (HH:MM)" -WATER_FLUSH_CYCLE_TEXT = "Cycle (Days)" -HEAT_DISINFECTION_TIME_TEXT = "Time (HH:MM)" -HEAT_DISINFECTION_CYCLE_TEXT = "Cycle (Days)" - -BACK_TEXT = "BACK" -CONTINUE_TEXT = "CONTINUE" -SKIP_TEXT = "SKIP" -OFF_TEXT = "OFF" -ON_TEXT = "ON" OPERATIONAL_PARAMETERS = {"Heparin Type": HEPARIN_TYPE, "Acid Concentrate": "Fres. Naturalyte", "Bicarbonate Concentrate": BICARBONATE_CONCENTRATE, "Dialyzer Type": "BB Diacap Pro 16H"} -LIQUID_UNIT = "mL" -#Pre-Treatment Disposables -NEXT_BUTTON_TEXT = "NEXT" -BACK_BUTTON_TEXT = "BACK" -CONFIRM_BUTTON_TEXT = "CONFIRM" -CONSUMABLE_SELF_TEST_TEXT = "Consumables Self Test" -BICARB_PUMP_CHECK_TEXT = "BiCarb Pump Check" -ACID_PUMP_CHECK_TEXT = "Acid Pump Check" -SELF_TEST_COMPLETE_TEXT = "Self Test Complete!" -BUSY = "Busy" -CHECK = "Check" -BEGIN_PRIME_TITLE = "Begin Prime" -PRIMING_TITLE = "Priming" -SYSTEM_SELF_TEST_TITLE = "System Self Test" -FILTER_FLUSH_TITLE = "Filter Flush" -#service -SERVICE_TEXT = "Service" -BACK_TEXT = "BACK" -CONFIRM_TEXT = "CONFIRM" -SHUTDOWN_TEXT = "SHUTDOWN" -SERVICE_BACK_BTN = "BACK" - +#Settings BLOOD_PRIMING_TEXT = "Blood Priming" SALINE_UNIT = "mL" + + Index: shared/scripts/names.py =================================================================== diff -u -rcfd6b3a35183b676a3ea2b92f904f54b7d54dfab -rc5fa7d0843882d5d33083b4938614907ec141b49 --- shared/scripts/names.py (.../names.py) (revision cfd6b3a35183b676a3ea2b92f904f54b7d54dfab) +++ shared/scripts/names.py (.../names.py) (revision c5fa7d0843882d5d33083b4938614907ec141b49) @@ -995,6 +995,7 @@ o_PostTreatmentStack_treatmentReviewConfirm_PostTreatmentReview = {"container": o_PostTreatmentStack_PostTreatmentStack, "objectName": "_treatmentReviewConfirm", "type": "PostTreatmentReview", "visible": True} o_treatmentReviewConfirm_Code_Tx_code_Label = {"container": o_PostTreatmentStack_treatmentReviewConfirm_PostTreatmentReview, "text": "Code: Tx_code", "type": "Label", "unnamed": 1, "visible": True} + #Setting WiFi, Bluetooth cuff, DG cleaning device_settings_screen = {"container": o_Gui_MainView, "text": "Treatment", "type": "Text", "unnamed": 1, "visible": True} o_SettingsHome_SettingsHome_2 = {"container": o_Gui_MainView, "objectName": "_SettingsHome", "type": "SettingsHome", "visible": True} @@ -1066,18 +1067,13 @@ o_gateway_text_inut = {"container": o_SettingsBase_SettingsWiFi, "echoMode": 0, "id": "_input", "occurrence": 2, "type": "TextInput", "unnamed": 1, "visible": True} o_subnet_mask_text_input = {"container": o_SettingsBase_SettingsWiFi, "echoMode": 0, "id": "_input", "occurrence": 3, "type": "TextInput", "unnamed": 1, "visible": True} o_dns_text_input = {"container": o_SettingsBase_SettingsWiFi, "echoMode": 0, "id": "_input", "occurrence": 4, "type": "TextInput", "unnamed": 1, "visible": True} -busy_indicator = {"container": o_initialModeScreen_ScreenItem, "id": "_busyIndicator", "source": "qrc:/images/iBusy", "type": "Image", "unnamed": 1, "visible": True} -done_indicator = {"container": o_initialModeScreen_ScreenItem, "id": "_checkIndicator", "source": "qrc:/images/iBusyDone", "type": "Image", "unnamed": 1, "visible": True} -fail_indicator = {"container": o_initialModeScreen_ScreenItem, "id": "_checkIndicator", "source": "qrc:/images/iBusyFail", "type": "Image", "unnamed": 1, "visible": True} -progress_bar = {"container": o_initialModeScreen_ScreenItem, "id": "_textMaximum", "type": "Text", "unnamed": 1, "visible": False} o_alarm_text = {"container": o_Overlay, "id": "_desc", "objectName": "_NotificationDialog_Description", "type": "Text", "visible": True} o_SettingsBase_mouseArea_MouseArea = {"container": o_SettingsBase_SettingsWiFi, "id": "_mouseArea", "type": "MouseArea", "unnamed": 1, "visible": True} o_preTreatmentDisposablesStack_preTreatmentDisposablesCartridgeInstallation_TreatmentFlowBase = {"container": o_PreTreatmentStack_preTreatmentDisposablesStack_PreTreatmentDisposablesStack, "objectName": "_preTreatmentDisposablesCartridgeInstallation", "type": "TreatmentFlowBase", "visible": True} o_next_button_text = {"container": o_Gui_MainView, "text":"NEXT", "type": "Text", "unnamed": 1, "visible": True} o_back_button_text = {"container": o_Gui_MainView, "text":"BACK", "type": "Text", "unnamed": 1, "visible": True} o_preTreatmentDisposablesStack_preTreatmentDisposablesSalineBag_TreatmentFlowBase = {"container": o_PreTreatmentStack_preTreatmentDisposablesStack_PreTreatmentDisposablesStack, "objectName": "_preTreatmentDisposablesSalineBag", "type": "TreatmentFlowBase", "visible": True} o_confirm_button_text = {"container": o_preTreatmentDisposablesStack_preTreatmentDisposablesSalineBag_TreatmentFlowBase, "text": "CONFIRM", "type": "Text", "unnamed": 1, "visible": True} -o_SettingsBase_Scan_Finished_Text = {"container": o_SettingsBase_SettingsWiFi, "text": "Scan Finished", "type": "Text", "unnamed": 1, "visible": True} o_SettingsBase_mouseArea_MouseArea_3 = {"container": o_SettingsBase_SettingsWiFi, "id": "_mouseArea", "occurrence": 2, "type": "MouseArea", "unnamed": 1, "visible": True} #Manager Index: tst_cloud_sync - treatment_screen/test.py =================================================================== diff -u -re249ea37ebab6dfe87a5e8f83448bb38e00d36cd -rc5fa7d0843882d5d33083b4938614907ec141b49 --- tst_cloud_sync - treatment_screen/test.py (.../test.py) (revision e249ea37ebab6dfe87a5e8f83448bb38e00d36cd) +++ tst_cloud_sync - treatment_screen/test.py (.../test.py) (revision c5fa7d0843882d5d33083b4938614907ec141b49) @@ -17,6 +17,7 @@ import csv import names +import shutil import os import time from dialin.ui import utils @@ -27,11 +28,11 @@ from dialin.common.hd_defs import HDOpModes, PreTreatmentSubModes, PostTreatmentStates from dialin.common.hd_defs import HDOpModes, HDOpSubModes from dialin.utils.conversions import float_to_bytearray, integer_to_bytearray,unsigned_integer_to_bytearray - dg_simulator = DGSimulator() hd_simulator = HDSimulator() ERROR_MESSAGE = { + "500" : "CS Unknown Error ", "501" : "CS Incorrect header ", "502" : "CS Incorrect timestamp ", "503" : "CS Incorrect sequence ", @@ -42,7 +43,17 @@ "508" : "CS Mismatch parameter count ", "509" : "CS Missing parameter ", "510" : "CS No history available ", - "520" : "CS The provided Treatment Code is empty. " + "511" : "CS Duplicate data ", + "512" : "CS The log folder cannot be created. ", + "513" : "CS Error writing to the input file. ", + "514" : "CS The credentials file does not exist. ", + "515" : "CS The credentials folder make failed. ", + "516" : "CS The credentials file copy failed. ", + "517" : "CS The credentials file remove failed. ", + "518" : "CS The credentials folder is empty. ", + "519" : "CS No Treatment Code provided. ", + "520" : "CS The provided Treatment Code is empty. ", + "521" : "CS Out buffer empty " } @@ -57,7 +68,9 @@ eError_ParamMismatch_508 = '1,1639391827,0,2999,0,508' eError_ParamMissing_509 = '1639391827,1,0,2999,3,509,[8,2]' eError_NoHistory_510 = '1639391827,1,0,2006,0' +eError_CredentialMake_514 = '1657706417,7,0,2003,3,,DG1234567890123,06300216' eError_TxCodeEmpty_520 = '1639391827,1,0,2008,1,' +eError_OutFileEmpty_521 = '' POST_TREATMENT_INSTRUCTION_COUNT = 2 @@ -75,7 +88,11 @@ DEVICE_HD_INFO_RESPONSE = '1639391827,1,0,1002,3,HD1234567890123,,sw_version' DEVICE_DG_INFO_RESPONSE = '1639391827,1,0,1002,3,,DG1234567890123,sw_version' - + +def settings_text_obj(text): + names.o_settings_home_text_obj["text"] = text + return names.o_settings_home_text_obj + def verify_code_from_treatment_response(): """ This function is used for verify the code text from treatment log. @@ -111,15 +128,25 @@ return read_line[0] -def verify_error_message(): +def verify_files_error_message(): """ This method is used to verify error message log printing inside denaliSquish.error file. """ - + + set_data_in_cloud_sync_output_file(eError_NoHistory_510) + utils.waitForGUI(2) + test.compare(verify_status(get_error_message_from_log("510")),ERROR_MESSAGE["510"], "message is not in unhandled.conf file. verified error message from .err file") + test.compare(str(verify_status(get_error_message_from_log("518"))),ERROR_MESSAGE["518"], "message is not in unhandled.conf file. verified error message from .err file") + test.compare(verify_status(get_error_message_from_log("516")),ERROR_MESSAGE["516"], "message is not in unhandled.conf file. verified error message from .err file") + set_data_in_cloud_sync_output_file(eError_HeaderCount_501) utils.waitForGUI(2) - test.compare(str(verify_status(get_error_message_from_log("501"))),ERROR_MESSAGE["501"], "message is not in unhandled.conf file. verified error message from .err file") + test.compare(verify_status(get_error_message_from_log("501")),ERROR_MESSAGE["501"], "message is not in unhandled.conf file. verified error message from .err file") +def verify_error_message(): + """ + This method is used to verify error message log printing inside denaliSquish.error file. + """ set_data_in_cloud_sync_output_file(eError_Timestamp_502) utils.waitForGUI(2) test.compare(verify_status(get_error_message_from_log("502")),ERROR_MESSAGE["502"], "message is not in unhandled.conf file. verified error message from .err file") @@ -209,12 +236,12 @@ if row[0].isalpha(): pass else: - if count == 30: + if count == 100: test.fail("handler unable to find message text from error file.") break row_length = sum(1 for values in row) try: - if ("["+error_num+":") in row[1]: + if ("["+error_num) in row[1]: if row[1] != None: return row[1] @@ -227,47 +254,130 @@ test.fail("err log file is not created or log file is not created based on standard log naming format.") +def rename_file(path,filename): + """ + This method Rename the original folder name to dummy name. + """ + folder_path = os.listdir(path) + for files in folder_path: + if files == filename+"_1": + if os.path.exists(path+filename+"_1"): + shutil.rmtree(path+filename+"_1") + test.log(str(filename+" name changed to "+files)) + if files == filename: + if os.path.exists(path+filename): + utils.waitForGUI(1) + os.rename(path+filename,path+filename+"_1") + test.log(str(files+" name changed to "+filename+"_1")) + +def rename_old_name(path,filename): + """ + This method Rename the dummy name to original folder name . + """ + folder_path = os.listdir(path) + for files in folder_path: + if files == filename: + if os.path.exists(path+filename): + shutil.rmtree(path+filename) + test.log(str(files+"_1 name changed to "+filename)) + utils.waitForGUI(5) + if files != filename: + if (files == filename+"_1"): + os.rename(path+files,path+filename) + test.log(str(files+" name changed to "+filename)) + +def click_scan_button_wifi(): + """ + Method to verify "Wi-Fi" screen + """ + test.startSection("Verifying Wi-Fi setting") + utils.waitForGUI(0.2) + mouseClick(waitForObjectExists(names.o_SettingsHome_mouseArea_MouseArea_2)) + utils.waitForGUI(5) + mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea_3)) + mouseClick(waitForObjectExists(names.o_SettingsBase_mouseArea_MouseArea)) + test.endSection() + +def navigate_to_settings_screen(): + """ + Method to navigate to "Settings" screen + """ + test.startSection("Navigating to 'Device Settings' screen") + hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_STAN.value, sub_mode=HDOpModes.MODE_FAUL.value) + utils.waitForGUI(1) + mouseClick(waitForObjectExists(names.o_settings_Text)) + device_settings_text = waitForObjectExists(settings_text_obj(config.DEVICE_SETTINGS_TEXT)) + test.compare(device_settings_text.text, config.DEVICE_SETTINGS_TEXT, "{} screen is displayed".format(config.DEVICE_SETTINGS_TEXT)) + test.endSection() + +def rename_folder_names(): + """ + This method is for renaming the folder name and wait application for verifying particular file. + """ + test.startSection("Renaming the cloudsync,sd-card, usb-disk, application folder name") + rename_file(config.SD_CARD_CLOUDSYNC_FOLDER_PATH,"cloudsync") + utils.waitForGUI(5) + rename_old_name(config.SD_CARD_CLOUDSYNC_FOLDER_PATH,"cloudsync") + + rename_file(config.SD_CARD_LOCATION,"sd-card") + utils.waitForGUI(5) + rename_old_name(config.SD_CARD_LOCATION,"sd-card") + + rename_file(config.USB_DISK_FOLDER_LOCATION,"usb-disk") + utils.waitForGUI(5) + rename_old_name(config.USB_DISK_FOLDER_LOCATION,"usb-disk") + + rename_file(config.APPLICATION_FOLDER_LOCATION,"application") + utils.waitForGUI(5) + navigate_to_settings_screen() + click_scan_button_wifi() + rename_old_name(config.APPLICATION_FOLDER_LOCATION,"application") + test.endSection() + def main(): - utility.append_cloudsync_credentials_file() - + rename_file(config.CLOUDSYNC_FOLDER_PATH,"cloudsync") + utils.waitForGUI(1) utils.tstStart(__file__) startApplication(config.AUT_NAME) utils.waitForGUI(1.5) - verify_error_message() - + verify_files_error_message() + rename_old_name(config.CLOUDSYNC_FOLDER_PATH,"cloudsync") + + utility.append_cloudsync_credentials_file() + utils.waitForGUI(5) + verify_error_message() main_item = waitForObjectExists(names.o_mainItem_Item) expected_software_version = str(object.children(main_item)[5]) - + set_data_in_cloud_sync_output_file(CODE_DISPLAY_REQUEST) verify_code_from_treatment_response() - + set_data_in_cloud_sync_output_file(DEVICE_CREDENTIALS_REQUEST) device_credentials_response = utility.retrive_log_data() verify_log_response(device_credentials_response[0], DEVICE_CREDENTIALS_RESPONSE) - + set_data_in_cloud_sync_output_file(DEVICE_FACTORY_RESET_REQUEST) factory_reset_response = utility.retrive_log_data() verify_log_response(factory_reset_response[0], DEVICE_FACTORY_RESET_CONFIRM) - + HD_VERSION = HD_VERSION_SERIAL_REQUEST.split(",") hd_simulator.cmd_send_serial_hd_data(HD_VERSION[5]) set_data_in_cloud_sync_output_file(DEVICE_INFO_REQUEST) device_credentials_response = utility.retrive_log_data() verify_log_response(device_credentials_response[0], DEVICE_HD_INFO_RESPONSE) - + DG_VERSION = DG_VERSION_SERIAL_REQUEST.split(",") dg_simulator.cmd_send_serial_dg_data(DG_VERSION[6]) set_data_in_cloud_sync_output_file(DEVICE_INFO_REQUEST) device_credentials_response = utility.retrive_log_data() verify_log_response(device_credentials_response[0], DEVICE_DG_INFO_RESPONSE) - + hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_STAN.value, sub_mode=HDOpSubModes.STANDBY_WAIT_FOR_TREATMENT_STATE .value) set_data_in_cloud_sync_output_file(DEVICE_STATE_REQUEST) device_credentials_response = utility.retrive_log_data() - verify_log_response(device_credentials_response[0], DEVICE_STATE_RESPONSE) + verify_log_response(device_credentials_response[0], DEVICE_STATE_RESPONSE) + rename_folder_names() utils.tstDone() - - \ No newline at end of file