Fisheye: Tag 26e68731c53ee0097db3de98b80c687727d3540b refers to a dead (removed) revision in file `config.xml'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 26e68731c53ee0097db3de98b80c687727d3540b refers to a dead (removed) revision in file `envvars'. Fisheye: No comparison available. Pass `N' to diff? Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rd1d015b1fc0e6973a2ca095f8379aeaf283ec69a -r26e68731c53ee0097db3de98b80c687727d3540b --- shared/scripts/configuration/utility.py (.../utility.py) (revision d1d015b1fc0e6973a2ca095f8379aeaf283ec69a) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 26e68731c53ee0097db3de98b80c687727d3540b) @@ -62,7 +62,7 @@ except: return False -def retrive_log_data(readline_count = 16): +def retrive_log_data(readline_count = 18): """ This function is the handler for getting file from log folder. Application log data is automatically appended on '/home/denali/Desktop/sd-card/cloudsync/ {current_date}_out.log' Index: tst_cloud_sync_hd_opmodes/test.py =================================================================== diff -u -rd4131d90694090a1cce9d3156dd1dbd402ae1b8d -r26e68731c53ee0097db3de98b80c687727d3540b --- tst_cloud_sync_hd_opmodes/test.py (.../test.py) (revision d4131d90694090a1cce9d3156dd1dbd402ae1b8d) +++ tst_cloud_sync_hd_opmodes/test.py (.../test.py) (revision 26e68731c53ee0097db3de98b80c687727d3540b) @@ -25,6 +25,7 @@ hd_simulator = HDSimulator() + MESSAGE_SERVICE_MODE = '1639391827,1,0,1006,2,1,0' MESSAGE_INIT_MODE = '1639391827,1,0,1006,2,2,0' MESSAGE_STAND_BY_MODE = '1639391827,1,0,1006,2,3,0' @@ -33,15 +34,17 @@ MESSAGE_TREATMENT_MODE = '1639391827,1,0,1006,2,6,0' MESSAGE_POST_TREATMENT_MODE = '1639391827,1,0,1006,2,7,0' MESSAGE_ILLEGAL_TRANSITION_MODE = '1639391827,1,0,1006,2,8,0' +MESSAGE_FAULT_MODE = '1658165998,14,0,1006,2,0,0' DEVICE_CREDENTIALS_RESPONSE = '1639391827,1,0,1004,1,/tmp/credentials/' + def verify_hd_opmodes(): """ Method is used to navigate to different hd opmodes and verify message id's @message_id 1006 - to send device state from UI2CS @message_id 1004 - to send device credentials from UI2CS """ - test.startSection("Verifying message id, opmode, submode for intialisation screen") + test.startSection("Verifying message id, opmode, submode for Intialisation and POST mode screen") hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_INIT.value, sub_mode=HDOpSubModes.STANDBY_START_STATE.value) utils.waitForGUI(1) test.log("Initial mode") @@ -107,29 +110,39 @@ verify_log_response(actual_inp_buf_data[0],MESSAGE_POST_TREATMENT_MODE) verify_log_response(actual_inp_buf_data[1],DEVICE_CREDENTIALS_RESPONSE) test.endSection() - - test.startSection("Verifying message id, opmode, submode for Service mode screen") - hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_SERV.value, sub_mode=HDOpSubModes.STANDBY_START_STATE.value) + + test.startSection("Verifying message id, opmode, submode for Illegal transition screen") + hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_NLEG.value, sub_mode=HDOpSubModes.STANDBY_START_STATE.value) utils.waitForGUI(1) - test.log("Service mode") + test.log ("Illegal Transition") retrive_log_data_lines = 14 actual_inp_buf_data = utility.retrive_log_data(retrive_log_data_lines) test.log(str(actual_inp_buf_data[0])) - verify_log_response(actual_inp_buf_data[0],MESSAGE_SERVICE_MODE) + verify_log_response(actual_inp_buf_data[0],MESSAGE_ILLEGAL_TRANSITION_MODE) verify_log_response(actual_inp_buf_data[1],DEVICE_CREDENTIALS_RESPONSE) test.endSection() - test.startSection("Verifying message id, opmode, submode for Illegal transition screen") - hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_NLEG.value, sub_mode=HDOpSubModes.STANDBY_START_STATE.value) - mouseClick(waitForObjectExists(names.device_settings_screen)) + test.startSection("Verifying message id, opmode, submode for Fault mode screen") + hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_FAUL.value, sub_mode=HDOpSubModes.STANDBY_WAIT_FOR_TREATMENT_STATE.value) utils.waitForGUI(1) - test.log ("Illegal Transition") + test.log("Initial mode") retrive_log_data_lines = 16 actual_inp_buf_data = utility.retrive_log_data(retrive_log_data_lines) test.log(str(actual_inp_buf_data[0])) - verify_log_response(actual_inp_buf_data[0],MESSAGE_ILLEGAL_TRANSITION_MODE) + verify_log_response(actual_inp_buf_data[0],MESSAGE_FAULT_MODE) verify_log_response(actual_inp_buf_data[1],DEVICE_CREDENTIALS_RESPONSE) test.endSection() + + test.startSection("Verifying message id, opmode, submode for Service mode screen") + hd_simulator.cmd_send_hd_operation_mode(op_mode=HDOpModes.MODE_SERV.value, sub_mode=HDOpSubModes.STANDBY_START_STATE.value) + utils.waitForGUI(1) + test.log("Service mode") + retrive_log_data_lines = 18 + actual_inp_buf_data = utility.retrive_log_data(retrive_log_data_lines) + test.log(str(actual_inp_buf_data[0])) + verify_log_response(actual_inp_buf_data[0],MESSAGE_SERVICE_MODE) + verify_log_response(actual_inp_buf_data[1],DEVICE_CREDENTIALS_RESPONSE) + test.endSection() def verify_log_response(actual_cloudsync_data, expected_cloudsync_data):