Index: tst_cloud_sync - treatment_screen/test.py =================================================================== diff -u -rfa08234fe32d464f02060777ad9bdb3dff2e6255 -rc4c343725fdb5ed164f5b0638d7f4dbeb0eda0c8 --- tst_cloud_sync - treatment_screen/test.py (.../test.py) (revision fa08234fe32d464f02060777ad9bdb3dff2e6255) +++ tst_cloud_sync - treatment_screen/test.py (.../test.py) (revision c4c343725fdb5ed164f5b0638d7f4dbeb0eda0c8) @@ -25,6 +25,7 @@ from dialin.ui.hd_simulator import HDSimulator from dialin.ui.dg_simulator import DGSimulator 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() @@ -34,7 +35,7 @@ CODE_DISPLAY_REQUEST = '1639391827,1,0,2008,1,Tx_code' DEVICE_STATE_REQUEST = '1639391827,1,0,2006,0' -DEVICE_STATE_RESPONSE = '1639391827,1,0, 1006, 2, Op-Mode, Sub-Mode' +DEVICE_STATE_RESPONSE = '1639391827,1,0,1006,2,3,0' DEVICE_CREDENTIALS_REQUEST = '1639391827,1,0,2004,0' DEVICE_CREDENTIALS_RESPONSE = '1639391827,1,0,1004,1,/tmp/credentials/' DEVICE_FACTORY_RESET_REQUEST = '1639391827,1,0,2005,0' @@ -129,8 +130,11 @@ 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) - utils.tstDone() \ No newline at end of file