description: Test plan for configuration.js -------------------------------------------------------------------------------- testName: saveConfiguration_validDataString create: D[wrd.ccolors][sys.cColorData] = "Zaffre": { "ColorName": "Zaffre", "HexValue": "#0014A8", "Red": "0", "Green": "20", "Blue": "168" }, "Zomp": { "ColorName": "Zomp", "HexValue": "#39A78E", "Red": "57", "Green": "167", "Blue": "142" } output: [boolean, [wrd.ccolors][sys.cColorData] = "Zaffre": { "ColorName": "Zaffre", "HexValue": "#0014A8", "Red": "0", "Green": "20", "Blue": "168" }, "Zomp": { "ColorName": "Zomp", "HexValue": "#39A78E", "Red": "57", "Green": "167", "Blue": "142" }] // NOTE: In order to check if test is successful, file (appConfigPath/config.json) needs to be opened, and contents valdidated. testName: saveConfiguration_inValidInputMetaDataUndefined create: D = undefined output: ? testName: saveConfiguration_inValidInputMetaDataNaN create: D = NaN output: ? -------------------------------------------------------------------------------- testName: changeConfigurationSetting_validDataString NOTE: Happy path unit test will be tested by integration test using the test harness client workflow: TestCommandSequenceALL. (cmdSeq wrkflo,TestCommandSequence1 wrkflo,TestCommandSequence2 wrkflo,TestCommandSequence3 wrkflo,TestCommandSequence4 wrkflo,TestCommandSequence5) testName: changeConfigurationSetting_inValidDataInputDataString input inputData: string (dfxg24346dfg) input inputMetaData: string (Not used for this command) (testDataString) output: ? testName: changeConfigurationSetting_inValidInputDataInteger input inputData: integer (4567) input inputMetaData: 123string321 output: ? testName: changeConfigurationSetting_inValidInputDataBoolean input inputData: boolean (false) input inputMetaData: 123string321 output: ? testName: changeConfigurationSetting_inValidInputDataUndefined input inputData: undefined input inputMetaData: string (Not used for this command) (inValidDataToStoreUndefined) output: ? testName: changeConfigurationSetting_inValidInputDataNaN input inputData: NaN input inputMetaData: string (Not used for this command) (inValidDataToStoreNaN) output: ? -------------------------------------------------------------------------------- testName: listConfigurationThemes_validDataString NOTE: Happy path unit test will be tested by integration test using the test harness client workflow: TestCommandSequenceALL. (cmdSeq wrkflo,TestCommandSequence1 wrkflo,TestCommandSequence2 wrkflo,TestCommandSequence3 wrkflo,TestCommandSequence4 wrkflo,TestCommandSequence5) testName: listConfigurationThemes_validData output: [true,["Default","Matrix","Skywalker","Tron","Vader"]] NOTE: Not possible to test with inValid test data, the only way to test is to run the function. -------------------------------------------------------------------------------- testName: changeDebugConfigurationTheme_validDataString NOTE: Happy path unit test will be tested by integration test using the test harness client workflow: TestCommandSequenceALL. (cmdSeq wrkflo,TestCommandSequence1 wrkflo,TestCommandSequence2 wrkflo,TestCommandSequence3 wrkflo,TestCommandSequence4 wrkflo,TestCommandSequence5) testName: changeDebugConfigurationTheme_inValidDataInputDataString input inputData: string (dfxg24346dfg) input inputMetaData: string (Not used for this command) (testDataString) output: ? testName: changeDebugConfigurationTheme_inValidInputDataInteger input inputData: integer (4567) input inputMetaData: 123string321 output: ? testName: changeDebugConfigurationTheme_inValidInputDataBoolean input inputData: boolean (false) input inputMetaData: 123string321 output: ? testName: changeDebugConfigurationTheme_inValidInputDataUndefined input inputData: undefined input inputMetaData: string (Not used for this command) (inValidDataToStoreUndefined) output: ? testName: changeDebugConfigurationTheme_inValidInputDataNaN input inputData: NaN input inputMetaData: string (Not used for this command) (inValidDataToStoreNaN) output: ?