Fisheye: Tag 72e71415da2be935bc9db69ad887811d917c298d refers to a dead (removed) revision in file `config.xml'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 72e71415da2be935bc9db69ad887811d917c298d refers to a dead (removed) revision in file `envvars'. Fisheye: No comparison available. Pass `N' to diff? Index: suite.conf =================================================================== diff -u -r8df6f936193bbd9127d3ec940562e62db0060bcb -r6e75182cc6ad599e14d5db87db617f68663678ab --- suite.conf (.../suite.conf) (revision 8df6f936193bbd9127d3ec940562e62db0060bcb) +++ suite.conf (.../suite.conf) (revision 6e75182cc6ad599e14d5db87db617f68663678ab) @@ -1,4 +1,7 @@ AUT=denaliSquish +ENVVARS=envvars +HOOK_SUB_PROCESSES=false +IMPLICITAUTSTART=0 LANGUAGE=Python OBJECTMAPSTYLE=script TEST_CASES=tst_environment tst_post tst_standbymode tst_In_treatment Index: tst_ui_logs/test.py =================================================================== diff -u -re96b0d2aeb6dcc7530396425be0ece660e38ce1d -r6e75182cc6ad599e14d5db87db617f68663678ab --- tst_ui_logs/test.py (.../test.py) (revision e96b0d2aeb6dcc7530396425be0ece660e38ce1d) +++ tst_ui_logs/test.py (.../test.py) (revision 6e75182cc6ad599e14d5db87db617f68663678ab) @@ -29,9 +29,9 @@ from configuration import config import builtins from dialin.common.msg_ids import MsgIds -from dialin.common.hd_defs import HDOpSubModes +from dialin.common.hd_defs import HDOpSubModes, HDOpModes from dialin.common import msg_defs -from dialin.utils.conversions import byte_to_bytearray, integer_to_bytearray, float_to_bytearray, short_to_bytearray, unsigned_integer_to_bytearray, integer_to_bit_array +from dialin.utils.conversions import integer_to_bytearray, float_to_bytearray, short_to_bytearray, unsigned_integer_to_bytearray, integer_to_bit_array hd_simulator = HDSimulator() dg_simulator = DGSimulator() @@ -43,13 +43,19 @@ NUMBER_OF_TREATMENTMODES = 3 CONDITIONS = [0,1] -def verify_log(msg_id,msg=None, param=None): +def verify_log(msg_id,msg=None, param=None): + """ + This function verifies the UI log's. + @param msg_id - (string) expected message_id's. + @param msg - (string) message to be displayed on log. + @param param - (list) parameters for msg_id's. + """ + test.startSection("Verification of UI log based on message ID : " + str(msg_id)) utils.waitForGUI(2) ack = False if not msg_id in msg_defs.ACK_NOT_REQUIRED: ack = True message_extracted = utility.get_current_log_details(message_ack=ack, message_text=msg) - test.log(str(message_extracted)) if ack == True: test.verify(config.ACK_REQ_STATUS in message_extracted, "ack request is verified") test.verify(config.ACK_BAK_STATUS in message_extracted, "ack back is verified") @@ -58,8 +64,9 @@ test.verify(message_id_str in message_extracted, "message ID is verified") if param != None: test.verify(param in message_extracted, "parameters are verified") - + test.endSection() + def main(): utils.tstStart(__file__) startApplication(config.AUT_NAME) @@ -230,10 +237,13 @@ #HD Operation Mode #0x2500 - for mode in range(NUMBER_OF_OPMODE): - #hd_simulator.cmd_send_hd_operation_mode(op_mode = mode, sub_mode = 0) - hd_simulator.cmd_send_hd_operation_mode(op_mode = mode, sub_mode = HDOpSubModes.SUBMODE_START.value) - verify_log(msg_id = MsgIds.MSG_ID_HD_OP_MODE.value, msg = "OpMode", param = [mode,0]) + mode_data = HDOpModes.NUM_OF_MODES.value + submode_data = HDOpSubModes.NUM_OF_STANDBY_STATES.value + for mode in range(mode_data): + for sub_mode in range(submode_data): + #hd_simulator.cmd_send_hd_operation_mode(op_mode = mode, sub_mode = 0) + hd_simulator.cmd_send_hd_operation_mode(op_mode = mode, sub_mode = sub_mode) + verify_log(msg_id = MsgIds.MSG_ID_HD_OP_MODE.value, msg = "OpMode", param = [mode,sub_mode]) #0x5C00 for s_mode in range(NUMBER_OF_OPMODE): @@ -388,7 +398,7 @@ dg_simulator.cmd_send_version_dg_data(major=1, minor=1, micro=0, build=4, fpga_id=5, fpga_major=1, fpga_minor=2, fpga_lab=3, compatibility_rev=6) - verify_log(msg_id = MsgIds.MSG_ID_DG_VERSION.value, msg = "Version", param = [1,1,0,4,5,1,2,3,6]) + verify_log(msg_id = MsgIds.MSG_ID_DG_VERSION.value, msg = "VersionRsp", param = [1,1,0,4,5,1,2,3,6]) #0x9E00 hd_simulator.cmd_send_hd_request_ui_version()