description: Test plan for timeComputation.js -------------------------------------------------------------------------------- testName: getNowMoment_validDataString input inputData: string (The formatting string, that tells moment in what format to return the value for the day, month, year, hour, minute, second and millisecond) input inputMetaData: string (Not used for this business rule) output: string (A time stamp string that has been formatted according to the input format) testName: getNowMoment_inValidDataInputDataString input inputData: string (dfxg24346dfg) input inputMetaData: string (Not used for this business rule) (testDataString) output: ? testName: getNowMoment_inValidDataInputMetaDataString input inputData: string (The formatting string, that tells moment in what format to return the value for the day, month, year, hour, minute, second and millisecond) (testDataString) input inputMetaData: string (dfxg24346dfg) output: ? testName: getNowMoment_inValidInputDataInteger input inputData: integer (4567) input inputMetaData: 123string321 output: ? status: Failed error: TypeError: format.match is not a function testName: getNowMoment_inValidInputDataBoolean input inputData: boolean (false) input inputMetaData: 123string321 output: ? testName: getNowMoment_inValidInputMetaDataInteger input inputData: 234string432 input inputMetaData: integer (4567) output: ? testName: getNowMoment_inValidInputMetaDataBoolean input inputData: 234string432 input inputMetaData: boolean (false) output: ? testName: getNowMoment_inValidInputDataUndefined input inputData: undefined input inputMetaData: string (Not used for this business rule) (inValidDataToStoreUndefined) output: ? testName: getNowMoment_inValidInputDataNaN input inputData: NaN input inputMetaData: string (Not used for this business rule) (inValidDataToStoreNaN) output: ? testName: getNowMoment_inValidInputMetaDataUndefined input inputData: string (The formatting string, that tells moment in what format to return the value for the day, month, year, hour, minute, second and millisecond) (inValidDataToStoreUndefined) input inputMetaData: undefined output: ? testName: getNowMoment_inValidInputMetaDataNaN input inputData: string (The formatting string, that tells moment in what format to return the value for the day, month, year, hour, minute, second and millisecond) (inValidDataToStoreNaN) input inputMetaData: NaN output: ? -------------------------------------------------------------------------------- testName: computeDeltaTime_validDataString input inputData: string (The start of the time period that should be computed) input inputMetaData: string (The end of the time period that should be computed) output: integer (The difference between the beginning time and ending time in milliseconds) testName: computeDeltaTime_inValidDataInputDataString input inputData: string (dfxg24346dfg) input inputMetaData: string (The end of the time period that should be computed) (testDataString) output: ? testName: computeDeltaTime_inValidDataInputMetaDataString input inputData: string (The start of the time period that should be computed) (testDataString) input inputMetaData: string (dfxg24346dfg) output: ? testName: computeDeltaTime_inValidInputDataInteger input inputData: integer (4567) input inputMetaData: 123string321 output: ? testName: computeDeltaTime_inValidInputDataBoolean input inputData: boolean (false) input inputMetaData: 123string321 output: ? testName: computeDeltaTime_inValidInputMetaDataInteger input inputData: 234string432 input inputMetaData: integer (4567) output: ? testName: computeDeltaTime_inValidInputMetaDataBoolean input inputData: 234string432 input inputMetaData: boolean (false) output: ? testName: computeDeltaTime_inValidInputDataUndefined input inputData: undefined input inputMetaData: string (The end of the time period that should be computed) (inValidDataToStoreUndefined) output: ? testName: computeDeltaTime_inValidInputDataNaN input inputData: NaN input inputMetaData: string (The end of the time period that should be computed) (inValidDataToStoreNaN) output: ? testName: computeDeltaTime_inValidInputMetaDataUndefined input inputData: string (The start of the time period that should be computed) (inValidDataToStoreUndefined) input inputMetaData: undefined output: ? testName: computeDeltaTime_inValidInputMetaDataNaN input inputData: string (The start of the time period that should be computed) (inValidDataToStoreNaN) input inputMetaData: NaN output: ? -------------------------------------------------------------------------------- testName: reformatDeltaTime_validDataString input inputData: string (A time interval measured in milliseconds) input inputMetaData: string (The formatting template that should be used to format the time interval) output: string (A time interval formatted according to the input format template string) status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_validInputDataInteger input inputData: integer input inputMetaData: string (The formatting template that should be used to format the time interval) output: string (A time interval formatted according to the input format template string) status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_validInputDataStringInteger input inputData: string (A time interval measured in milliseconds) input inputMetaData: Integer (The formatting template that should be used to format the time interval) output: string (A time interval formatted according to the input format template string) status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_validInputDataIntegerString input inputData: Integer (A time interval measured in milliseconds) input inputMetaData: string (The formatting template that should be used to format the time interval) output: string (A time interval formatted according to the input format template string) status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidDataInputDataString input inputData: string (dfxg24346dfg) input inputMetaData: string (The formatting template that should be used to format the time interval) (testDataString) output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidDataInputMetaDataString input inputData: string (A time interval measured in milliseconds) (testDataString) input inputMetaData: string (dfxg24346dfg) output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputDataInteger input inputData: integer (4567) input inputMetaData: 123string321 output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputDataBoolean input inputData: boolean (false) input inputMetaData: 123string321 output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputMetaDataInteger input inputData: 234string432 input inputMetaData: integer (4567) output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputMetaDataBoolean input inputData: 234string432 input inputMetaData: boolean (false) output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputDataUndefined input inputData: undefined input inputMetaData: string (The formatting template that should be used to format the time interval) (inValidDataToStoreUndefined) output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputDataNaN input inputData: NaN input inputMetaData: string (The formatting template that should be used to format the time interval) (inValidDataToStoreNaN) output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputMetaDataUndefined input inputData: string (A time interval measured in milliseconds) (inValidDataToStoreUndefined) input inputMetaData: undefined output: ? status: Failed error: TypeError: moment.duration(...).format is not a function testName: reformatDeltaTime_inValidInputMetaDataNaN input inputData: string (A time interval measured in milliseconds) (inValidDataToStoreNaN) input inputMetaData: NaN output: ? status: Failed error: TypeError: moment.duration(...).format is not a function -------------------------------------------------------------------------------- testName: sleep_validDataString input inputData: string (The number of milliseconds that the system should sleep for) input inputMetaData: string (Not used for this business rule) output: void testName: sleep_inValidDataInputDataString input inputData: string (dfxg24346dfg) input inputMetaData: string (Not used for this business rule) (testDataString) output: ? testName: sleep_inValidDataInputMetaDataString input inputData: string (The number of milliseconds that the system should sleep for) (testDataString) input inputMetaData: string (dfxg24346dfg) output: ? testName: sleep_inValidInputDataInteger input inputData: integer (4567) input inputMetaData: 123string321 output: ? testName: sleep_inValidInputDataBoolean input inputData: boolean (false) input inputMetaData: 123string321 output: ? testName: sleep_inValidInputMetaDataInteger input inputData: 234string432 input inputMetaData: integer (4567) output: ? testName: sleep_inValidInputMetaDataBoolean input inputData: 234string432 input inputMetaData: boolean (false) output: ? testName: sleep_inValidInputDataUndefined input inputData: undefined input inputMetaData: string (Not used for this business rule) (inValidDataToStoreUndefined) output: ? testName: sleep_inValidInputDataNaN input inputData: NaN input inputMetaData: string (Not used for this business rule) (inValidDataToStoreNaN) output: ? testName: sleep_inValidInputMetaDataUndefined input inputData: string (The number of milliseconds that the system should sleep for) (inValidDataToStoreUndefined) input inputMetaData: undefined output: ? testName: sleep_inValidInputMetaDataNaN input inputData: string (The number of milliseconds that the system should sleep for) (inValidDataToStoreNaN) input inputMetaData: NaN output: ?