Index: vectorcast/Hercules_RM46_HD_Project/environment/BLOODLEAK/BLOODLEAK.tst =================================================================== diff -u -r9056134c1ab1573b97135069445e1f287ef8e1f8 -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/BLOODLEAK/BLOODLEAK.tst (.../BLOODLEAK.tst) (revision 9056134c1ab1573b97135069445e1f287ef8e1f8) +++ vectorcast/Hercules_RM46_HD_Project/environment/BLOODLEAK/BLOODLEAK.tst (.../BLOODLEAK.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -796,11 +796,11 @@ -- Subprogram: getFPGABloodDetectProcessedStatus --- Test Case: getFPGABloodDetectProcessedStatus.001 +-- Test Case: getFPGABloodDetectProcessedStatus TEST.UNIT:BloodLeak TEST.SUBPROGRAM:getFPGABloodDetectProcessedStatus TEST.NEW -TEST.NAME:getFPGABloodDetectProcessedStatus.001 +TEST.NAME:getFPGABloodDetectProcessedStatus TEST.BASIS_PATH:1 of 2 TEST.NOTES: This is an automatically generated test case. @@ -809,6 +809,7 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:uut_prototype_stubs.getFPGABloodLeakStatus.return:1 +TEST.EXPECTED:BloodLeak.getFPGABloodDetectProcessedStatus.return:BLOOD_LEAK_DETECTED TEST.END -- Subprogram: handleBloodLeakCheckSetPointState @@ -874,9 +875,11 @@ TEST.NEW TEST.NAME:handleBloodLeakCheckSetPointState.003 TEST.IMPORT_FAILURES: -(I) @LINE: 870 +(I) @LINE: 915 >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 870 + >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 866 >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 866 @@ -924,9 +927,11 @@ TEST.NEW TEST.NAME:handleBloodLeakCheckSetPointState.004 TEST.IMPORT_FAILURES: -(I) @LINE: 918 +(I) @LINE: 965 >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 918 + >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 912 >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 910 @@ -3244,13 +3249,75 @@ -- Subprogram: handleBloodLeakVerifyIntensityAfterZeroingState --- Test Case: handleBloodLeakVerifyIntensityAfterZeroingState.001 +-- Test Case: handleBloodLeakVerifyIntensityAfterZeroingState_not_ready TEST.UNIT:BloodLeak TEST.SUBPROGRAM:handleBloodLeakVerifyIntensityAfterZeroingState TEST.NEW -TEST.NAME:handleBloodLeakVerifyIntensityAfterZeroingState.001 +TEST.NAME:handleBloodLeakVerifyIntensityAfterZeroingState_not_ready +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:0 +TEST.VALUE:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_CHECK_SET_POINT_STATE +TEST.EXPECTED:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_VERIFY_INTENSITY_AFTER_ZEROING_STATE TEST.END +-- Test Case: handleBloodLeakVerifyIntensityAfterZeroingState_ready_intensity_in_range_alarm_129 +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:handleBloodLeakVerifyIntensityAfterZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakVerifyIntensityAfterZeroingState_ready_intensity_in_range_alarm_129 +TEST.VALUE:BloodLeak.<>.bloodLeakSelfTestStatus:SELF_TEST_STATUS_IN_PROGRESS +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:920 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.VALUE:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_CHECK_SET_POINT_STATE +TEST.VALUE:uut_prototype_stubs.isAlarmActive.return:1 +TEST.VALUE:uut_prototype_stubs.getMSTimerCount.return:1234 +TEST.EXPECTED:BloodLeak.<>.bloodLeakSelfTestStatus:SELF_TEST_STATUS_PASSED +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.lastZeroingStartTimeMS:1234 +TEST.EXPECTED:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_RECOVER_BLOOD_DETECT_STATE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_SELF_TEST_RESULT +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.data.uInt.data:1 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.data.uInt.data:6 +TEST.END + +-- Test Case: handleBloodLeakVerifyIntensityAfterZeroingState_ready_intensity_in_range_no_alarm +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:handleBloodLeakVerifyIntensityAfterZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakVerifyIntensityAfterZeroingState_ready_intensity_in_range_no_alarm +TEST.VALUE:BloodLeak.<>.bloodLeakSelfTestStatus:SELF_TEST_STATUS_IN_PROGRESS +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:920 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.VALUE:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_CHECK_SET_POINT_STATE +TEST.VALUE:uut_prototype_stubs.getMSTimerCount.return:1234 +TEST.EXPECTED:BloodLeak.<>.bloodLeakSelfTestStatus:SELF_TEST_STATUS_PASSED +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.lastZeroingStartTimeMS:1234 +TEST.EXPECTED:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_NORMAL_STATE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_SELF_TEST_RESULT +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.data.uInt.data:1 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.data.uInt.data:5 +TEST.END + +-- Test Case: handleBloodLeakVerifyIntensityAfterZeroingState_ready_intensity_not_in_range +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:handleBloodLeakVerifyIntensityAfterZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakVerifyIntensityAfterZeroingState_ready_intensity_not_in_range +TEST.VALUE:BloodLeak.<>.bloodLeakSelfTestStatus:SELF_TEST_STATUS_IN_PROGRESS +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:500 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.VALUE:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_CHECK_SET_POINT_STATE +TEST.EXPECTED:BloodLeak.<>.bloodLeakSelfTestStatus:SELF_TEST_STATUS_FAILED +TEST.EXPECTED:BloodLeak.handleBloodLeakVerifyIntensityAfterZeroingState.return:BLOOD_LEAK_INIT_STATE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_SELF_TEST_RESULT +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.data.uInt.data:2 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.data.uInt.data:2 +TEST.END + -- Subprogram: handleBloodLeakWaitForPostState -- Test Case: handleBloodLeakWaitForPostState.001 @@ -3328,11 +3395,15 @@ TEST.NEW TEST.NAME:handleBloodLeakWaitForPostState.004 TEST.IMPORT_FAILURES: -(I) @LINE: 3330 +(I) @LINE: 3390 >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 3330 +(I) @LINE: 3390 >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 3330 + >>> >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 3330 + >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 3320 >>> >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 3320 @@ -3422,11 +3493,15 @@ TEST.NEW TEST.NAME:handleBloodLeakWaitForPostState.006 TEST.IMPORT_FAILURES: -(I) @LINE: 3419 +(I) @LINE: 3483 >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 3419 +(I) @LINE: 3483 >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 3419 + >>> >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 3419 + >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 3405 >>> >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 3405 @@ -3493,11 +3568,15 @@ TEST.NEW TEST.NAME:handleBloodLeakWaitForPostState.007 TEST.IMPORT_FAILURES: -(I) @LINE: 3486 +(I) @LINE: 3554 >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 3486 +(I) @LINE: 3554 >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 3486 + >>> >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 3486 + >>> >>> 'D_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 3468 >>> >>> 'CS_EMB_MODE_CMD' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 3468 @@ -3740,6 +3819,68 @@ TEST.EXPECTED:BloodLeak.<>.bloodLeakSetPointSeqLength:6 TEST.END +-- Subprogram: isBloodLeakZeroingNeeded + +-- Test Case: isBloodLeakZeroingNeeded_not_in_preTx_or_tx +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isBloodLeakZeroingNeeded +TEST.NEW +TEST.NAME:isBloodLeakZeroingNeeded_not_in_preTx_or_tx +TEST.VALUE:BloodLeak.isBloodLeakZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_SERV +TEST.EXPECTED:BloodLeak.isBloodLeakZeroingNeeded.return:0 +TEST.END + +-- Test Case: isBloodLeakZeroingNeeded_preTx_<=_915 +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isBloodLeakZeroingNeeded +TEST.NEW +TEST.NAME:isBloodLeakZeroingNeeded_preTx_<=_915 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:900 +TEST.VALUE:BloodLeak.isBloodLeakZeroingNeeded.return:0 +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.EXPECTED:BloodLeak.isBloodLeakZeroingNeeded.return:1 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_ZEROING_REQUIRED +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_F32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_F32 +TEST.END + +-- Test Case: isBloodLeakZeroingNeeded_preTx_>=_950 +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isBloodLeakZeroingNeeded +TEST.NEW +TEST.NAME:isBloodLeakZeroingNeeded_preTx_>=_950 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:950 +TEST.VALUE:BloodLeak.isBloodLeakZeroingNeeded.return:0 +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.EXPECTED:BloodLeak.isBloodLeakZeroingNeeded.return:1 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_ZEROING_REQUIRED +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_F32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_F32 +TEST.END + +-- Test Case: isBloodLeakZeroingNeeded_preTx_in_range +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isBloodLeakZeroingNeeded +TEST.NEW +TEST.NAME:isBloodLeakZeroingNeeded_preTx_in_range +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:930 +TEST.VALUE:BloodLeak.isBloodLeakZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.EXPECTED:BloodLeak.isBloodLeakZeroingNeeded.return:0 +TEST.END + +-- Test Case: isBloodLeakZeroingNeeded_tx_in_range +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isBloodLeakZeroingNeeded +TEST.NEW +TEST.NAME:isBloodLeakZeroingNeeded_tx_in_range +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:930 +TEST.VALUE:BloodLeak.isBloodLeakZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.EXPECTED:BloodLeak.isBloodLeakZeroingNeeded.return:0 +TEST.END + -- Subprogram: isDialysateLineInBypass -- Test Case: isDialysateLineInBypass.001 @@ -3861,6 +4002,94 @@ TEST.EXPECTED:BloodLeak.isEmbModeCmdQueueEmpty.return:0 TEST.END +-- Subprogram: isLowerRangeIntensityDriftZeroingNeeded + +-- Test Case: isLowerRangeIntensityDriftZeroingNeeded_in_range_max_from_top +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isLowerRangeIntensityDriftZeroingNeeded +TEST.NEW +TEST.NAME:isLowerRangeIntensityDriftZeroingNeeded_in_range_max_from_top +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeStatus:1 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[D_EMB_MODE_CMD].commandResp:100 +TEST.VALUE:BloodLeak.isLowerRangeIntensityDriftZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getF32OverrideValue.return:892.0 +TEST.VALUE:uut_prototype_stubs.didTimeout.return:1,0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeStatus:0 +TEST.EXPECTED:BloodLeak.isLowerRangeIntensityDriftZeroingNeeded.return:0 +TEST.END + +-- Test Case: isLowerRangeIntensityDriftZeroingNeeded_not_drift +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isLowerRangeIntensityDriftZeroingNeeded +TEST.NEW +TEST.NAME:isLowerRangeIntensityDriftZeroingNeeded_not_drift +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.override:0 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeStatus:1 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[D_EMB_MODE_CMD].commandResp:100 +TEST.VALUE:BloodLeak.isLowerRangeIntensityDriftZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getF32OverrideValue.return:930.0 +TEST.VALUE:uut_prototype_stubs.getMSTimerCount.return:12345 +TEST.VALUE:uut_prototype_stubs.didTimeout.return:(2)0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeDebounceTimeMS:12345 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeStatus:0 +TEST.EXPECTED:BloodLeak.isLowerRangeIntensityDriftZeroingNeeded.return:0 +TEST.END + +-- Test Case: isLowerRangeIntensityDriftZeroingNeeded_not_in_range_from_min +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isLowerRangeIntensityDriftZeroingNeeded +TEST.NEW +TEST.NAME:isLowerRangeIntensityDriftZeroingNeeded_not_in_range_from_min +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeStatus:0 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[D_EMB_MODE_CMD].commandResp:100 +TEST.VALUE:BloodLeak.isLowerRangeIntensityDriftZeroingNeeded.return:0 +TEST.VALUE:uut_prototype_stubs.getF32OverrideValue.return:800.0 +TEST.VALUE:uut_prototype_stubs.didTimeout.return:(2)1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftInRangeStatus:1 +TEST.EXPECTED:BloodLeak.isLowerRangeIntensityDriftZeroingNeeded.return:1 +TEST.END + +-- Subprogram: isUpperIntensityZeroingNeeded + +-- Test Case: isUpperIntensityZeroingNeeded_intensity_<_950 +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isUpperIntensityZeroingNeeded +TEST.NEW +TEST.NAME:isUpperIntensityZeroingNeeded_intensity_<_950 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.driftUpperRangeStatus:1 +TEST.VALUE:BloodLeak.isUpperIntensityZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getF32OverrideValue.return:930.0 +TEST.VALUE:uut_prototype_stubs.didTimeout.return:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftUpperRangeStatus:0 +TEST.EXPECTED:BloodLeak.isUpperIntensityZeroingNeeded.return:0 +TEST.END + +-- Test Case: isUpperIntensityZeroingNeeded_intensity_>=_950_debounce_not_timeout +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isUpperIntensityZeroingNeeded +TEST.NEW +TEST.NAME:isUpperIntensityZeroingNeeded_intensity_>=_950_debounce_not_timeout +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.driftUpperRangeStatus:1 +TEST.VALUE:BloodLeak.isUpperIntensityZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.getF32OverrideValue.return:950.0 +TEST.VALUE:uut_prototype_stubs.didTimeout.return:1,0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftUpperRangeStatus:0 +TEST.EXPECTED:BloodLeak.isUpperIntensityZeroingNeeded.return:0 +TEST.END + +-- Test Case: isUpperIntensityZeroingNeeded_intensity_>=_950_debounce_timeout +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:isUpperIntensityZeroingNeeded +TEST.NEW +TEST.NAME:isUpperIntensityZeroingNeeded_intensity_>=_950_debounce_timeout +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.driftUpperRangeStatus:0 +TEST.VALUE:BloodLeak.isUpperIntensityZeroingNeeded.return:0 +TEST.VALUE:uut_prototype_stubs.getF32OverrideValue.return:950.0 +TEST.VALUE:uut_prototype_stubs.didTimeout.return:(2)1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.driftUpperRangeStatus:1 +TEST.EXPECTED:BloodLeak.isUpperIntensityZeroingNeeded.return:1 +TEST.END + -- Subprogram: prepareSetPointSeq -- Test Case: prepareSetPointSeq.001 @@ -3949,6 +4178,66 @@ TEST.EXPECTED:BloodLeak.prepareSetPointSeq.setPoint:0 TEST.END +-- Subprogram: processBloodLeakIntensityData + +-- Test Case: processBloodLeakIntensityData_intensity_ready +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:processBloodLeakIntensityData +TEST.NEW +TEST.NAME:processBloodLeakIntensityData_intensity_ready +TEST.VALUE:BloodLeak.<>.bloodLeakState:BLOOD_LEAK_VERIFY_INTENSITY_AFTER_ZEROING_STATE +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.END + +-- Test Case: processBloodLeakIntensityData_intensity_ready_not_wrapped +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:processBloodLeakIntensityData +TEST.NEW +TEST.NAME:processBloodLeakIntensityData_intensity_ready_not_wrapped +TEST.VALUE:BloodLeak.<>.bloodLeakState:BLOOD_LEAK_INIT_STATE +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensity[5]:900 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityRunningSum:1500 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensityNextIndex:5 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensity[5]:150 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityRunningSum:750 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensityNextIndex:6 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.data:46.875 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.END + +-- Test Case: processBloodLeakIntensityData_intensity_ready_wrapped +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:processBloodLeakIntensityData +TEST.NEW +TEST.NAME:processBloodLeakIntensityData_intensity_ready_wrapped +TEST.VALUE:BloodLeak.<>.bloodLeakState:BLOOD_LEAK_INIT_STATE +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensity[15]:900 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityRunningSum:1500 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensityNextIndex:15 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensity[15]:150 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityRunningSum:750 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.rawIntensityNextIndex:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.data:46.875 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.END + +-- Test Case: processBloodLeakIntensityData_not_mvg_avg_time +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:processBloodLeakIntensityData +TEST.NEW +TEST.NAME:processBloodLeakIntensityData_not_mvg_avg_time +TEST.VALUE:BloodLeak.<>.bloodLeakState:BLOOD_LEAK_VERIFY_INTENSITY_AFTER_ZEROING_STATE +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].commandResp:150 +TEST.END + -- Subprogram: processReceivedEmbModeChar -- Test Case: processReceivedEmbModeChar.001 @@ -4412,7 +4701,7 @@ TEST.EXPECTED:uut_prototype_stubs.broadcastData.msgID:MSG_ID_HD_BLOOD_LEAK_DATA TEST.EXPECTED:uut_prototype_stubs.broadcastData.buffer:COMM_BUFFER_OUT_CAN_HD_BROADCAST TEST.EXPECTED:uut_prototype_stubs.broadcastData.dataPtr:"" -TEST.EXPECTED:uut_prototype_stubs.broadcastData.length:16 +TEST.EXPECTED:uut_prototype_stubs.broadcastData.length:40 TEST.END -- Test Case: publishBloodLeakData_time_not_elapsed @@ -4443,13 +4732,25 @@ TEST.EXPECTED:BloodLeak.<>.bloodLeakDataPublicationCounter:11 TEST.END +-- Subprogram: resetEmbModeCmdRespConsumedFlag + +-- Test Case: resetEmbModeCmdRespConsumedFlag +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:resetEmbModeCmdRespConsumedFlag +TEST.NEW +TEST.NAME:resetEmbModeCmdRespConsumedFlag +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:1 +TEST.VALUE:BloodLeak.resetEmbModeCmdRespConsumedFlag.cmd:5 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[I_EMB_MODE_CMD].isCmdRespRdy:0 +TEST.END + -- Subprogram: resetEmbModeCmdRqstCount --- Test Case: resetEmbModeCmdRqstCount.001 +-- Test Case: resetEmbModeCmdRqstCount TEST.UNIT:BloodLeak TEST.SUBPROGRAM:resetEmbModeCmdRqstCount TEST.NEW -TEST.NAME:resetEmbModeCmdRqstCount.001 +TEST.NAME:resetEmbModeCmdRqstCount TEST.BASIS_PATH:1 of 1 TEST.NOTES: No branches in subprogram @@ -4496,6 +4797,98 @@ TEST.EXPECTED:BloodLeak.testResetBloodLeakDataPublishIntervalOverride.return:0 TEST.END +-- Subprogram: testResetBloodLeakEmbeddedModeInfoOverride + +-- Test Case: testResetBloodLeakEmbeddedModeInfoOverride_not_in_range +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testResetBloodLeakEmbeddedModeInfoOverride_not_in_range +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.command:12 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.END + +-- Test Case: testResetBloodLeakEmbeddedModeInfoOverride_testing_activated +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testResetBloodLeakEmbeddedModeInfoOverride_testing_activated +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.command:12 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.END + +-- Test Case: testResetBloodLeakEmbeddedModeInfoOverride_testing_activated_detect +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testResetBloodLeakEmbeddedModeInfoOverride_testing_activated_detect +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeDetectOverride.ovData:15 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeDetectOverride.override:0xCCC33C33 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.command:6 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:00 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeDetectOverride.ovData:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeDetectOverride.override:0x0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.END + +-- Test Case: testResetBloodLeakEmbeddedModeInfoOverride_testing_activated_intensity +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testResetBloodLeakEmbeddedModeInfoOverride_testing_activated_intensity +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.ovData:15 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.override:0xCCC33C33 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.command:5 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:00 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.ovData:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.override:0x0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.END + +-- Test Case: testResetBloodLeakEmbeddedModeInfoOverride_testing_activated_other_cmd +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testResetBloodLeakEmbeddedModeInfoOverride_testing_activated_other_cmd +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.command:3 +TEST.VALUE:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:01 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.testResetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.END + +-- Subprogram: testResetBloodLeakIntensityMovingAverageOverride + +-- Test Case: testResetBloodLeakIntensityMovingAverageOverride_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakIntensityMovingAverageOverride +TEST.NEW +TEST.NAME:testResetBloodLeakIntensityMovingAverageOverride_logged_in +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.ovInitData:159.0 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.ovData:1.0 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.override:15 +TEST.VALUE:BloodLeak.testResetBloodLeakIntensityMovingAverageOverride.return:0 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.ovData:159.0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.override:0x0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakIntensityMovingAverageOverride.return:1 +TEST.END + +-- Test Case: testResetBloodLeakIntensityMovingAverageOverride_not_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakIntensityMovingAverageOverride +TEST.NEW +TEST.NAME:testResetBloodLeakIntensityMovingAverageOverride_not_logged_in +TEST.VALUE:BloodLeak.testResetBloodLeakIntensityMovingAverageOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakIntensityMovingAverageOverride.return:0 +TEST.END + -- Subprogram: testResetBloodLeakStatusOverride -- Test Case: testResetBloodLeakStatusOverride.001 @@ -4534,6 +4927,50 @@ TEST.EXPECTED:BloodLeak.testResetBloodLeakStatusOverride.return:0 TEST.END +-- Subprogram: testResetBloodLeakZeroingIntervalInMinsOverride + +-- Test Case: testResetBloodLeakZeroingIntervalInMinsOverride_logged_in_in_range +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakZeroingIntervalInMinsOverride +TEST.NEW +TEST.NAME:testResetBloodLeakZeroingIntervalInMinsOverride_logged_in_in_range +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.ovInitData:15 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.ovData:5 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.override:159 +TEST.VALUE:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.upperRangeInterval:0 +TEST.VALUE:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.return:00 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.ovData:15 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.override:0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.return:1 +TEST.END + +-- Test Case: testResetBloodLeakZeroingIntervalInMinsOverride_logged_in_upper_range +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakZeroingIntervalInMinsOverride +TEST.NEW +TEST.NAME:testResetBloodLeakZeroingIntervalInMinsOverride_logged_in_upper_range +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.ovInitData:15 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.ovData:5 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.override:159 +TEST.VALUE:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.upperRangeInterval:1 +TEST.VALUE:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.return:00 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.ovData:15 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.override:0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.return:1 +TEST.END + +-- Test Case: testResetBloodLeakZeroingIntervalInMinsOverride_not_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testResetBloodLeakZeroingIntervalInMinsOverride +TEST.NEW +TEST.NAME:testResetBloodLeakZeroingIntervalInMinsOverride_not_logged_in +TEST.VALUE:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:0 +TEST.EXPECTED:BloodLeak.testResetBloodLeakZeroingIntervalInMinsOverride.return:0 +TEST.END + -- Subprogram: testSetBloodLeak2EmbeddedMode -- Test Case: testSetBloodLeak2EmbeddedMode.001 @@ -4671,6 +5108,102 @@ TEST.EXPECTED:BloodLeak.testSetBloodLeakEmbeddedModeCommand.return:0 TEST.END +-- Subprogram: testSetBloodLeakEmbeddedModeInfoOverride + +-- Test Case: testSetBloodLeakEmbeddedModeInfoOverride_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testSetBloodLeakEmbeddedModeInfoOverride_logged_in +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.command:15 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.END + +-- Test Case: testSetBloodLeakEmbeddedModeInfoOverride_logged_in_detect +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testSetBloodLeakEmbeddedModeInfoOverride_logged_in_detect +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeDetectOverride.ovData:0 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeDetectOverride.override:0 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.command:6 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.value:150 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeDetectOverride.ovData:150 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeDetectOverride.override:0xCCC33C33 +TEST.EXPECTED:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.END + +-- Test Case: testSetBloodLeakEmbeddedModeInfoOverride_logged_in_intensity +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testSetBloodLeakEmbeddedModeInfoOverride_logged_in_intensity +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.ovData:0 +TEST.VALUE:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.override:0 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.command:5 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.value:150 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.ovData:150 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeIntensityOverride.override:0xCCC33C33 +TEST.EXPECTED:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.END + +-- Test Case: testSetBloodLeakEmbeddedModeInfoOverride_logged_in_other_cmd +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testSetBloodLeakEmbeddedModeInfoOverride_logged_in_other_cmd +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.command:3 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.value:150 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.END + +-- Test Case: testSetBloodLeakEmbeddedModeInfoOverride_not_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakEmbeddedModeInfoOverride +TEST.NEW +TEST.NAME:testSetBloodLeakEmbeddedModeInfoOverride_not_logged_in +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.command:15 +TEST.VALUE:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:0 +TEST.EXPECTED:BloodLeak.testSetBloodLeakEmbeddedModeInfoOverride.return:0 +TEST.END + +-- Subprogram: testSetBloodLeakIntensityMovingAverageOverride + +-- Test Case: testSetBloodLeakIntensityMovingAverageOverride_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakIntensityMovingAverageOverride +TEST.NEW +TEST.NAME:testSetBloodLeakIntensityMovingAverageOverride_logged_in +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.ovData:5.0 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.override:1 +TEST.VALUE:BloodLeak.testSetBloodLeakIntensityMovingAverageOverride.value:155.0 +TEST.VALUE:BloodLeak.testSetBloodLeakIntensityMovingAverageOverride.return:0 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.ovData:155.0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.intensityMovingAverage.override:0xCCC33C33 +TEST.EXPECTED:BloodLeak.testSetBloodLeakIntensityMovingAverageOverride.return:1 +TEST.END + +-- Test Case: testSetBloodLeakIntensityMovingAverageOverride_not_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakIntensityMovingAverageOverride +TEST.NEW +TEST.NAME:testSetBloodLeakIntensityMovingAverageOverride_not_logged_in +TEST.VALUE:BloodLeak.testSetBloodLeakIntensityMovingAverageOverride.value:155.0 +TEST.VALUE:BloodLeak.testSetBloodLeakIntensityMovingAverageOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:0 +TEST.EXPECTED:BloodLeak.testSetBloodLeakIntensityMovingAverageOverride.return:0 +TEST.END + -- Subprogram: testSetBloodLeakStatusOverride -- Test Case: testSetBloodLeakStatusOverride.001 @@ -4749,6 +5282,50 @@ TEST.EXPECTED:BloodLeak.testSetBloodLeakStatusOverride.return:0 TEST.END +-- Subprogram: testSetBloodLeakZeroingIntervalInMinsOverride + +-- Test Case: testSetBloodLeakZeroingIntervalInMinsOverride_logged_in_range_drift +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakZeroingIntervalInMinsOverride +TEST.NEW +TEST.NAME:testSetBloodLeakZeroingIntervalInMinsOverride_logged_in_range_drift +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.ovData:0 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.override:0 +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.upperRangeInterval:0 +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.valueMins:1 +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.return:0 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.ovData:60000 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS.override:0xCCC33C33 +TEST.EXPECTED:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.return:1 +TEST.END + +-- Test Case: testSetBloodLeakZeroingIntervalInMinsOverride_logged_upper_range_drift +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakZeroingIntervalInMinsOverride +TEST.NEW +TEST.NAME:testSetBloodLeakZeroingIntervalInMinsOverride_logged_upper_range_drift +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.ovData:0 +TEST.VALUE:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.override:0 +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.upperRangeInterval:1 +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.valueMins:1 +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.return:0 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:1 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.ovData:60000 +TEST.EXPECTED:BloodLeak.<>.bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS.override:0xCCC33C33 +TEST.EXPECTED:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.return:1 +TEST.END + +-- Test Case: testSetBloodLeakZeroingIntervalInMinsOverride_not_logged_in +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:testSetBloodLeakZeroingIntervalInMinsOverride +TEST.NEW +TEST.NAME:testSetBloodLeakZeroingIntervalInMinsOverride_not_logged_in +TEST.VALUE:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.return:1 +TEST.VALUE:uut_prototype_stubs.isTestingActivated.return:0 +TEST.EXPECTED:BloodLeak.testSetBloodLeakZeroingIntervalInMinsOverride.return:0 +TEST.END + -- Subprogram: zeroBloodLeak -- Test Case: zeroBloodLeak.001 @@ -4785,7 +5362,7 @@ TEST.END_NOTES: TEST.STUB:BloodLeak.getAvailableEmbModeQueueCount TEST.VALUE:BloodLeak.getAvailableEmbModeQueueCount.return:<> -TEST.EXPECTED:BloodLeak.zeroBloodLeak.return:1 +TEST.EXPECTED:BloodLeak.zeroBloodLeak.return:0 TEST.END -- Test Case: zeroBloodLeak.003 @@ -4806,7 +5383,20 @@ TEST.VALUE:BloodLeak.getAvailableEmbModeQueueCount.return:<> TEST.VALUE:uut_prototype_stubs.activateAlarm1Data.alarmData.dataType:ALARM_DATA_TYPE_U32 TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmdEnqueueCount:5 -TEST.EXPECTED:BloodLeak.zeroBloodLeak.return:1 +TEST.EXPECTED:BloodLeak.zeroBloodLeak.return:0 TEST.EXPECTED:uut_prototype_stubs.activateAlarm1Data.alarmData.dataType:ALARM_DATA_TYPE_U32 TEST.EXPECTED:uut_prototype_stubs.activateAlarm1Data.alarmData.data.uInt.data:144 TEST.END + +-- Subprogram: zeroBloodLeakReset + +-- Test Case: zeroBloodLeakReset +TEST.UNIT:BloodLeak +TEST.SUBPROGRAM:zeroBloodLeakReset +TEST.NEW +TEST.NAME:zeroBloodLeakReset +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[T_EMB_MODE_CMD].commandRqstCount:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[G_EMB_MODE_CMD].commandRqstCount:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[Z_EMB_MODE_CMD].commandRqstCount:0 +TEST.EXPECTED:BloodLeak.<>.bloodLeakEmbModeCmd[Q_EMB_MODE_CMD].commandRqstCount:0 +TEST.END Index: vectorcast/Hercules_RM46_HD_Project/environment/DIALYSIS/DIALYSIS.tst =================================================================== diff -u -r44ba92a6fd49976c851cea04a82ebd6c37523541 -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/DIALYSIS/DIALYSIS.tst (.../DIALYSIS.tst) (revision 44ba92a6fd49976c851cea04a82ebd6c37523541) +++ vectorcast/Hercules_RM46_HD_Project/environment/DIALYSIS/DIALYSIS.tst (.../DIALYSIS.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -129,6 +129,95 @@ TEST.EXPECTED:Dialysis.<>.measUFVolume:50.0 TEST.END +-- Subprogram: execBloodLeakZeroing + +-- Test Case: execBloodLeakZeroing_complete +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_complete +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_COMPLETE_STATE +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_UF_STATE +TEST.END + +-- Test Case: execBloodLeakZeroing_default +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_default +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:NUM_OF_BLD_ZEROING_STATES +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarm:ALARM_ID_HD_SOFTWARE_FAULT +TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData1.dataType:ALARM_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData1.data.uInt.data:161 +TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData2.dataType:ALARM_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData2.data.uInt.data:6 +TEST.END + +-- Test Case: execBloodLeakZeroing_flush_dpi_2_bld_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_flush_dpi_2_bld_state +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_FLUSH_DPI_2_BLD_STATE +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.END + +-- Test Case: execBloodLeakZeroing_flush_rsrvr_2_dpi_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_flush_rsrvr_2_dpi_state +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.END + +-- Test Case: execBloodLeakZeroing_idle_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_idle_state +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_SUB_STATE_CHANGE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.data.uInt.data:0 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_U32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.data.uInt.data:1 +TEST.END + +-- Test Case: execBloodLeakZeroing_verify_zeroing_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_verify_zeroing_state +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_VERIFY_ZEROING_STATE +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.END + +-- Test Case: execBloodLeakZeroing_zero_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execBloodLeakZeroing +TEST.NEW +TEST.NAME:execBloodLeakZeroing_zero_state +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_ZERO_STATE +TEST.EXPECTED:Dialysis.execBloodLeakZeroing.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.END + -- Subprogram: execDialysis -- Test Case: execDialysis.001 @@ -152,7 +241,7 @@ TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData1.dataType:ALARM_DATA_TYPE_U32 TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData1.data.uInt.data:55 TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData2.dataType:ALARM_DATA_TYPE_U32 -TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData2.data.uInt.data:3 +TEST.EXPECTED:uut_prototype_stubs.activateAlarm2Data.alarmData2.data.uInt.data:4 TEST.END -- Test Case: execDialysis_SalineBolusState @@ -161,6 +250,8 @@ TEST.NEW TEST.NAME:execDialysis_SalineBolusState TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_SALINE_BOLUS_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_REQUESTED +TEST.VALUE:uut_prototype_stubs.isBloodLeakZeroingNeeded.return:1 TEST.EXPECTED:Dialysis.<>.currentDialysisState:DIALYSIS_SALINE_BOLUS_STATE TEST.END @@ -173,11 +264,11 @@ TEST.EXPECTED:Dialysis.<>.currentDialysisState:DIALYSIS_START_STATE TEST.END --- Test Case: execDialysis_UFState +-- Test Case: execDialysis_UFState_zeroing_needed_rsrvr_not_switched TEST.UNIT:Dialysis TEST.SUBPROGRAM:execDialysis TEST.NEW -TEST.NAME:execDialysis_UFState +TEST.NAME:execDialysis_UFState_zeroing_needed_rsrvr_not_switched TEST.IMPORT_FAILURES: (E) Errors from previous script import(s) >>> (E) @LINE: 386 TEST.VALUE:Dialysis.<>.maxUFVolumeML:1000.0 @@ -204,6 +295,9 @@ TEST.VALUE:Dialysis.<>.uFTimeMS:200000 TEST.VALUE:Dialysis.<>.lastUFTimeStamp:299000 TEST.VALUE:Dialysis.<>.setUFRate:10.0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_READY +TEST.VALUE:uut_prototype_stubs.isBloodLeakZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.checkHasReservoirBeenSwitched.return:0 TEST.VALUE:uut_prototype_stubs.getMSTimerCount.return:300000 TEST.VALUE:uut_prototype_stubs.calcTimeBetween.return:1000 TEST.EXPECTED:Dialysis.<>.currentDialysisState:DIALYSIS_UF_STATE @@ -215,11 +309,66 @@ TEST.EXPECTED:Dialysis.<>.uFTimeMS:201000 TEST.EXPECTED:Dialysis.<>.lastUFTimeStamp:300000 TEST.EXPECTED:Dialysis.<>.setUFRate:0.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_REQUESTED TEST.EXPECTED:uut_prototype_stubs.setDialOutUFVolumes.refVol:33.1667 TEST.EXPECTED:uut_prototype_stubs.calcTimeBetween.startMSCount:299000 TEST.EXPECTED:uut_prototype_stubs.calcTimeBetween.endMSCount:300000 TEST.END +-- Test Case: execDialysis_UFState_zeroing_needed_rsrvr_switched +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execDialysis +TEST.NEW +TEST.NAME:execDialysis_UFState_zeroing_needed_rsrvr_switched +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_UF_STATE +TEST.VALUE:Dialysis.<>.currentUFState:UF_RUNNING_STATE +TEST.VALUE:Dialysis.<>.refUFVolume:33.0 +TEST.VALUE:Dialysis.<>.measUFVolume:259.0 +TEST.VALUE:Dialysis.<>.resStartVolume[DG_RESERVOIR_1]:1500.0 +TEST.VALUE:Dialysis.<>.measUFVolumeFromPriorReservoirs:250.0 +TEST.VALUE:Dialysis.<>.uFTimeMS:200000 +TEST.VALUE:Dialysis.<>.lastUFTimeStamp:299000 +TEST.VALUE:Dialysis.<>.setUFRate:10.0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_READY +TEST.VALUE:uut_prototype_stubs.isBloodLeakZeroingNeeded.return:1 +TEST.VALUE:uut_prototype_stubs.checkHasReservoirBeenSwitched.return:1 +TEST.VALUE:uut_prototype_stubs.getMSTimerCount.return:300000 +TEST.VALUE:uut_prototype_stubs.calcTimeBetween.return:1000 +TEST.EXPECTED:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.EXPECTED:Dialysis.<>.currentUFState:UF_PAUSED_STATE +TEST.EXPECTED:Dialysis.<>.refUFVolume:33.1667 +TEST.EXPECTED:Dialysis.<>.measUFVolume:-1250.0 +TEST.EXPECTED:Dialysis.<>.resStartVolume[DG_RESERVOIR_1]:1500.0 +TEST.EXPECTED:Dialysis.<>.measUFVolumeFromPriorReservoirs:250.0 +TEST.EXPECTED:Dialysis.<>.uFTimeMS:201000 +TEST.EXPECTED:Dialysis.<>.lastUFTimeStamp:300000 +TEST.EXPECTED:Dialysis.<>.setUFRate:0.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_IN_PROGRESS +TEST.EXPECTED:uut_prototype_stubs.setDialOutUFVolumes.refVol:33.1667 +TEST.EXPECTED:uut_prototype_stubs.calcTimeBetween.startMSCount:299000 +TEST.EXPECTED:uut_prototype_stubs.calcTimeBetween.endMSCount:300000 +TEST.END + +-- Test Case: execDialysis_zeroing_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:execDialysis +TEST.NEW +TEST.NAME:execDialysis_zeroing_state +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.EXPECTED:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.END + +-- Subprogram: getBloodLeakZeroingState + +-- Test Case: getBloodLeakZeroingState +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:getBloodLeakZeroingState +TEST.NEW +TEST.NAME:getBloodLeakZeroingState +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.EXPECTED:Dialysis.getBloodLeakZeroingState.return:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.END + -- Subprogram: getDialysisState -- Test Case: getDialysisState_NominalPath @@ -295,6 +444,201 @@ TEST.EXPECTED:Dialysis.getUltrafiltrationVolumeCollected.return:1200.0 TEST.END +-- Subprogram: handleBloodLeakZeroingCompleteState + +-- Test Case: handleBloodLeakZeroingCompleteState_from_tx_stop_not_resume_UF +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingCompleteState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingCompleteState_from_tx_stop_not_resume_UF +TEST.VALUE:Dialysis.<>.autoResumeUF:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:0 +TEST.VALUE:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState:<> +TEST.VALUE:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState[0]:DIALYSIS_SALINE_BOLUS_STATE +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState[0]:DIALYSIS_UF_STATE +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingCompleteState.return:BLD_ZEROING_COMPLETE_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingCompleteState_from_tx_stop_resume_UF +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingCompleteState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingCompleteState_from_tx_stop_resume_UF +TEST.VALUE:Dialysis.<>.autoResumeUF:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:0 +TEST.VALUE:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState:<> +TEST.VALUE:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState[0]:DIALYSIS_SALINE_BOLUS_STATE +TEST.EXPECTED:Dialysis.<>.currentUFState:UF_RUNNING_STATE +TEST.EXPECTED:Dialysis.<>.autoResumeUF:0 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState[0]:DIALYSIS_UF_STATE +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingCompleteState.return:BLD_ZEROING_COMPLETE_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingCompleteState_not_from_tx_stop +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingCompleteState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingCompleteState_not_from_tx_stop +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:1 +TEST.VALUE:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState:<> +TEST.VALUE:Dialysis.handleBloodLeakZeroingCompleteState.dialysisState[0]:DIALYSIS_SALINE_BOLUS_STATE +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingCompleteState.return:BLD_ZEROING_COMPLETE_STATE +TEST.END + +-- Subprogram: handleBloodLeakZeroingFlushDPi2BLDState + +-- Test Case: handleBloodLeakZeroingFlushDPi2BLDState_<=_flush_vol +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingFlushDPi2BLDState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingFlushDPi2BLDState_<=_flush_vol +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.DPi2BLDFlushedVolML:10.0 +TEST.VALUE:uut_prototype_stubs.getMeasuredDialInFlowRate.return:100.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.DPi2BLDFlushedVolML:10.0833 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingFlushDPi2BLDState.return:BLD_ZEROING_FLUSH_DPI_2_BLD_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingFlushDPi2BLDState_>_flush_vol +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingFlushDPi2BLDState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingFlushDPi2BLDState_>_flush_vol +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.DPi2BLDFlushedVolML:70.0 +TEST.VALUE:uut_prototype_stubs.getMeasuredDialInFlowRate.return:100.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.DPi2BLDFlushedVolML:70.0833 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingFlushDPi2BLDState.return:BLD_ZEROING_ZERO_STATE +TEST.END + +-- Subprogram: handleBloodLeakZeroingFlushReservoir2DPiState + +-- Test Case: handleBloodLeakZeroingFlushReservoir2DPiState_<=_flush_vol +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingFlushReservoir2DPiState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingFlushReservoir2DPiState_<=_flush_vol +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.rsrvr2DPiFlushedVolML:10.0 +TEST.VALUE:uut_prototype_stubs.getMeasuredDialInFlowRate.return:100.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.rsrvr2DPiFlushedVolML:10.0833 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingFlushReservoir2DPiState.return:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingFlushReservoir2DPiState_>_flush_vol +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingFlushReservoir2DPiState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingFlushReservoir2DPiState_>_flush_vol +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.rsrvr2DPiFlushedVolML:75.0 +TEST.VALUE:uut_prototype_stubs.getMeasuredDialInFlowRate.return:100.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.rsrvr2DPiFlushedVolML:75.0833 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingFlushReservoir2DPiState.return:BLD_ZEROING_FLUSH_DPI_2_BLD_STATE +TEST.END + +-- Subprogram: handleBloodLeakZeroingIdleState + +-- Test Case: handleBloodLeakZeroingIdleState_zeroing_not_requested +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingIdleState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingIdleState_zeroing_not_requested +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingIdleState.return:BLD_ZEROING_IDLE_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingIdleState_zeroing_requested_from_tx_stop +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingIdleState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingIdleState_zeroing_requested_from_tx_stop +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:1 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingIdleState.return:BLD_ZEROING_ZERO_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingIdleState_zeroing_requested_not_from_tx_stop +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingIdleState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingIdleState_zeroing_requested_not_from_tx_stop +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingIdleState.return:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.END + +-- Subprogram: handleBloodLeakZeroingVerifyZeroingState + +-- Test Case: handleBloodLeakZeroingVerifyZeroingState_self_test_failed_zero_again +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingVerifyZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingVerifyZeroingState_self_test_failed_zero_again +TEST.VALUE:uut_prototype_stubs.hasBloodLeakZeroSequenceFailed.return:0 +TEST.VALUE:uut_prototype_stubs.getBloodLeakSelfTestStatus.return:SELF_TEST_STATUS_FAILED +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingVerifyZeroingState.return:BLD_ZEROING_ZERO_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingVerifyZeroingState_self_test_failed_zero_seq_failed +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingVerifyZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingVerifyZeroingState_self_test_failed_zero_seq_failed +TEST.VALUE:uut_prototype_stubs.hasBloodLeakZeroSequenceFailed.return:1 +TEST.VALUE:uut_prototype_stubs.getBloodLeakSelfTestStatus.return:SELF_TEST_STATUS_FAILED +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingVerifyZeroingState.return:BLD_ZEROING_VERIFY_ZEROING_STATE +TEST.EXPECTED:uut_prototype_stubs.activateAlarmNoData.alarm:ALARM_ID_HD_BLOOD_LEAK_SENSOR_ZERO_SEQUENCE_FAILED +TEST.END + +-- Test Case: handleBloodLeakZeroingVerifyZeroingState_self_test_in_progress +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingVerifyZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingVerifyZeroingState_self_test_in_progress +TEST.VALUE:uut_prototype_stubs.getBloodLeakSelfTestStatus.return:SELF_TEST_STATUS_IN_PROGRESS +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingVerifyZeroingState.return:BLD_ZEROING_VERIFY_ZEROING_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingVerifyZeroingState_self_test_passed +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingVerifyZeroingState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingVerifyZeroingState_self_test_passed +TEST.VALUE:uut_prototype_stubs.getBloodLeakSelfTestStatus.return:SELF_TEST_STATUS_PASSED +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingVerifyZeroingState.return:BLD_ZEROING_COMPLETE_STATE +TEST.END + +-- Subprogram: handleBloodLeakZeroingZeroState + +-- Test Case: handleBloodLeakZeroingZeroState_schedule_zero_not_successful +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingZeroState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingZeroState_schedule_zero_not_successful +TEST.VALUE:uut_prototype_stubs.zeroBloodLeak.return:0 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingZeroState.return:BLD_ZEROING_ZERO_STATE +TEST.END + +-- Test Case: handleBloodLeakZeroingZeroState_schedule_zero_successful +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleBloodLeakZeroingZeroState +TEST.NEW +TEST.NAME:handleBloodLeakZeroingZeroState_schedule_zero_successful +TEST.VALUE:uut_prototype_stubs.zeroBloodLeak.return:1 +TEST.EXPECTED:Dialysis.handleBloodLeakZeroingZeroState.return:BLD_ZEROING_VERIFY_ZEROING_STATE +TEST.END + +-- Subprogram: handleDialysisBloodLeakZeroingState + +-- Test Case: handleDialysisBloodLeakZeroingState +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleDialysisBloodLeakZeroingState +TEST.NEW +TEST.NAME:handleDialysisBloodLeakZeroingState +TEST.VALUE:Dialysis.<>.currentDialysisState:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.EXPECTED:Dialysis.handleDialysisBloodLeakZeroingState.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.END + -- Subprogram: handleDialysisSalineBolusState -- Test Case: handleDialysisSalineBolusState.001 @@ -1737,6 +2081,34 @@ TEST.EXPECTED:Dialysis.handleUFPausedState.return:UF_PAUSED_STATE TEST.END +-- Test Case: handleUFPausedState_Start_zeroing_and_zeroing_in_idle_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleUFPausedState +TEST.NEW +TEST.NAME:handleUFPausedState_Start_zeroing_and_zeroing_in_idle_state +TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.VALUE:Dialysis.handleUFPausedState.dialysisState:<> +TEST.EXPECTED:Dialysis.<>.autoResumeUF:0 +TEST.EXPECTED:Dialysis.handleUFPausedState.dialysisState[0]:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.EXPECTED:Dialysis.handleUFPausedState.return:UF_PAUSED_STATE +TEST.END + +-- Test Case: handleUFPausedState_Start_zeroing_and_zeroing_not_in_idle_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleUFPausedState +TEST.NEW +TEST.NAME:handleUFPausedState_Start_zeroing_and_zeroing_not_in_idle_state +TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_FLUSH_DPI_2_BLD_STATE +TEST.VALUE:Dialysis.handleUFPausedState.dialysisState:<> +TEST.EXPECTED:Dialysis.<>.autoResumeUF:0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.EXPECTED:Dialysis.handleUFPausedState.return:UF_PAUSED_STATE +TEST.END + -- Subprogram: handleUFRunningState -- Test Case: handleUFRunningState.001 @@ -1935,6 +2307,37 @@ TEST.EXPECTED:uut_prototype_stubs.calcTimeBetween.endMSCount:61000 TEST.END +-- Test Case: handleUFRunningState_start_zeroing_and_zeroing_in_idle_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleUFRunningState +TEST.NEW +TEST.NAME:handleUFRunningState_start_zeroing_and_zeroing_in_idle_state +TEST.VALUE:Dialysis.<>.refUFVolume:15.0 +TEST.VALUE:Dialysis.<>.setUFVolumeML:50.0 +TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.VALUE:Dialysis.handleUFRunningState.dialysisState:<> +TEST.EXPECTED:Dialysis.<>.autoResumeUF:1 +TEST.EXPECTED:Dialysis.handleUFRunningState.dialysisState[0]:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.EXPECTED:Dialysis.handleUFRunningState.return:UF_PAUSED_STATE +TEST.END + +-- Test Case: handleUFRunningState_start_zeroing_and_zeroing_not_in_idle_state +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:handleUFRunningState +TEST.NEW +TEST.NAME:handleUFRunningState_start_zeroing_and_zeroing_not_in_idle_state +TEST.VALUE:Dialysis.<>.refUFVolume:15.0 +TEST.VALUE:Dialysis.<>.setUFVolumeML:50.0 +TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.VALUE:Dialysis.handleUFRunningState.dialysisState:<> +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.EXPECTED:Dialysis.handleUFRunningState.return:UF_RUNNING_STATE +TEST.END + -- Subprogram: initDialysis -- Test Case: initDialysis_NominalPath @@ -2150,6 +2553,63 @@ TEST.EXPECTED:Dialysis.<>.salineBolusBroadcastTimerCtr:0 TEST.END +-- Subprogram: requestBloodLeakZeroing + +-- Test Case: requestBloodLeakZeroing_from_tx_stop +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:requestBloodLeakZeroing +TEST.NEW +TEST.NAME:requestBloodLeakZeroing_from_tx_stop +TEST.VALUE:Dialysis.requestBloodLeakZeroing.isRequestFromTreatmentStop:1 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:1 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_IN_PROGRESS +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_ZEROING_REQUIRED +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_F32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.data.uInt.data:0 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_F32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.data.uInt.data:0 +TEST.END + +-- Test Case: requestBloodLeakZeroing_not_from_tx_stop +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:requestBloodLeakZeroing +TEST.NEW +TEST.NAME:requestBloodLeakZeroing_not_from_tx_stop +TEST.VALUE:Dialysis.requestBloodLeakZeroing.isRequestFromTreatmentStop:0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_IN_PROGRESS +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.EXPECTED:uut_prototype_stubs.sendEvent.event:HD_EVENT_BLOOD_LEAK_ZEROING_REQUIRED +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.dataType:EVENT_DATA_TYPE_F32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat1.data.uInt.data:0 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.dataType:EVENT_DATA_TYPE_F32 +TEST.EXPECTED:uut_prototype_stubs.sendEvent.dat2.data.uInt.data:0 +TEST.END + +-- Subprogram: resetBloodLeakZeroingVariables + +-- Test Case: resetBloodLeakZeroingVariables +TEST.UNIT:Dialysis +TEST.SUBPROGRAM:resetBloodLeakZeroingVariables +TEST.NEW +TEST.NAME:resetBloodLeakZeroingVariables +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.DPi2BLDFlushedVolML:15.0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.rsrvr2DPiFlushedVolML:15.0 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:1 +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_REQUESTED +TEST.VALUE:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_VERIFY_ZEROING_STATE +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.DPi2BLDFlushedVolML:0.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.rsrvr2DPiFlushedVolML:0.0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.hasBloodLeakZeroingBeenRequested:0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.isZeroingRequestedFromTreatmentStop:0 +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.zeroingRequestState:BLOOD_LEAK_ZEROING_RQST_READY +TEST.EXPECTED:Dialysis.<>.bloodLeakZeroingStatus.bloodLeakZeroingState:BLD_ZEROING_IDLE_STATE +TEST.END + -- Subprogram: resetSalineBolus -- Test Case: resetSalineBolus.001 @@ -2401,9 +2861,10 @@ TEST.NEW TEST.NAME:setDialysisParams.001 TEST.IMPORT_FAILURES: -(E) @LINE: 2375 TEST.VALUE:Dialysis.setDialysisDialInFlowAndUFRate.bPFlow:<> - >>> Unknown parameter/object name bPFlow - >>> Value Line Error - Command Ignored +(E) Errors from previous script import(s) + >>> (E) @LINE: 2375 TEST.VALUE:Dialysis.setDialysisDialInFlowAndUFRate.bPFlow:<> + >>> >>> Unknown parameter/object name bPFlow + >>> >>> Value Line Error - Command Ignored TEST.END_IMPORT_FAILURES: TEST.MCDC_BASIS_PATH:3 of 3 TEST.NOTES: @@ -2430,10 +2891,10 @@ TEST.NEW TEST.NAME:setDialysisParams_HighUF_NotInDialysisSubMode TEST.IMPORT_FAILURES: -(E) @LINE: 2407 TEST.VALUE:Dialysis.setDialysisDialInFlowAndUFRate.bPFlow:400 - >>> Unknown parameter/object name bPFlow - >>> Value Line Error - Command Ignored (E) Errors from previous script import(s) + >>> (E) @LINE: 2407 TEST.VALUE:Dialysis.setDialysisDialInFlowAndUFRate.bPFlow:400 + >>> >>> Unknown parameter/object name bPFlow + >>> >>> Value Line Error - Command Ignored >>> (E) @LINE: 2316 TEST.VALUE:Dialysis.<>.maxUFVolumeML:0.0 >>> >>> Unknown parameter/object name maxUFVolumeML >>> >>> Value Line Error - Command Ignored @@ -2467,10 +2928,10 @@ TEST.NEW TEST.NAME:setDialysisParams_NominalPath TEST.IMPORT_FAILURES: -(E) @LINE: 2434 TEST.VALUE:Dialysis.setDialysisDialInFlowAndUFRate.bPFlow:400 - >>> Unknown parameter/object name bPFlow - >>> Value Line Error - Command Ignored (E) Errors from previous script import(s) + >>> (E) @LINE: 2434 TEST.VALUE:Dialysis.setDialysisDialInFlowAndUFRate.bPFlow:400 + >>> >>> Unknown parameter/object name bPFlow + >>> >>> Value Line Error - Command Ignored >>> (E) @LINE: 2336 TEST.VALUE:Dialysis.<>.maxUFVolumeML:0.0 >>> >>> Unknown parameter/object name maxUFVolumeML >>> >>> Value Line Error - Command Ignored @@ -2594,8 +3055,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IDLE TEST.VALUE:Dialysis.<>.salineBolusAbortRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusAbortRequested:0 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME @@ -2612,8 +3073,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IN_PROGRESS TEST.VALUE:Dialysis.<>.salineBolusAbortRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusAbortRequested:1 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME @@ -2630,8 +3091,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IN_PROGRESS TEST.VALUE:Dialysis.<>.salineBolusAbortRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusAbortRequested:0 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME @@ -2648,8 +3109,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IN_PROGRESS TEST.VALUE:Dialysis.<>.salineBolusAbortRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_STOP_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusAbortRequested:0 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME @@ -2708,8 +3169,8 @@ TEST.STUB:Dialysis.getSalineBolusState TEST.VALUE:Dialysis.<>.totalSalineVolumeDelivered_mL:<> TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_TREATMENT_DURATION TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_TREATMENT_DURATION TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME TEST.END @@ -2722,8 +3183,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IDLE TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME TEST.EXPECTED:uut_prototype_stubs.sendSalineBolusResponse.bolusVol:100 @@ -2743,8 +3204,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IDLE TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME TEST.EXPECTED:uut_prototype_stubs.sendSalineBolusResponse.bolusVol:100 @@ -2764,8 +3225,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IDLE TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusStartRequested:1 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME @@ -2788,8 +3249,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IDLE TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_DIALYSIS_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusStartRequested:0 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME @@ -2812,8 +3273,8 @@ TEST.VALUE:Dialysis.<>.currentSalineBolusState:SALINE_BOLUS_STATE_IDLE TEST.VALUE:Dialysis.<>.salineBolusStartRequested:0 TEST.VALUE:uut_prototype_stubs.getTreatmentState.return:TREATMENT_STOP_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_TREA +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterU32.return:100 TEST.VALUE:uut_prototype_stubs.sendSalineBolusResponse.return:1 TEST.EXPECTED:Dialysis.<>.salineBolusStartRequested:0 TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_SALINE_BOLUS_VOLUME Index: vectorcast/Hercules_RM46_HD_Project/environment/MODEINITPOST/MODEINITPOST.tst =================================================================== diff -u -r77766188c62664b440ddab729e06d5fbb596a3a0 -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/MODEINITPOST/MODEINITPOST.tst (.../MODEINITPOST.tst) (revision 77766188c62664b440ddab729e06d5fbb596a3a0) +++ vectorcast/Hercules_RM46_HD_Project/environment/MODEINITPOST/MODEINITPOST.tst (.../MODEINITPOST.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -22,7 +22,7 @@ TEST.SUBPROGRAM:execFWCompatibilityTest TEST.NEW TEST.NAME:execFWCompatibilityTest.001 -TEST.VALUE:ModeInitPOST.<>.uiVersion.compatibility:14 +TEST.VALUE:ModeInitPOST.<>.uiVersion.compatibility:15 TEST.VALUE:ModeInitPOST.execFWCompatibilityTest.return:SELF_TEST_STATUS_IN_PROGRESS TEST.EXPECTED:ModeInitPOST.execFWCompatibilityTest.return:SELF_TEST_STATUS_PASSED TEST.END Index: vectorcast/Hercules_RM46_HD_Project/environment/MODEPRETREAT/MODEPRETREAT.tst =================================================================== diff -u -r39784f793b0095edf9d6dc15003ddec05ab71f0c -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/MODEPRETREAT/MODEPRETREAT.tst (.../MODEPRETREAT.tst) (revision 39784f793b0095edf9d6dc15003ddec05ab71f0c) +++ vectorcast/Hercules_RM46_HD_Project/environment/MODEPRETREAT/MODEPRETREAT.tst (.../MODEPRETREAT.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -1543,53 +1543,52 @@ TEST.EXPECTED:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE TEST.END --- Test Case: handlePatientConnectionWait4TreatmentStartState.002 +-- Test Case: handlePatientConnectionWait4TreatmentStartState.003 TEST.UNIT:ModePreTreat TEST.SUBPROGRAM:handlePatientConnectionWait4TreatmentStartState TEST.NEW -TEST.NAME:handlePatientConnectionWait4TreatmentStartState.002 -TEST.BASIS_PATH:2 of 2 +TEST.NAME:handlePatientConnectionWait4TreatmentStartState.003 TEST.NOTES: This is an automatically generated test case. - Test Path 2 - (1) if ((1) == treatmentStartRequested) ==> TRUE + Test Path 1 + (1) if ((1) == treatmentStartRequested) ==> FALSE Test Case Generation Notes: TEST.END_NOTES: -TEST.VALUE:ModePreTreat.<>.treatmentStartRequested:1 +TEST.VALUE:ModePreTreat.<>.treatmentStartRequested:<> TEST.VALUE:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE -TEST.VALUE:uut_prototype_stubs.requestNewOperationMode.newMode:MODE_FAUL -TEST.VALUE:uut_prototype_stubs.getDGActiveReservoir.return:DG_RESERVOIR_1 -TEST.VALUE:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_2 -TEST.EXPECTED:ModePreTreat.<>.treatmentStartRequested:1 +TEST.VALUE:uut_prototype_stubs.getTestConfigStatus.return:1 +TEST.EXPECTED:ModePreTreat.<>.treatmentStartRequested:0 TEST.EXPECTED:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE -TEST.EXPECTED:uut_prototype_stubs.requestNewOperationMode.newMode:MODE_TREA -TEST.EXPECTED:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_1 +TEST.EXPECTED:uut_prototype_stubs.getTestConfigStatus.config:TEST_CONFIG_EXPEDITE_PRE_TREATMENT TEST.END --- Test Case: handlePatientConnectionWait4TreatmentStartState.003 +-- Test Case: handlePatientConnectionWait4TreatmentStartState.005 TEST.UNIT:ModePreTreat TEST.SUBPROGRAM:handlePatientConnectionWait4TreatmentStartState TEST.NEW -TEST.NAME:handlePatientConnectionWait4TreatmentStartState.003 +TEST.NAME:handlePatientConnectionWait4TreatmentStartState.005 TEST.NOTES: This is an automatically generated test case. - Test Path 1 - (1) if ((1) == treatmentStartRequested) ==> FALSE + Test Path 2 + (1) if ((1) == treatmentStartRequested) ==> TRUE Test Case Generation Notes: TEST.END_NOTES: -TEST.VALUE:ModePreTreat.<>.treatmentStartRequested:<> +TEST.VALUE:ModePreTreat.<>.treatmentStartRequested:1 TEST.VALUE:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE TEST.VALUE:uut_prototype_stubs.getTestConfigStatus.return:1 -TEST.EXPECTED:ModePreTreat.<>.treatmentStartRequested:0 +TEST.VALUE:uut_prototype_stubs.requestNewOperationMode.newMode:MODE_FAUL +TEST.VALUE:uut_prototype_stubs.getDGActiveReservoir.return:DG_RESERVOIR_1 +TEST.VALUE:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_2 +TEST.EXPECTED:ModePreTreat.<>.treatmentStartRequested:1 TEST.EXPECTED:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE TEST.EXPECTED:uut_prototype_stubs.getTestConfigStatus.config:TEST_CONFIG_EXPEDITE_PRE_TREATMENT TEST.END --- Test Case: handlePatientConnectionWait4TreatmentStartState.004 +-- Test Case: handlePatientConnectionWait4TreatmentStartState_tx_start_rqst_zeroing_needed TEST.UNIT:ModePreTreat TEST.SUBPROGRAM:handlePatientConnectionWait4TreatmentStartState TEST.NEW -TEST.NAME:handlePatientConnectionWait4TreatmentStartState.004 +TEST.NAME:handlePatientConnectionWait4TreatmentStartState_tx_start_rqst_zeroing_needed TEST.NOTES: This is an automatically generated test case. Test Path 2 @@ -1601,6 +1600,7 @@ TEST.VALUE:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE TEST.VALUE:uut_prototype_stubs.getTestConfigStatus.return:1 TEST.VALUE:uut_prototype_stubs.requestNewOperationMode.newMode:MODE_FAUL +TEST.VALUE:uut_prototype_stubs.isBloodLeakZeroingNeeded.return:1 TEST.VALUE:uut_prototype_stubs.getDGActiveReservoir.return:DG_RESERVOIR_1 TEST.VALUE:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_2 TEST.EXPECTED:ModePreTreat.<>.treatmentStartRequested:1 @@ -1611,11 +1611,12 @@ TEST.EXPECTED:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_1 TEST.END --- Test Case: handlePatientConnectionWait4TreatmentStartState.005 +-- Test Case: handlePatientConnectionWait4TreatmentStartState_tx_start_rqstd_zeroing_not_needed TEST.UNIT:ModePreTreat TEST.SUBPROGRAM:handlePatientConnectionWait4TreatmentStartState TEST.NEW -TEST.NAME:handlePatientConnectionWait4TreatmentStartState.005 +TEST.NAME:handlePatientConnectionWait4TreatmentStartState_tx_start_rqstd_zeroing_not_needed +TEST.BASIS_PATH:2 of 2 TEST.NOTES: This is an automatically generated test case. Test Path 2 @@ -1624,13 +1625,14 @@ TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.treatmentStartRequested:1 TEST.VALUE:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE -TEST.VALUE:uut_prototype_stubs.getTestConfigStatus.return:1 TEST.VALUE:uut_prototype_stubs.requestNewOperationMode.newMode:MODE_FAUL +TEST.VALUE:uut_prototype_stubs.isBloodLeakZeroingNeeded.return:0 TEST.VALUE:uut_prototype_stubs.getDGActiveReservoir.return:DG_RESERVOIR_1 TEST.VALUE:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_2 TEST.EXPECTED:ModePreTreat.<>.treatmentStartRequested:1 TEST.EXPECTED:ModePreTreat.handlePatientConnectionWait4TreatmentStartState.return:PRE_TREATMENT_PAT_CONN_WAIT_FOR_TREATMENT_START_STATE -TEST.EXPECTED:uut_prototype_stubs.getTestConfigStatus.config:TEST_CONFIG_EXPEDITE_PRE_TREATMENT +TEST.EXPECTED:uut_prototype_stubs.requestNewOperationMode.newMode:MODE_TREA +TEST.EXPECTED:uut_prototype_stubs.setStartReservoirVolume.reservoirID:DG_RESERVOIR_1 TEST.END -- Subprogram: handlePatientConnectionWait4UFVolState @@ -2165,19 +2167,19 @@ TEST.STUB:ModePreTreat.setPreTreatmentHeatingParams TEST.VALUE:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_1].startFlushFill:1 TEST.VALUE:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_2].startFlushFill:1 -TEST.VALUE:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.VALUE:ModePreTreat.setPreTreatmentHeatingParams.targetTempC:45.0 TEST.VALUE:ModePreTreat.setPreTreatmentHeatingParams.targetVolML:0 TEST.VALUE:ModePreTreat.setPreTreatmentHeatingParams.targetFillFlowLPM:0.8 +TEST.VALUE:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.VALUE:uut_prototype_stubs.getDGOpMode.return:DG_MODE_GENE TEST.VALUE:uut_prototype_stubs.getDGSubMode.return:1 TEST.VALUE:uut_prototype_stubs.getDGInactiveReservoir.return:DG_RESERVOIR_1 TEST.EXPECTED:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_1].startFlushFill:1 TEST.EXPECTED:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_2].startFlushFill:1 -TEST.EXPECTED:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.EXPECTED:ModePreTreat.setPreTreatmentHeatingParams.targetTempC:45.0 TEST.EXPECTED:ModePreTreat.setPreTreatmentHeatingParams.targetVolML:300 TEST.EXPECTED:ModePreTreat.setPreTreatmentHeatingParams.targetFillFlowLPM:0.8 +TEST.EXPECTED:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.END -- Test Case: handlePreTreatmentReservoirMgmtFillCmdState.006 @@ -2222,21 +2224,21 @@ TEST.VALUE:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_1].flushComplete:1 TEST.VALUE:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_2].startNormalFill:1 TEST.VALUE:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_2].flushComplete:1 -TEST.VALUE:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.VALUE:ModePreTreat.setPreTreatmentHeatingParams.targetTempC:39.0 TEST.VALUE:ModePreTreat.setPreTreatmentHeatingParams.targetVolML:0 TEST.VALUE:ModePreTreat.setPreTreatmentHeatingParams.targetFillFlowLPM:0.8 +TEST.VALUE:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.VALUE:uut_prototype_stubs.getDGOpMode.return:DG_MODE_GENE TEST.VALUE:uut_prototype_stubs.getDGSubMode.return:1 TEST.VALUE:uut_prototype_stubs.getDGInactiveReservoir.return:DG_RESERVOIR_1 TEST.EXPECTED:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_1].startNormalFill:1 TEST.EXPECTED:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_1].flushComplete:1 TEST.EXPECTED:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_2].startNormalFill:1 TEST.EXPECTED:ModePreTreat.<>.reservoirStatus[DG_RESERVOIR_2].flushComplete:1 -TEST.EXPECTED:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.EXPECTED:ModePreTreat.setPreTreatmentHeatingParams.targetTempC:39.0 TEST.EXPECTED:ModePreTreat.setPreTreatmentHeatingParams.targetVolML:1300 TEST.EXPECTED:ModePreTreat.setPreTreatmentHeatingParams.targetFillFlowLPM:0.8 +TEST.EXPECTED:ModePreTreat.handlePreTreatmentReservoirMgmtFillCmdState.return:PRE_TREATMENT_RESERVOIR_MGMT_FILL_CMD_RESP_STATE TEST.END -- Subprogram: handlePreTreatmentReservoirMgmtFillCompleteState @@ -2621,11 +2623,13 @@ TEST.NEW TEST.NAME:handlePreTreatmentReservoirMgmtWaitReservoirSwitchState.002 TEST.IMPORT_FAILURES: -(I) @LINE: 2618 +(I) @LINE: 2670 >>> 'DG_CMD_SWITCH_RESERVOIR' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) >>> (I) @LINE: 2618 >>> >>> 'DG_CMD_SWITCH_RESERVOIR' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 2618 + >>> >>> 'DG_CMD_SWITCH_RESERVOIR' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 2503 >>> >>> 'DG_CMD_SWITCH_RESERVOIR' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 2306 @@ -3614,8 +3618,8 @@ TEST.NEW TEST.NAME:signalUserConfirmInstallation.001 TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:0.0,1.0 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:0.0,1.0 TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:0 TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.END @@ -3645,8 +3649,8 @@ Condition e ==> TRUE Test Case Generation Notes: TEST.END_NOTES: -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.END @@ -3670,8 +3674,8 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_FAUL +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.END @@ -3695,8 +3699,8 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:1 TEST.END @@ -3720,8 +3724,8 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.END @@ -3785,8 +3789,8 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getSwitchStatus.return:STATE_CLOSED TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:1 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3810,9 +3814,9 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.param:TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME,TREATMENT_PARAM_HEPARIN_DISPENSE_RATE,TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME,TREATMENT_PARAM_HEPARIN_DISPENSE_RATE TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:(2)0.0,0.00000001,0.00000002 -TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:1 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3837,9 +3841,9 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.param:TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME,TREATMENT_PARAM_HEPARIN_DISPENSE_RATE,TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME,TREATMENT_PARAM_HEPARIN_DISPENSE_RATE TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:(3)0.0,<> -TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:1 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3864,9 +3868,9 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.param:TREATMENT_PARAM_BLOOD_FLOW TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:1.1 -TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3891,9 +3895,9 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.param:TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> -TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:1 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3918,9 +3922,9 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE +TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.param:TREATMENT_PARAM_HEPARIN_BOLUS_VOLUME TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:1.0 -TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3945,8 +3949,8 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:0 TEST.EXPECTED:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE @@ -3970,8 +3974,8 @@ Test Case Generation Notes: TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:<> TEST.VALUE:uut_prototype_stubs.getSwitchStatus.switchId:FRONT_DOOR,PUMP_TRACK_SWITCH TEST.VALUE:uut_prototype_stubs.getSwitchStatus.return:STATE_OPEN,STATE_CLOSED TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:<> @@ -3998,8 +4002,8 @@ TEST.END_NOTES: TEST.VALUE:ModePreTreat.<>.confirmInstallRequested:0 TEST.VALUE:ModePreTreat.<>.currentPreTreatmentState:HD_PRE_TREATMENT_CART_INSTALL_STATE -TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:0.0,0.25 TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_PRET +TEST.VALUE:uut_prototype_stubs.getTreatmentParameterF32.return:0.0,0.25 TEST.VALUE:uut_prototype_stubs.getSwitchStatus.return:STATE_CLOSED TEST.VALUE:uut_prototype_stubs.isSyringeDetected.return:1 TEST.EXPECTED:ModePreTreat.<>.confirmInstallRequested:1 Index: vectorcast/Hercules_RM46_HD_Project/environment/MODESTANDBY/MODESTANDBY.tst =================================================================== diff -u -rfe916929aed79950967f3a6fe5a49b2424ee3491 -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/MODESTANDBY/MODESTANDBY.tst (.../MODESTANDBY.tst) (revision fe916929aed79950967f3a6fe5a49b2424ee3491) +++ vectorcast/Hercules_RM46_HD_Project/environment/MODESTANDBY/MODESTANDBY.tst (.../MODESTANDBY.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -114,11 +114,15 @@ TEST.NEW TEST.NAME:execStandbyMode.005 TEST.IMPORT_FAILURES: -(I) @LINE: 226 +(I) @LINE: 232 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 230 +(I) @LINE: 236 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 226 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 230 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 224 >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 228 @@ -242,11 +246,15 @@ TEST.NEW TEST.NAME:execStandbyMode.006 TEST.IMPORT_FAILURES: -(I) @LINE: 350 +(I) @LINE: 360 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 352 +(I) @LINE: 362 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 350 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 352 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 344 >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 346 @@ -390,11 +398,15 @@ TEST.NEW TEST.NAME:execStandbyMode.008 TEST.IMPORT_FAILURES: -(I) @LINE: 494 +(I) @LINE: 508 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 497 +(I) @LINE: 511 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 494 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 497 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 484 >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 487 @@ -517,11 +529,15 @@ TEST.NEW TEST.NAME:execStandbyMode.009 TEST.IMPORT_FAILURES: -(I) @LINE: 617 +(I) @LINE: 635 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 620 +(I) @LINE: 638 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 617 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 620 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 603 >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 606 @@ -695,11 +711,15 @@ TEST.NEW TEST.NAME:execStandbyMode.012 TEST.IMPORT_FAILURES: -(I) @LINE: 791 +(I) @LINE: 813 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. -(I) @LINE: 795 +(I) @LINE: 817 >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 791 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. + >>> (I) @LINE: 795 + >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 773 >>> >>> 'STANDBY_START_STATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 777 @@ -5163,7 +5183,7 @@ TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_STAN TEST.VALUE:uut_prototype_stubs.isDGCommunicating.return:1 TEST.VALUE:uut_prototype_stubs.isPOSTPassed.return:1 -TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:14 +TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:15 TEST.EXPECTED:ModeStandby.signalUserInitiateTreatment.return:0 TEST.END @@ -5186,7 +5206,7 @@ TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_STAN TEST.VALUE:uut_prototype_stubs.isDGCommunicating.return:1 TEST.VALUE:uut_prototype_stubs.isPOSTPassed.return:1 -TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:14 +TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:15 TEST.EXPECTED:ModeStandby.signalUserInitiateTreatment.return:0 TEST.END @@ -5250,7 +5270,7 @@ TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_STAN TEST.VALUE:uut_prototype_stubs.isDGCommunicating.return:1 TEST.VALUE:uut_prototype_stubs.isPOSTPassed.return:1 -TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:14 +TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:15 TEST.EXPECTED:ModeStandby.signalUserInitiateTreatment.return:0 TEST.END @@ -5273,7 +5293,7 @@ TEST.VALUE:uut_prototype_stubs.getCurrentOperationMode.return:MODE_STAN TEST.VALUE:uut_prototype_stubs.isDGCommunicating.return:1 TEST.VALUE:uut_prototype_stubs.isPOSTPassed.return:1 -TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:14 +TEST.VALUE:uut_prototype_stubs.getDGVersion.return.compatibilityRev:15 TEST.EXPECTED:ModeStandby.signalUserInitiateTreatment.return:1 TEST.END Index: vectorcast/Hercules_RM46_HD_Project/environment/MODETREATMENT/MODETREATMENT.tst =================================================================== diff -u -rd9ace5f885dbba0c33199b9deee1917c0470f1fd -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/MODETREATMENT/MODETREATMENT.tst (.../MODETREATMENT.tst) (revision d9ace5f885dbba0c33199b9deee1917c0470f1fd) +++ vectorcast/Hercules_RM46_HD_Project/environment/MODETREATMENT/MODETREATMENT.tst (.../MODETREATMENT.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -1527,6 +1527,43 @@ TEST.EXPECTED:uut_prototype_stubs.calcTimeBetween.endMSCount:4000050 TEST.END +-- Test Case: handleTreatmentDialysisState_default_state +TEST.UNIT:ModeTreatment +TEST.SUBPROGRAM:handleTreatmentDialysisState +TEST.NEW +TEST.NAME:handleTreatmentDialysisState_default_state +TEST.VALUE:ModeTreatment.<>.treatmentTimeMS:300 +TEST.VALUE:uut_prototype_stubs.getDialysisState.return:NUM_OF_DIALYSIS_STATES +TEST.VALUE:uut_prototype_stubs.getMSTimerCount.return:12345 +TEST.VALUE:uut_prototype_stubs.calcTimeBetween.return:100 +TEST.EXPECTED:ModeTreatment.<>.treatmentTimeMS:300 +TEST.EXPECTED:ModeTreatment.<>.lastTreatmentTimeStamp:12345 +TEST.END + +-- Test Case: handleTreatmentDialysisState_zeroing_and_zeroing_in_rsrvr_to_dpi_state +TEST.UNIT:ModeTreatment +TEST.SUBPROGRAM:handleTreatmentDialysisState +TEST.NEW +TEST.NAME:handleTreatmentDialysisState_zeroing_and_zeroing_in_rsrvr_to_dpi_state +TEST.VALUE:ModeTreatment.<>.treatmentTimeMS:300 +TEST.VALUE:uut_prototype_stubs.getDialysisState.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:uut_prototype_stubs.getBloodLeakZeroingState.return:BLD_ZEROING_FLUSH_RSRVR_2_DPI_STATE +TEST.VALUE:uut_prototype_stubs.calcTimeBetween.return:100 +TEST.EXPECTED:ModeTreatment.<>.treatmentTimeMS:400 +TEST.END + +-- Test Case: handleTreatmentDialysisState_zeroing_and_zeroing_not_in_rsrvr_to_dpi_state +TEST.UNIT:ModeTreatment +TEST.SUBPROGRAM:handleTreatmentDialysisState +TEST.NEW +TEST.NAME:handleTreatmentDialysisState_zeroing_and_zeroing_not_in_rsrvr_to_dpi_state +TEST.VALUE:ModeTreatment.<>.treatmentTimeMS:300 +TEST.VALUE:uut_prototype_stubs.getDialysisState.return:DIALYSIS_BLOOD_LEAK_ZEROING_STATE +TEST.VALUE:uut_prototype_stubs.getBloodLeakZeroingState.return:BLD_ZEROING_IDLE_STATE +TEST.VALUE:uut_prototype_stubs.calcTimeBetween.return:100 +TEST.EXPECTED:ModeTreatment.<>.treatmentTimeMS:300 +TEST.END + -- Subprogram: handleTreatmentEndState -- Test Case: handleTreatmentEndState.001 @@ -4062,9 +4099,11 @@ TEST.NEW TEST.NAME:verifyUFSettingsConfirmation_ConfirmationTimeout TEST.IMPORT_FAILURES: -(I) @LINE: 4062 +(I) @LINE: 4169 >>> 'UF_ADJ_UF_RATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 4062 + >>> >>> 'UF_ADJ_UF_RATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 4060 >>> >>> 'UF_ADJ_UF_RATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 4058 @@ -4189,9 +4228,11 @@ TEST.NEW TEST.NAME:verifyUFSettingsConfirmation_NotInTreatmentMode TEST.IMPORT_FAILURES: -(I) @LINE: 4187 +(I) @LINE: 4296 >>> 'UF_ADJ_UF_RATE' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 4187 + >>> >>> 'UF_ADJ_UF_RATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 4183 >>> >>> 'UF_ADJ_UF_RATE' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 4179 Index: vectorcast/Hercules_RM46_HD_Project/environment/RESERVOIRS/RESERVOIRS.tst =================================================================== diff -u -rd9ace5f885dbba0c33199b9deee1917c0470f1fd -rbab7187e802cc751cb7da530328e703985c8d378 --- vectorcast/Hercules_RM46_HD_Project/environment/RESERVOIRS/RESERVOIRS.tst (.../RESERVOIRS.tst) (revision d9ace5f885dbba0c33199b9deee1917c0470f1fd) +++ vectorcast/Hercules_RM46_HD_Project/environment/RESERVOIRS/RESERVOIRS.tst (.../RESERVOIRS.tst) (revision bab7187e802cc751cb7da530328e703985c8d378) @@ -152,6 +152,17 @@ TEST.EXPECTED:uut_prototype_stubs.getTreatmentParameterU32.param:TREATMENT_PARAM_DIALYSATE_FLOW TEST.END +-- Subprogram: checkHasReservoirBeenSwitched + +-- Test Case: checkHasReservoirBeenSwitched +TEST.UNIT:Reservoirs +TEST.SUBPROGRAM:checkHasReservoirBeenSwitched +TEST.NEW +TEST.NAME:checkHasReservoirBeenSwitched +TEST.VALUE:Reservoirs.<>.hasReservoirBeenSwitched:1 +TEST.EXPECTED:Reservoirs.checkHasReservoirBeenSwitched.return:1 +TEST.END + -- Subprogram: checkReservoirMaxVolume -- Test Case: checkReservoirMaxVolum3_Nominal @@ -626,9 +637,11 @@ TEST.NEW TEST.NAME:handleReservoirMgmtFillState_DoneFilling TEST.IMPORT_FAILURES: -(I) @LINE: 643 +(I) @LINE: 645 >>> 'DG_GEN_IDLE_MODE_STATE_FLUSH_WATER' was specified as a macro, but it is in the symbol dictionary. (E) Errors from previous script import(s) + >>> (I) @LINE: 643 + >>> >>> 'DG_GEN_IDLE_MODE_STATE_FLUSH_WATER' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 639 >>> >>> 'DG_GEN_IDLE_MODE_STATE_FLUSH_WATER' was specified as a macro, but it is in the symbol dictionary. >>> (I) @LINE: 645 @@ -1270,6 +1283,17 @@ TEST.EXPECTED:uut_prototype_stubs.broadcastData.dataPtr:"" TEST.END +-- Subprogram: resetReservoirSwitchFlag + +-- Test Case: resetReservoirSwitchFlag +TEST.UNIT:Reservoirs +TEST.SUBPROGRAM:resetReservoirSwitchFlag +TEST.NEW +TEST.NAME:resetReservoirSwitchFlag +TEST.VALUE:Reservoirs.<>.hasReservoirBeenSwitched:1 +TEST.EXPECTED:Reservoirs.<>.hasReservoirBeenSwitched:0 +TEST.END + -- Subprogram: resetReservoirsVariables -- Test Case: resetReservoirsVariables.001