Index: vectorcast/Hercules_RM46_HD_Project/environment/NVDATAMGMT/NVDATAMGMT.tst =================================================================== diff -u -rf7a8dc5dccd27e361a3a8b37d647c98708541477 -r9ca773c095d91bf702f98bdab45cd840bab1d131 --- vectorcast/Hercules_RM46_HD_Project/environment/NVDATAMGMT/NVDATAMGMT.tst (.../NVDATAMGMT.tst) (revision f7a8dc5dccd27e361a3a8b37d647c98708541477) +++ vectorcast/Hercules_RM46_HD_Project/environment/NVDATAMGMT/NVDATAMGMT.tst (.../NVDATAMGMT.tst) (revision 9ca773c095d91bf702f98bdab45cd840bab1d131) @@ -15,6 +15,41 @@ -- Unit: NVDataMgmt +-- Subprogram: dequeue + +-- Test Case: Queue_Empty +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:dequeue +TEST.NEW +TEST.NAME:Queue_Empty +TEST.VALUE:NVDataMgmt.<>.queueFrontIndex:1 +TEST.VALUE:NVDataMgmt.<>.queueCount:0 +TEST.EXPECTED:NVDataMgmt.<>.queueFrontIndex:1 +TEST.EXPECTED:NVDataMgmt.<>.queueCount:0 +TEST.END + +-- Test Case: Queue_Not_Empty +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:dequeue +TEST.NEW +TEST.NAME:Queue_Not_Empty +TEST.VALUE:NVDataMgmt.<>.queueFrontIndex:4 +TEST.VALUE:NVDataMgmt.<>.queueCount:2 +TEST.EXPECTED:NVDataMgmt.<>.queueFrontIndex:5 +TEST.EXPECTED:NVDataMgmt.<>.queueCount:1 +TEST.END + +-- Test Case: Queue_Not_Empty_Wrap +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:dequeue +TEST.NEW +TEST.NAME:Queue_Not_Empty_Wrap +TEST.VALUE:NVDataMgmt.<>.queueFrontIndex:20 +TEST.VALUE:NVDataMgmt.<>.queueCount:2 +TEST.EXPECTED:NVDataMgmt.<>.queueFrontIndex:0 +TEST.EXPECTED:NVDataMgmt.<>.queueCount:1 +TEST.END + -- Subprogram: didCommandTimeout -- Test Case: Command_Not_Timedout @@ -42,6 +77,18 @@ TEST.EXPECTED:NVDataMgmt.didCommandTimeout.return:1 TEST.END +-- Subprogram: enqueue + +-- Test Case: Write_EEPROM_Address_Not_Zero +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:enqueue +TEST.NEW +TEST.NAME:Write_EEPROM_Address_Not_Zero +TEST.VALUE:NVDataMgmt.enqueue.ops:NVDATAMGMT_WRITE +TEST.VALUE:NVDataMgmt.enqueue.location:NVDATAMGMT_EEPROM +TEST.VALUE:NVDataMgmt.enqueue.startAddress:2 +TEST.END + -- Subprogram: enqueueBank7Sector0Records -- Test Case: Min_Jobs_Available @@ -167,92 +214,181 @@ -- Subprogram: getCalibrationData --- Test Case: getCalibrationData +-- Test Case: Buffer_NULL TEST.UNIT:NVDataMgmt TEST.SUBPROGRAM:getCalibrationData TEST.NEW -TEST.NAME:getCalibrationData +TEST.NAME:Buffer_NULL TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.occSensorOffset:3.4 TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.tempSensorOffset:4.2 TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.calibrationDate:<> TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.calibrationDate:"2020" +TEST.VALUE:NVDataMgmt.getCalibrationData.return:0 +TEST.EXPECTED:NVDataMgmt.getCalibrationData.return:0 +TEST.END + +-- Test Case: Buffer_Not_NILL +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:getCalibrationData +TEST.NEW +TEST.NAME:Buffer_Not_NILL +TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.occSensorOffset:3.4 +TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.tempSensorOffset:4.2 +TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.calibrationDate:<> +TEST.VALUE:NVDataMgmt.<>.calibrationRecord.calData.calibrationDate:"2020" TEST.VALUE:NVDataMgmt.getCalibrationData.buffer:<> TEST.VALUE:NVDataMgmt.getCalibrationData.buffer[0].occSensorOffset:0.2 TEST.VALUE:NVDataMgmt.getCalibrationData.buffer[0].tempSensorOffset:0.3 TEST.VALUE:NVDataMgmt.getCalibrationData.buffer[0].calibrationDate:<> TEST.VALUE:NVDataMgmt.getCalibrationData.buffer[0].calibrationDate:"18" +TEST.VALUE:NVDataMgmt.getCalibrationData.return:0 TEST.EXPECTED:NVDataMgmt.getCalibrationData.buffer[0].occSensorOffset:3.4 TEST.EXPECTED:NVDataMgmt.getCalibrationData.buffer[0].tempSensorOffset:4.2 TEST.EXPECTED:NVDataMgmt.getCalibrationData.buffer[0].calibrationDate:"2020" +TEST.EXPECTED:NVDataMgmt.getCalibrationData.return:1 TEST.END -- Subprogram: getDisinfectionDate --- Test Case: getDisinfectionDate +-- Test Case: Buffer_NULL TEST.UNIT:NVDataMgmt TEST.SUBPROGRAM:getDisinfectionDate TEST.NEW -TEST.NAME:getDisinfectionDate +TEST.NAME:Buffer_NULL +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[0]:'0' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[1]:'4' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[2]:'-' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[3]:'0' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[4]:'5' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[5]:'-' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[6]:'2' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[7]:'0' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[8]:'2' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[9]:'0' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.return:0 +TEST.EXPECTED:NVDataMgmt.getDisinfectionDate.return:0 +TEST.END + +-- Test Case: Buffer_Not_NULL +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:getDisinfectionDate +TEST.NEW +TEST.NAME:Buffer_Not_NULL TEST.IMPORT_FAILURES: -(E) @LINE: 164 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:<> - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate -(E) @LINE: 165 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"2020" - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate -(E) @LINE: 167 TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer:"48" - >>> Unexpected end of command - stopped at character 49 - >>> Command Ignored -(E) @LINE: 168 TEST.EXPECTED:NVDataMgmt.getDisinfectionDate.buffer:"2020" - >>> Unexpected end of command - stopped at character 52 - >>> Command Ignored +(E) Errors from previous script import(s) + >>> (E) @LINE: 164 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:<> + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate + >>> (E) @LINE: 165 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"2020" + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate + >>> (E) @LINE: 167 TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer:"48" + >>> >>> Unexpected end of command - stopped at character 49 + >>> >>> Command Ignored + >>> (E) @LINE: 168 TEST.EXPECTED:NVDataMgmt.getDisinfectionDate.buffer:"2020" + >>> >>> Unexpected end of command - stopped at character 52 + >>> >>> Command Ignored TEST.END_IMPORT_FAILURES: -TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer:<> +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[0]:'0' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[1]:'4' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[2]:'-' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[3]:'0' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[4]:'5' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[5]:'-' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[6]:'2' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[7]:'0' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[8]:'2' +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.date.disinfectionDate[9]:'0' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer:<> +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[0]:'0' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[1]:'4' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[2]:'-' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[3]:'0' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[4]:'5' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[5]:'-' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[6]:'2' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[7]:'0' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[8]:'2' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.buffer[0].disinfectionDate[9]:'0' +TEST.VALUE:NVDataMgmt.getDisinfectionDate.return:0 +TEST.EXPECTED:NVDataMgmt.getDisinfectionDate.return:1 TEST.END -- Subprogram: getMfgData --- Test Case: getMfgData +-- Test Case: Buffer_NULL TEST.UNIT:NVDataMgmt TEST.SUBPROGRAM:getMfgData TEST.NEW -TEST.NAME:getMfgData +TEST.NAME:Buffer_NULL TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.SYSSerialNumber:<> TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.SYSSerialNumber:"A" TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.HWSerialNumber:<> TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.HWSerialNumber:"B" TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.mfgDate:<> TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.mfgDate:"2020" +TEST.VALUE:NVDataMgmt.getMfgData.return:0 +TEST.EXPECTED:NVDataMgmt.getMfgData.return:0 +TEST.END + +-- Test Case: Buffer_Not_NULL +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:getMfgData +TEST.NEW +TEST.NAME:Buffer_Not_NULL +TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.SYSSerialNumber:<> +TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.SYSSerialNumber:"A" +TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.HWSerialNumber:<> +TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.HWSerialNumber:"B" +TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.mfgDate:<> +TEST.VALUE:NVDataMgmt.<>.mfgRecord.mfgData.mfgDate:"2020" TEST.VALUE:NVDataMgmt.getMfgData.buffer:<> TEST.VALUE:NVDataMgmt.getMfgData.buffer[0].SYSSerialNumber:<> TEST.VALUE:NVDataMgmt.getMfgData.buffer[0].SYSSerialNumber:"H" TEST.VALUE:NVDataMgmt.getMfgData.buffer[0].HWSerialNumber:<> TEST.VALUE:NVDataMgmt.getMfgData.buffer[0].HWSerialNumber:"G" TEST.VALUE:NVDataMgmt.getMfgData.buffer[0].mfgDate:<> TEST.VALUE:NVDataMgmt.getMfgData.buffer[0].mfgDate:"2019" +TEST.VALUE:NVDataMgmt.getMfgData.return:0 TEST.EXPECTED:NVDataMgmt.getMfgData.buffer[0].SYSSerialNumber:"A" TEST.EXPECTED:NVDataMgmt.getMfgData.buffer[0].HWSerialNumber:"B" TEST.EXPECTED:NVDataMgmt.getMfgData.buffer[0].mfgDate:"2020" +TEST.EXPECTED:NVDataMgmt.getMfgData.return:1 TEST.END -- Subprogram: getServiceDate --- Test Case: getServiceDate +-- Test Case: Buffer_NULL TEST.UNIT:NVDataMgmt TEST.SUBPROGRAM:getServiceDate TEST.NEW -TEST.NAME:getServiceDate +TEST.NAME:Buffer_NULL TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:<> TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:"2020" TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:<> TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:"2021" +TEST.VALUE:NVDataMgmt.getServiceDate.return:0 +TEST.EXPECTED:NVDataMgmt.getServiceDate.return:0 +TEST.END + +-- Test Case: Buffer_Not_NULL +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:getServiceDate +TEST.NEW +TEST.NAME:Buffer_Not_NULL +TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:<> +TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:"2020" +TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:<> +TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:"2021" TEST.VALUE:NVDataMgmt.getServiceDate.buffer:<> TEST.VALUE:NVDataMgmt.getServiceDate.buffer[0].currentServiceDate:<> TEST.VALUE:NVDataMgmt.getServiceDate.buffer[0].currentServiceDate:"128" TEST.VALUE:NVDataMgmt.getServiceDate.buffer[0].nextServiceDate:<> TEST.VALUE:NVDataMgmt.getServiceDate.buffer[0].nextServiceDate:"17" +TEST.VALUE:NVDataMgmt.getServiceDate.return:0 TEST.EXPECTED:NVDataMgmt.getServiceDate.buffer[0].currentServiceDate:"2020" TEST.EXPECTED:NVDataMgmt.getServiceDate.buffer[0].nextServiceDate:"2021" +TEST.EXPECTED:NVDataMgmt.getServiceDate.return:1 TEST.END -- Subprogram: getTreatmentTime @@ -275,6 +411,18 @@ TEST.EXPECTED:NVDataMgmt.getWaterConsumption.return:17 TEST.END +-- Subprogram: handleExecEraseState + +-- Test Case: handleExecEraseState.001 +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:handleExecEraseState +TEST.NEW +TEST.NAME:handleExecEraseState.001 +TEST.VALUE:NVDataMgmt.<>.hasCommandTimedout:1 +TEST.VALUE:NVDataMgmt.handleExecEraseState.return:NVDATAMGMT_EXEC_STATE_ERASE_EEPROM +TEST.EXPECTED:NVDataMgmt.handleExecEraseState.return:NVDATAMGMT_EXEC_STATE_ERASE_EEPROM +TEST.END + -- Subprogram: handleExecIdleState -- Test Case: Default @@ -450,6 +598,62 @@ TEST.EXPECTED:NVDataMgmt.handleExecWaitForPostState.return:NVDATAMGMT_EXEC_STATE_WAIT_FOR_POST TEST.END +-- Subprogram: handleSelfTestCheckCRC + +-- Test Case: CRC_Fail +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:handleSelfTestCheckCRC +TEST.NEW +TEST.NAME:CRC_Fail +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.NVDataMgmtSelfTestResult:SELF_TEST_STATUS_IN_PROGRESS +TEST.VALUE:NVDataMgmt.<>.hasCommandTimedout:0 +TEST.VALUE:NVDataMgmt.handleSelfTestCheckCRC.return:NVDATAMGMT_SELF_TEST_STATE_COMPLETE +TEST.VALUE:uut_prototype_stubs.crc16.return:17 +TEST.EXPECTED:NVDataMgmt.<>.NVDataMgmtSelfTestResult:SELF_TEST_STATUS_FAILED +TEST.EXPECTED:NVDataMgmt.handleSelfTestCheckCRC.return:NVDATAMGMT_SELF_TEST_STATE_COMPLETE +TEST.END + +-- Test Case: CRC_Pass +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:handleSelfTestCheckCRC +TEST.NEW +TEST.NAME:CRC_Pass +TEST.VALUE:NVDataMgmt.<>.logRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.treatmentTimeRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.waterConsumptionRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.mfgRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.calibrationRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.serviceRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.NVDataMgmtSelfTestResult:SELF_TEST_STATUS_IN_PROGRESS +TEST.VALUE:NVDataMgmt.<>.hasCommandTimedout:0 +TEST.VALUE:NVDataMgmt.handleSelfTestCheckCRC.return:NVDATAMGMT_SELF_TEST_STATE_COMPLETE +TEST.VALUE:uut_prototype_stubs.crc16.return:18 +TEST.EXPECTED:NVDataMgmt.<>.NVDataMgmtSelfTestResult:SELF_TEST_STATUS_PASSED +TEST.EXPECTED:NVDataMgmt.handleSelfTestCheckCRC.return:NVDATAMGMT_SELF_TEST_STATE_COMPLETE +TEST.END + +-- Test Case: Timeout_Fail +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:handleSelfTestCheckCRC +TEST.NEW +TEST.NAME:Timeout_Fail +TEST.VALUE:NVDataMgmt.<>.logRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.treatmentTimeRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.waterConsumptionRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.mfgRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.calibrationRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.serviceRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.crc:18 +TEST.VALUE:NVDataMgmt.<>.NVDataMgmtSelfTestResult:SELF_TEST_STATUS_IN_PROGRESS +TEST.VALUE:NVDataMgmt.<>.hasCommandTimedout:1 +TEST.VALUE:NVDataMgmt.handleSelfTestCheckCRC.return:NVDATAMGMT_SELF_TEST_STATE_COMPLETE +TEST.VALUE:uut_prototype_stubs.crc16.return:18 +TEST.EXPECTED:NVDataMgmt.<>.NVDataMgmtSelfTestResult:SELF_TEST_STATUS_FAILED +TEST.EXPECTED:NVDataMgmt.handleSelfTestCheckCRC.return:NVDATAMGMT_SELF_TEST_STATE_COMPLETE +TEST.END + -- Subprogram: handleSelfTestEnableEEPROM -- Test Case: handleSelfTestEnableEEPROM @@ -461,6 +665,17 @@ TEST.EXPECTED:NVDataMgmt.handleSelfTestEnableEEPROM.return:NVDATAMGMT_SELF_TEST_STATE_ENABLE_EEPROM TEST.END +-- Subprogram: handleSelfTestStart + +-- Test Case: Start +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:handleSelfTestStart +TEST.NEW +TEST.NAME:Start +TEST.VALUE:NVDataMgmt.handleSelfTestStart.return:NVDATAMGMT_SELF_TEST_STATE_START +TEST.EXPECTED:NVDataMgmt.handleSelfTestStart.return:NVDATAMGMT_SELF_TEST_STATE_ENABLE_EEPROM +TEST.END + -- Subprogram: initNVDataMgmt -- Test Case: initNVDataMgmt @@ -594,21 +809,22 @@ TEST.NEW TEST.NAME:Queue_Full TEST.IMPORT_FAILURES: -(E) @LINE: 554 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:<> - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate -(E) @LINE: 555 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"14" - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate -(E) @LINE: 557 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:<> - >>> Unexpected end of command - stopped at character 47 - >>> Command Ignored -(E) @LINE: 558 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:"0","1","2" - >>> Unexpected end of command - stopped at character 47 - >>> Command Ignored -(E) @LINE: 559 TEST.EXPECTED:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"0","1","2" - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate +(E) Errors from previous script import(s) + >>> (E) @LINE: 554 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:<> + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate + >>> (E) @LINE: 555 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"14" + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate + >>> (E) @LINE: 557 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:<> + >>> >>> Unexpected end of command - stopped at character 47 + >>> >>> Command Ignored + >>> (E) @LINE: 558 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:"0","1","2" + >>> >>> Unexpected end of command - stopped at character 47 + >>> >>> Command Ignored + >>> (E) @LINE: 559 TEST.EXPECTED:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"0","1","2" + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate TEST.END_IMPORT_FAILURES: TEST.VALUE:NVDataMgmt.<>.queueCount:25 TEST.EXPECTED:NVDataMgmt.setDisinfectionDate.return:0 @@ -620,26 +836,49 @@ TEST.NEW TEST.NAME:Queue_Not_Full TEST.IMPORT_FAILURES: -(E) @LINE: 568 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:<> - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate -(E) @LINE: 569 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"14" - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate -(E) @LINE: 571 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:<> - >>> Unexpected end of command - stopped at character 47 - >>> Command Ignored -(E) @LINE: 572 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:"2020" - >>> Unexpected end of command - stopped at character 47 - >>> Command Ignored -(E) @LINE: 573 TEST.EXPECTED:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"2020" - >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T - >>> Read: disinfectionDate +(E) Errors from previous script import(s) + >>> (E) @LINE: 568 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:<> + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate + >>> (E) @LINE: 569 TEST.VALUE:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"14" + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate + >>> (E) @LINE: 571 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:<> + >>> >>> Unexpected end of command - stopped at character 47 + >>> >>> Command Ignored + >>> (E) @LINE: 572 TEST.VALUE:NVDataMgmt.setDisinfectionDate.date:"2020" + >>> >>> Unexpected end of command - stopped at character 47 + >>> >>> Command Ignored + >>> (E) @LINE: 573 TEST.EXPECTED:NVDataMgmt.<>.lastDisinfectionRecord.disinfectionDate:"2020" + >>> >>> Expected a field name from the record type LAST_DISINFECTION_RECORD_T + >>> >>> Read: disinfectionDate TEST.END_IMPORT_FAILURES: TEST.VALUE:NVDataMgmt.<>.queueCount:17 TEST.EXPECTED:NVDataMgmt.setDisinfectionDate.return:1 TEST.END +-- Subprogram: setMemoryOpsStruct + +-- Test Case: Queue_Not_Full +TEST.UNIT:NVDataMgmt +TEST.SUBPROGRAM:setMemoryOpsStruct +TEST.NEW +TEST.NAME:Queue_Not_Full +TEST.VALUE:NVDataMgmt.<>.queueRearIndex:0 +TEST.VALUE:NVDataMgmt.<>.queueCount:1 +TEST.VALUE:NVDataMgmt.setMemoryOpsStruct.ops:NVDATAMGMT_WRITE +TEST.VALUE:NVDataMgmt.setMemoryOpsStruct.location:NVDATAMGMT_EEPROM +TEST.VALUE:NVDataMgmt.setMemoryOpsStruct.startAddress:2 +TEST.VALUE:NVDataMgmt.setMemoryOpsStruct.data:<> +TEST.VALUE:NVDataMgmt.setMemoryOpsStruct.data:"A" +TEST.VALUE:NVDataMgmt.setMemoryOpsStruct.length:1 +TEST.EXPECTED:NVDataMgmt.<>.jobQueue[0].memoryOperation:NVDATAMGMT_WRITE +TEST.EXPECTED:NVDataMgmt.<>.jobQueue[0].memoryLocation:NVDATAMGMT_EEPROM +TEST.EXPECTED:NVDataMgmt.<>.jobQueue[0].startAddress[0]:2 +TEST.EXPECTED:NVDataMgmt.<>.jobQueue[0].buffer:"A" +TEST.EXPECTED:NVDataMgmt.<>.jobQueue[0].length:1 +TEST.END + -- Subprogram: setMfgData -- Test Case: setMfgData @@ -665,17 +904,47 @@ TEST.SUBPROGRAM:setServiceDate TEST.NEW TEST.NAME:Queue_Full -TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:<> -TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:"s" -TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:<> -TEST.VALUE:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:"g" TEST.VALUE:NVDataMgmt.<>.queueCount:25 -TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate:<> -TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate:"12-11-2020" -TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate:<> -TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate:"04-05-2021" -TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate:"12-11-2020" -TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate:"04-05-2021" +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[0]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[1]:'4' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[2]:'-' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[3]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[4]:'5' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[5]:'-' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[6]:'2' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[7]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[8]:'2' +TEST.VALUE:NVDataMgmt.setServiceDate.data.currentServiceDate[9]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[0]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[1]:'4' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[2]:'-' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[3]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[4]:'5' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[5]:'-' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[6]:'2' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[7]:'0' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[8]:'2' +TEST.VALUE:NVDataMgmt.setServiceDate.data.nextServiceDate[9]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[0]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[1]:'4' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[2]:'-' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[3]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[4]:'5' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[5]:'-' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[6]:'2' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[7]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[8]:'2' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.currentServiceDate[9]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[0]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[1]:'4' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[2]:'-' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[3]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[4]:'5' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[5]:'-' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[6]:'2' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[7]:'0' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[8]:'2' +TEST.EXPECTED:NVDataMgmt.<>.serviceRecord.serviceData.nextServiceDate[9]:'0' TEST.EXPECTED:NVDataMgmt.setServiceDate.return:0 TEST.END Index: vectorcast/Hercules_RM46_HD_Project/project.db =================================================================== diff -u -rf7a8dc5dccd27e361a3a8b37d647c98708541477 -r9ca773c095d91bf702f98bdab45cd840bab1d131 Binary files differ