diff --git a/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockRawParamsExamples/EMEA_DN02_RawParamsExample_RadioParamMissing.json b/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockRawParamsExamples/EMEA_DN02_RawParamsExample_RadioParamMissing.json
new file mode 100644
index 00000000..c5e42bc9
--- /dev/null
+++ b/Common/Hardware/WaterMeter/Genesis/MockGenesis/MockRawParamsExamples/EMEA_DN02_RawParamsExample_RadioParamMissing.json
@@ -0,0 +1,397 @@
+[
+ {
+ "RegisterName": "SENSUSRADIO_RadioAddress",
+ "RegisterValue": "GI6fMA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_EncryptionKey",
+ "RegisterValue": "Dp+sxqDh7xw7J6SbrCFlNQ==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "GENESISFLOW_MeterSize",
+ "RegisterValue": "AAAAAQ==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "GENESISFLOW_DisplayUnits",
+ "RegisterValue": "AAAAAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_FlowUnits",
+ "RegisterValue": "AAAABA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_FrequencyIndicator",
+ "RegisterValue": "AAABsQ==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_PulseMode",
+ "RegisterValue": "AAAABQ==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_PulseLength",
+ "RegisterValue": "AAAACA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_PressurePresent",
+ "RegisterValue": "AAAAAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_TemperatureUnits",
+ "RegisterValue": "AAAAAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_PressureRate",
+ "RegisterValue": "AAAAAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_PressureUnits",
+ "RegisterValue": "AAAAAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_PulseWeight",
+ "RegisterValue": "ADDUAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_MbusState",
+ "RegisterValue": "AAAABw==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_OmTxInterval",
+ "RegisterValue": "AAAOEA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_TxInterval",
+ "RegisterValue": "AAAADw==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_WakeupInterval",
+ "RegisterValue": "AAAAAw==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "SENSUSRADIO_LatInterval",
+ "RegisterValue": "AAAAAw==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "GENESISFLOW_DisplayPow10",
+ "RegisterValue": "/f///w==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "METROLOGYASST_FlowPoint",
+ "RegisterValue": "AgAAAA==",
+ "Source": 0
+ },
+ {
+ "RegisterName": "CUSTOMER_AlarmEnableMask",
+ "RegisterValue": "AACAUw==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_AlarmBroadcastMask",
+ "RegisterValue": "AAAf3A==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_AlarmVisualMask",
+ "RegisterValue": "AAAf3A==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_LeakTimeThreshold",
+ "RegisterValue": "AABOwA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_ExcessFlowTimeThreshold",
+ "RegisterValue": "AAAABQ==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_ReverseFlowTimeThreshold",
+ "RegisterValue": "AAAHCA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_TemperatureHighThreshold",
+ "RegisterValue": "AAAB9A==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_TemperatureHighDelay",
+ "RegisterValue": "AAABLA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_TemperatureLowThreshold",
+ "RegisterValue": "AAAAFA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_TemperatureLowDelay",
+ "RegisterValue": "AAABLA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_PressureHighThreshold",
+ "RegisterValue": "ABhqAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_PressureHighDelay",
+ "RegisterValue": "AAABLA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_PressureLowThreshold",
+ "RegisterValue": "AAB1MA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_PressureLowDelay",
+ "RegisterValue": "AAABLA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "METROLOGYASST_TemperatureUnits",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "METROLOGYASST_PressureOffset",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "PERIODICLOG_DataLogContents",
+ "RegisterValue": "DAAkAw==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "PERIODICLOG_DataLogPeriod",
+ "RegisterValue": "AAAAPA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "PERIODICLOG_AverageFlowPeriod",
+ "RegisterValue": "AAU=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_AverageFlowPeriod",
+ "RegisterValue": "AAU=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "PERIODICLOG_PeriodicLogLifeTimeCounter",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_MetroRadioLifeTimeCounter",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "PERIODICLOG_FixedDateReadingContents",
+ "RegisterValue": "DAAkAw==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "PERIODICLOG_FixedDateDayOfMonth",
+ "RegisterValue": "AAAAAQ==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "POWERMON_WarnFromClamp",
+ "RegisterValue": "JZgGAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SYSTEM_UpgradePermissions",
+ "RegisterValue": "AAAA/g==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "POWERMON_BatteryQuantity",
+ "RegisterValue": "AAAAAg==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_SampleRate",
+ "RegisterValue": "AAI=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_LedMode",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_HardErrorLimit",
+ "RegisterValue": "AAQ=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "IRDA_PulseReportRate",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "IRDA_AdapterPresenceLimit",
+ "RegisterValue": "AAM=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_OTAControlFlags",
+ "RegisterValue": "AAA=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_RebootCount",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_LowFlowMaxPeriod",
+ "RegisterValue": "ADwAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_LowFlowThreshold",
+ "RegisterValue": "AAAAyA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MaxValidAmplitude",
+ "RegisterValue": "rwAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MaxValidDeltaToF",
+ "RegisterValue": "AAPGXg==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MaxValidToF",
+ "RegisterValue": "AXl8ww==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MeterSize",
+ "RegisterValue": "AAAAAQ==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MinValidAmplitude",
+ "RegisterValue": "JYAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MinValidToF",
+ "RegisterValue": "ANG3Fw==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_Timeout",
+ "RegisterValue": "AAE=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_LeakFlowThreshold",
+ "RegisterValue": "AAF3AA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_ExcessFlowVolumeThreshold",
+ "RegisterValue": "AMNQAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_AppArrangement",
+ "RegisterValue": "AAE=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "METROLOGYASST_PressureUnits",
+ "RegisterValue": "AAA=",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_Locale",
+ "RegisterValue": "AAAA0A==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MaxValidAmplitude",
+ "RegisterValue": "rwAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_HistoricalAlarmsDays",
+ "RegisterValue": "AAAAWg==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_OmTxInterval",
+ "RegisterValue": "AAADhA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_ForwardArrow",
+ "RegisterValue": "AAAAAQ==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_EncryptionKey",
+ "RegisterValue": "8L/KE0jHXszHydwgWg0KHQ==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_ArrowThreshold",
+ "RegisterValue": "HoSA",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_StartHit",
+ "RegisterValue": "AAAABg==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "CUSTOMER_InstallationTime",
+ "RegisterValue": "AAAAAA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "METROLOGYASST_PressureRate",
+ "RegisterValue": "AADqYA==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "GENESISFLOW_MaxDeltaToFDeviation",
+ "RegisterValue": "AAGtfw==",
+ "Source": 1
+ },
+ {
+ "RegisterName": "SENSUSRADIO_TemperatureMeasurePeriod",
+ "RegisterValue": "AAAAPA==",
+ "Source": 1
+ }
+]
\ No newline at end of file
diff --git a/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache b/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache
index 8865d283..4163759b 100644
--- a/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache
+++ b/Common/Hardware/WaterMeter/WaterMeterCore/WaterMeterRegisters/obj/Debug/WaterMeterRegisters.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-89102b0142e574de38a9f47d370f3334e5e6c268
+8cb55c312de586b683d72cf58c13e2801d10e14b767777d98338d3e1473a1213
diff --git a/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature b/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature
index f65a7384..e69c6457 100644
--- a/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature
+++ b/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature
@@ -29,38 +29,41 @@ INPUTS: "Cordonel PcbId" essential to pass the register restorer
"Kill VerifyParams" forces the test to fail due to one changed parameter if set to "X", else set to "-".
OUTPUT: "StatusReturn" with results "Okay" or "Failed", additional check of complete EOL progress status. The expected EOL result
will be preset with the expected values and modified with the "Kill x" to force the change from "Okay" to "Failed".
+COMMENT: NCrunch needs programming parameters in a specific folder
+ "[SolutionPath]\Hardware\WaterMeter\Genesis\MockGenesis\MockRawParameterExamples" as it copies all assemblies to a
+ special NCrunch working folder which is total separated from the project specific "\bin\Debug" folder!
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckFinalParametrization'
- And Name the public function to be checked for functionality 'ExecuteProcess'
- And Name the object type holding the property 'StatusReturn'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckFinalParametrization'
+And Name the public function to be checked for functionality 'ExecuteProcess'
+And Name the object type holding the property 'StatusReturn'
- # Name one production process to be checked in advance to the real test. This can be done more than once to fill a list with
- # all required preceding production processes to check an entire sequence of processes.
- And Define production process for sequencing before test 'ExecFinalParametrization'
- And Define production process for sequencing before test 'ExecStoreConfiguration'
- And Define production process for sequencing before test 'ExecRebootCordonel'
+# Name one production process to be checked in advance to the real test. This can be done more than once to fill a list with
+# all required preceding production processes to check an entire sequence of processes.
+And Define production process for sequencing before test 'ExecFinalParametrization'
+And Define production process for sequencing before test 'ExecStoreConfiguration'
+And Define production process for sequencing before test 'ExecRebootCordonel'
- # Activate the entire equality EOL progress check between requirement and result
- And Activate EOL progress check
-
- ##--------------------------------- Define Test-Cases ------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # "Kill x" forces the test to fail to check if all tests are executed. REMIND: Set only ONE to "X" and leave all others as "-"! Otherwise the test will FAIL!
- | TestNo | Cordonel PcbId | Cordonel FW Version | Cordonel Meter Size | Kill WriteParams | Kill StoreParams | Kill Reboot | Kill VerifyParams | Kill Registers | StatusReturn | Comment |
- | 1 | 182100041 | R1.3.0B | DN50 | - | - | - | - | - | Okay | Sequence successfully executed for EMEA DN50 |
- | 2 | 212120036 | R1.3.0B | DN80 | - | - | - | - | - | Okay | Sequence successfully executed for EMEA DN80 |
- | 3 | 241630065 | R2.0.06 | US2 | - | - | - | - | - | Okay | Sequence successfully executed for NA US2 (2") |
- | 4 | 182100041 | R1.3.0B | DN00 | - | - | - | - | - | Failed | Parameter file for EMEA DN00 missing CSD Params |
- | 5 | 182100041 | R1.3.0B | DN01 | - | - | - | - | - | Failed | Parameter file for EMEA DN01 not present |
- | 6 | 182100041 | R1.3.0B | DN50 | X | - | - | - | - | Failed | Parameter write failed |
- | 7 | 182100041 | R1.3.0B | DN50 | - | X | - | - | - | Failed | Store configuration failed |
- | 8 | 182100041 | R1.3.0B | DN50 | - | - | X | - | - | Failed | Reboot failed |
- | 9 | 182100041 | R1.3.0B | DN50 | - | - | - | X | - | Failed | Parameter verify failed |
- | 10 | 182100041 | R1.3.0B | DN50 | - | - | - | - | X | Failed | Registers not loaded: invalid configuration.json |
+# Activate the entire equality EOL progress check between requirement and result
+And Activate EOL progress check
- When Execute the generic tests
- Then Check the generic test results
+##--------------------------------- Define Test-Cases ------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# "Kill x" forces the test to fail to check if all tests are executed. REMIND: Set only ONE to "X" and leave all others as "-"! Otherwise the test will FAIL!
+| TestNo | Cordonel PcbId | Cordonel FW Version | Cordonel Meter Size | Kill WriteParams | Kill StoreParams | Kill Reboot | Kill VerifyParams | Kill Registers | StatusReturn | Comment |
+| 1 | 182100041 | R1.3.0B | DN50 | - | - | - | - | - | Okay | Sequence successfully executed for EMEA DN50 |
+| 2 | 212120036 | R1.3.0B | DN80 | - | - | - | - | - | Okay | Sequence successfully executed for EMEA DN80 |
+| 3 | 241630065 | R2.0.06 | US2 | - | - | - | - | - | Okay | Sequence successfully executed for NA US2 (2") |
+| 4 | 182100041 | R1.3.0B | DN00 | - | - | - | - | - | Failed | Parameter file for EMEA DN00 missing CSD Params |
+| 5 | 182100041 | R1.3.0B | DN01 | - | - | - | - | - | Failed | Parameter file for EMEA DN01 not present |
+| 6 | 182100041 | R1.3.0B | DN50 | X | - | - | - | - | Failed | Parameter write failed |
+| 7 | 182100041 | R1.3.0B | DN50 | - | X | - | - | - | Failed | Store configuration failed |
+| 8 | 182100041 | R1.3.0B | DN50 | - | - | X | - | - | Failed | Reboot failed |
+| 9 | 182100041 | R1.3.0B | DN50 | - | - | - | X | - | Failed | Parameter verify failed |
+| 10 | 182100041 | R1.3.0B | DN50 | - | - | - | - | X | Failed | Registers not loaded: invalid configuration.json |
+
+When Execute the generic tests
+Then Check the generic test results
# ===============================================================================================================================
diff --git a/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature.cs b/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature.cs
index a627a4f6..de8c97e8 100644
--- a/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature.cs
+++ b/Common/Production/ProductionUiCordonel.UnitTests/Features/FinalParamSequence_Write_Store_Reboot_Verify.feature.cs
@@ -110,7 +110,10 @@ DN80 and the US2.", ProgrammingLanguage.CSharp, ((string[])(null)));
"Return\" with results \"Okay\" or \"Failed\", additional check of complete EOL progre" +
"ss status. The expected EOL result \r\n will be preset with the expected " +
"values and modified with the \"Kill x\" to force the change from \"Okay\" to \"Failed" +
- "\". ", tagsOfScenario, argumentsOfScenario);
+ "\". \r\nCOMMENT: NCrunch needs programming parameters in a specific folder \r\n " +
+ " \"[SolutionPath]\\Hardware\\WaterMeter\\Genesis\\MockGenesis\\MockRawParameterExa" +
+ "mples\" as it copies all assemblies to a \r\n special NCrunch working fold" +
+ "er which is total separated from the project specific \"\\bin\\Debug\" folder!", tagsOfScenario, argumentsOfScenario);
#line 11
this.ScenarioInitialize(scenarioInfo);
#line hidden
@@ -131,26 +134,26 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 34
- testRunner.Given("Initialize new test scenario for production process \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line 37
+testRunner.Given("Initialize new test scenario for production process \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
-#line 35
- testRunner.And("Name the public function to be checked for functionality \'ExecuteProcess\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 38
+testRunner.And("Name the public function to be checked for functionality \'ExecuteProcess\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 36
- testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 39
+testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 40
- testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 43
+testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 41
- testRunner.And("Define production process for sequencing before test \'ExecStoreConfiguration\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
-#line 42
- testRunner.And("Define production process for sequencing before test \'ExecRebootCordonel\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 44
+testRunner.And("Define production process for sequencing before test \'ExecStoreConfiguration\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 45
- testRunner.And("Activate EOL progress check", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Define production process for sequencing before test \'ExecRebootCordonel\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 48
+testRunner.And("Activate EOL progress check", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -284,14 +287,14 @@ this.ScenarioInitialize(scenarioInfo);
"X",
"Failed",
"Registers not loaded: invalid configuration.json"});
-#line 48
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table1, "And ");
+#line 51
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table1, "And ");
#line hidden
-#line 62
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 65
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
-#line 63
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line 66
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
diff --git a/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature b/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature
index 9f87a693..ca7fb7b6 100644
--- a/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature
+++ b/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature
@@ -16,24 +16,25 @@ INPUTS: The values needed to be predefined automatically by the "Sentinel" on
"Partial Compare" "X" will be used to check if the string contains a substring defined in the "StringReturn".
"Partial Compare" "-" will force the string being exact as defined!
OUTPUT: "StringReturn" as test result containing the expected string or "null" as error result from the method.
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the property to be checked for 'EOLSoftwareNameAndVersion'
- And Name the object type holding the property 'StringReturn'
- And Name the private function to be checked for functionality 'CheckEolProgress'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the property to be checked for 'EOLSoftwareNameAndVersion'
+And Name the object type holding the property 'StringReturn'
+And Name the private function to be checked for functionality 'CheckEolProgress'
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId | Partial Compare | StringReturn | Comment |
- | 1 | 123 | UTC Now | 182100041 | 182100041 | X | Cordonel | EOL Progress successfully created |
- | 2 | 123 | UTC Now | 0 | 182100041 | - | null | Unmatching Cordonel PcbId |
- | 3 | 123 | UTC Now | 182100041 | 0 | - | null | Unmatching EOL PcbId |
- | 4 | 123 | unknown | 182100041 | 182100041 | - | null | Start date not set |
- | 5 | 0 | UTC Now | 182100041 | 182100041 | X | null | EOL Id not set |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId | Partial Compare | StringReturn | Comment |
+| 1 | 123 | UTC Now | 182100041 | 182100041 | X | Cordonel | EOL Progress successfully created |
+| 2 | 123 | UTC Now | 0 | 182100041 | - | null | Unmatching Cordonel PcbId |
+| 3 | 123 | UTC Now | 182100041 | 0 | - | null | Unmatching EOL PcbId |
+| 4 | 123 | unknown | 182100041 | 182100041 | - | null | Start date not set |
+| 5 | 0 | UTC Now | 182100041 | 182100041 | X | null | EOL Id not set |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
+
@CheckProductionProperties
Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_002]_Check_Requirements
FUNCTION: Check if any requirement is defined being active for this Cordonel.
@@ -45,56 +46,56 @@ INPUTS: Requirements "Standard Id" just a number or "null",
"Special Version" just a number or "null" and
"Special IsActive" if "X" else "-".
OUTPUT: "EOL Status" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the property to be checked for 'RequirementRequestChecked'
- And Name the object type holding the property 'EOLStatus'
- And Name the private function to be checked for functionality 'CheckRequirements'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the property to be checked for 'RequirementRequestChecked'
+And Name the object type holding the property 'EOLStatus'
+And Name the private function to be checked for functionality 'CheckRequirements'
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Standard Id | Standard Version | Standard IsActive | Standard IsApproved | Special Id | Special Version | Special IsActive | Special IsApproved | EOL Status | Comment |
- | 1 | 10 | 5 | X | X | null | null | - | - | Okay | Standard Requirement is active and approved |
- | 2 | 10 | 5 | X | X | 5 | 3 | X | - | Okay | Standard Requirement is active and approved, special is active but not approved |
- | 3 | 10 | 5 | - | - | 5 | 3 | X | X | Okay | Special Requirement is active and approved |
- | 4 | 10 | 5 | X | X | 5 | 3 | X | X | Okay | Both Requirements are active and approved |
- | 5 | 10 | 5 | - | - | 5 | 3 | - | - | Failed | No Requirement is active and no requirement approved |
- | 6 | 10 | 5 | X | - | 5 | 3 | - | - | Failed | Standard Requirement is active but not approved |
- | 7 | 10 | 5 | - | - | 5 | 3 | X | - | Failed | Special Requirement is active but not approved |
- | 8 | null | null | - | - | null | null | - | - | Failed | No Requirement is defined |
- | 9 | null | null | - | - | 5 | 3 | X | X | Failed | Missing Standard Requirement |
- | 10 | null | null | X | X | null | null | - | - | Failed | Standard Requirement is active but undefined |
- | 11 | null | 5 | X | X | null | null | - | - | Failed | Standard Requirement is active but Id missing |
- | 12 | 10 | null | X | X | null | null | - | - | Failed | Standard Requirement is active but version missing |
- | 13 | 10 | 5 | X | X | null | 2 | X | X | Failed | Special Requirement is active but Id missing |
- | 14 | 10 | 5 | X | X | 5 | null | X | X | Failed | Special Requirement is active but version missing |
-
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Standard Id | Standard Version | Standard IsActive | Standard IsApproved | Special Id | Special Version | Special IsActive | Special IsApproved | EOL Status | Comment |
+| 1 | 10 | 5 | X | X | null | null | - | - | Okay | Standard Requirement is active and approved |
+| 2 | 10 | 5 | X | X | 5 | 3 | X | - | Okay | Standard Requirement is active and approved, special is active but not approved |
+| 3 | 10 | 5 | - | - | 5 | 3 | X | X | Okay | Special Requirement is active and approved |
+| 4 | 10 | 5 | X | X | 5 | 3 | X | X | Okay | Both Requirements are active and approved |
+| 5 | 10 | 5 | - | - | 5 | 3 | - | - | Failed | No Requirement is active and no requirement approved |
+| 6 | 10 | 5 | X | - | 5 | 3 | - | - | Failed | Standard Requirement is active but not approved |
+| 7 | 10 | 5 | - | - | 5 | 3 | X | - | Failed | Special Requirement is active but not approved |
+| 8 | null | null | - | - | null | null | - | - | Failed | No Requirement is defined |
+| 9 | null | null | - | - | 5 | 3 | X | X | Failed | Missing Standard Requirement |
+| 10 | null | null | X | X | null | null | - | - | Failed | Standard Requirement is active but undefined |
+| 11 | null | 5 | X | X | null | null | - | - | Failed | Standard Requirement is active but Id missing |
+| 12 | 10 | null | X | X | null | null | - | - | Failed | Standard Requirement is active but version missing |
+| 13 | 10 | 5 | X | X | null | 2 | X | X | Failed | Special Requirement is active but Id missing |
+| 14 | 10 | 5 | X | X | 5 | null | X | X | Failed | Special Requirement is active but version missing |
+
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
-@CheckProductionPrperties
+@CheckProductionProperties
Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_003]_Check_ProductionOrderNo
FUNCTION: Compare the Cordonel production-order with the production-order from the requirement to validate that the correct requirements
going to be used for the check of the actual production state.
PRESETS: none
INPUTS: "Cordonel ProdOrderNo" and "Requirement ProdOrderNo"
OUTPUT: "EOL Status" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckProductionOrderNumber'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'RequirementOrderChecked'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Cordonel ProdOrderNo | Requirement ProdOrderNo | EOL Status | Comment |
- | 1 | 3118323 | 3118323 | Okay | Order number is identical |
- | 2 | 3118323 | 0 | Failed | Unmatching Requirement Order number |
- | 3 | 0 | 3118323 | Failed | Unmatching Cordonel Order number |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckProductionOrderNumber'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'RequirementOrderChecked'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Cordonel ProdOrderNo | Requirement ProdOrderNo | EOL Status | Comment |
+| 1 | 3118323 | 3118323 | Okay | Order number is identical |
+| 2 | 3118323 | 0 | Failed | Unmatching Requirement Order number |
+| 3 | 0 | 3118323 | Failed | Unmatching Cordonel Order number |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@@ -105,25 +106,25 @@ PRESETS: none
INPUTS: "Cordonel PcbId", EOL PcbId and "Requirement PcbId". If the requirement-PcbId id is "null" then the requirement is order based
and not just for a single Cordonel!
OUTPUT: "EOL Status" with results "Okay", "Failed" or "Skipped"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckPcbId'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'RequirementPcbIdChecked'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckPcbId'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'RequirementPcbIdChecked'
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # An order based requirement needs a "null" for "Requirement PcbId"
- | TestNo | Cordonel PcbId | EOL PcbId | Requirement PcbId | EOL Status | Comment |
- | 1 | 182100041 | 182100041 | null | Skipped | Order based requirement |
- | 2 | 182100041 | 182100041 | 182100041 | Okay | PcbId is identical |
- | 3 | 182100041 | 0 | 182100041 | Failed | Unmatching EOL Progress PcbId |
- | 4 | 182100041 | 182100041 | 0 | Failed | Unmatching Requirement PcbId |
- | 5 | 0 | 182100041 | 182100041 | Failed | Unmatching Cordonel PcbId |
- | 6 | 1821000 | 182100041 | 182100041 | Failed | Cordonel PcbId to short |
- | 7 | null | 182100041 | 182100041 | Failed | Cordonel PcbId is null |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# An order based requirement needs a "null" for "Requirement PcbId"
+| TestNo | Cordonel PcbId | EOL PcbId | Requirement PcbId | EOL Status | Comment |
+| 1 | 182100041 | 182100041 | null | Skipped | Order based requirement |
+| 2 | 182100041 | 182100041 | 182100041 | Okay | PcbId is identical |
+| 3 | 182100041 | 0 | 182100041 | Failed | Unmatching EOL Progress PcbId |
+| 4 | 182100041 | 182100041 | 0 | Failed | Unmatching Requirement PcbId |
+| 5 | 0 | 182100041 | 182100041 | Failed | Unmatching Cordonel PcbId |
+| 6 | 1821000 | 182100041 | 182100041 | Failed | Cordonel PcbId to short |
+| 7 | null | 182100041 | 182100041 | Failed | Cordonel PcbId is null |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@@ -133,23 +134,23 @@ FUNCTION: Compare the Region from Cordonel and requirement.
PRESETS: none
INPUTS: "Cordonel Region" and "Requirement Region".
OUTPUT: "EOL Status" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckRegion'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'RequirementRegionChecked'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckRegion'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'RequirementRegionChecked'
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Cordonel Region | Requirement Region | EOL Status | Comment |
- | 1 | EMEA | EMEA | Okay | Region is identical |
- | 2 | NA | NA | Okay | Region is identical |
- | 3 | EMEA | NA | Failed | Unmatched Region |
- | 4 | null | EMEA | Failed | Unknown Cordonel Region |
- | 5 | EMEA | null | Failed | Unknown Requirement Region |
- | 6 | null | null | Failed | Unspecified Region |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Cordonel Region | Requirement Region | EOL Status | Comment |
+| 1 | EMEA | EMEA | Okay | Region is identical |
+| 2 | NA | NA | Okay | Region is identical |
+| 3 | EMEA | NA | Failed | Unmatched Region |
+| 4 | null | EMEA | Failed | Unknown Cordonel Region |
+| 5 | EMEA | null | Failed | Unknown Requirement Region |
+| 6 | null | null | Failed | Unspecified Region |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@@ -159,24 +160,24 @@ FUNCTION: Check for the checksum (cyclic redundancy check - CRC) of the metrolog
PRESETS: none
INPUTS: "Cordonel LUT CRC" and "Requirement LUT CRC" just a string representing a number in hex e.g. "0xEB7C.
OUTPUT: "StringReturn" as test result containing the expected string or "null" as error result from the method.
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckLutCrc'
- And Name the object type holding the property 'StringReturn'
- And Name the property to be checked for 'ProductionStatusLutCrc'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckLutCrc'
+And Name the object type holding the property 'StringReturn'
+And Name the property to be checked for 'ProductionStatusLutCrc'
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # "StringReturn" "null" is the error return from the functions based on strings as return value!
- | TestNo | Cordonel LUT CRC | Requirement LUT CRC | StringReturn | Comment |
- | 1 | 0xEB7C | 0xEB7C | 0xEB7C | LUT CRC is identical |
- | 2 | 0x0000 | 0xEB7C | null | Wrong Cordonel LUT CRC |
- | 3 | 0xEB7C | 0x0000 | null | Wrong Requirement LUT CRC |
- | 4 | null | 0xEB7C | null | Cordonel LUT CRC undefined |
- | 5 | 0xEB7C | null | null | Requirement LUT CRC undefined |
- | 6 | null | null | null | LUT CRC's undefined |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# "StringReturn" "null" is the error return from the functions based on strings as return value!
+| TestNo | Cordonel LUT CRC | Requirement LUT CRC | StringReturn | Comment |
+| 1 | 0xEB7C | 0xEB7C | 0xEB7C | LUT CRC is identical |
+| 2 | 0x0000 | 0xEB7C | null | Wrong Cordonel LUT CRC |
+| 3 | 0xEB7C | 0x0000 | null | Wrong Requirement LUT CRC |
+| 4 | null | 0xEB7C | null | Cordonel LUT CRC undefined |
+| 5 | 0xEB7C | null | null | Requirement LUT CRC undefined |
+| 6 | null | null | null | LUT CRC's undefined |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@@ -186,24 +187,24 @@ FUNCTION: Compare the Meter Size from Cordonel and requirement.
PRESETS: none
INPUTS: "Cordonel Meter Size" and "Requirement Meter Size" as strings naming the size as e.g. "DN50", "US1_5" or "1 1/2 INC".
OUTPUT: "StringReturn" as test result containing the expected string or "null" as error result from the method.
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckMeterSize'
- And Name the object type holding the property 'StringReturn'
- And Name the property to be checked for 'ProductionStatusMeterSize'
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckMeterSize'
+And Name the object type holding the property 'StringReturn'
+And Name the property to be checked for 'ProductionStatusMeterSize'
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # "StringReturn" "null" is the error return from the functions based on strings as return value!
- | TestNo | Cordonel Meter Size | Requirement Meter Size | StringReturn | Comment |
- | 1 | DN50 | DN50 | DN50 | Meter size is identical |
- | 2 | US1_5 | 1 1/2 INC | 1 1/2 INC | Meter size is identical but uses different naming |
- | 3 | DN80 | 1 1/2 INC | null | Wrong Requirement Meter size |
- | 4 | null | DN50 | null | Cordonel Meter size undefined |
- | 5 | DN50 | null | null | Requirement Meter size undefined |
- | 6 | null | null | null | Meter sizes undefined |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# "StringReturn" "null" is the error return from the functions based on strings as return value!
+| TestNo | Cordonel Meter Size | Requirement Meter Size | StringReturn | Comment |
+| 1 | DN50 | DN50 | DN50 | Meter size is identical |
+| 2 | US1_5 | 1 1/2 INC | 1 1/2 INC | Meter size is identical but uses different naming |
+| 3 | DN80 | 1 1/2 INC | null | Wrong Requirement Meter size |
+| 4 | null | DN50 | null | Cordonel Meter size undefined |
+| 5 | DN50 | null | null | Requirement Meter size undefined |
+| 6 | null | null | null | Meter sizes undefined |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@@ -227,33 +228,62 @@ INPUTS: "Cordonel Core Revision" as float specifying the Breeze operating syst
"Change App CRC" "X" to set it to an invalid CRC else "-".
OUTPUT: "StringReturn" as test result containing the expected string or "null" as error result from the method, else it returns the
valid installed FW version string.
-COMMENT: NCrunch needs FW package in a specific folder "C:\User\[UserName]\AppData\Roaming\Genesis\MockFwExamples" as it copies
- all assemblies to a special NCrunch working folder which is total separated from the project specific "\bin\Debug" folder!
+COMMENT: NCrunch needs programming parameters in a specific folder
+ "[SolutionPath]\Hardware\WaterMeter\Genesis\MockGenesis\MockFwExamples" as it copies all assemblies to a
+ special NCrunch working folder which is total separated from the project specific "\bin\Debug" folder!
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckFwAndApps'
- And Name the object type holding the property 'StringReturn'
- And Name the property to be checked for 'ProductionStatusFwVersion'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # "StringReturn" "null" is the error return from the functions based on strings as return value!
- | TestNo | Cordonel Core Revision | Cordonel FW Version | Requirement FW Version | Modify AppId | Erase App | Change App Version | Change App CRC | StringReturn | Comment |
- | 1 | 1.71 | R1.3.0B | R1.3.0B | null | - | - | - | R1.3.0B | FW Version is identical |
- | 2 | 1.71 | R2.0.06 | R2.0.06 | null | - | - | - | R2.0.06 | FW Version is identical |
- | 3 | 1.60 | R1.3.0B | R1.3.0B | null | - | - | - | null | Core revision is incompatible |
- | 4 | 1.71 | R1.3.0B | R1.2.47 | null | - | - | - | null | Wrong FW version installed |
- | 5 | 1.71 | R1.3.0B | R1.3.0B | 15 | X | - | - | null | Genesis flow is invalid |
- | 6 | 1.71 | R1.3.0B | R1.3.0B | 15 | - | X | - | null | Genesis flow version modified |
- | 7 | 1.71 | R1.3.0B | R1.3.0B | 15 | - | - | X | null | Genesis flow CRC modified |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckFwAndApps'
+And Name the object type holding the property 'StringReturn'
+And Name the property to be checked for 'ProductionStatusFwVersion'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# "StringReturn" "null" is the error return from the functions based on strings as return value!
+| TestNo | Cordonel Core Revision | Cordonel FW Version | Requirement FW Version | Modify AppId | Erase App | Change App Version | Change App CRC | StringReturn | Comment |
+| 1 | 1.71 | R1.3.0B | R1.3.0B | null | - | - | - | R1.3.0B | FW Version is identical |
+| 2 | 1.71 | R2.0.06 | R2.0.06 | null | - | - | - | R2.0.06 | FW Version is identical |
+| 3 | 1.60 | R1.3.0B | R1.3.0B | null | - | - | - | null | Core revision is incompatible |
+| 4 | 1.71 | R1.3.0B | R1.2.47 | null | - | - | - | null | Wrong FW version installed |
+| 5 | 1.71 | R1.3.0B | R1.3.0B | 15 | X | - | - | null | Genesis flow is invalid |
+| 6 | 1.71 | R1.3.0B | R1.3.0B | 15 | - | X | - | null | Genesis flow version modified |
+| 7 | 1.71 | R1.3.0B | R1.3.0B | 15 | - | - | X | null | Genesis flow CRC modified |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
+@CheckKitronRadioSignalLevels
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_009]_Check_Kitron_Radio_Signal_Levels
+FUNCTION: Check if radio signal levels have been defined (contained in parameter list) FOR THIS cORDONEL SIZE AND LENGHT.
+PRESETS: none
+INPUTS: .
+OUTPUT: "StatusReturn" with results "Okay" or "Failed"
+COMMENT: NCrunch needs programming parameters in a specific folder
+ "[SolutionPath]\Hardware\WaterMeter\Genesis\MockGenesis\MockRawParameterExamples" as it copies all assemblies to a
+ special NCrunch working folder which is total separated from the project specific "\bin\Debug" folder!
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckKitronRadioSignalLevels'
+And Name the object type holding the property 'StatusReturn'
+
+# Name one production process to be checked in advance to the real test. This can be done more than once to fill a list with
+# all required preceding production processes to check an entire sequence of processes.
+And Define production process for sequencing before test 'ExecFinalParametrization'
+And Define production process for sequencing before test 'CheckFinalParametrization'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Cordonel Meter Size | StatusReturn | Comment |
+| 1 | DN50 | Okay | Valid Kitron radio calibration values |
+| 2 | DN02 | Failed | Missing Kitron radio calibration values |
+When Execute the generic tests
+Then Check the generic test results
+
+# ================================================================================================================================
@CheckLifetimes
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_009]_Check_Remaining_Battery_Load
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_010]_Check_Remaining_Battery_Load
FUNCTION: Compare the remaining battery load from Cordonel and the requirement.
PRESETS: none
INPUTS: "Normal Current [uA]" multiplied with exceeded lifetime together with "Production Drained [%] for an alternative threshold,
@@ -266,177 +296,177 @@ INPUTS: "Normal Current [uA]" multiplied with exceeded lifetime together with
"Max Drained [%]" Threshold for allowed drainage at EOL in standard check. If alternative threshold is active then this is
the ABSOLUTE LIMIT.
OUTPUT: "EOL Status" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckRemainingBatteryLoad'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'ProductionStatusBatteryLoadChecked'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Normal Current [uA] | Production Supplement [%] | Actual Lifetime [days] | Actual Drained [%] | Max Drained [%] | EOL Status | Comment |
- | 1 | 119.8 | 1.5 | 90 | 2.0 | 5.0 | Okay | Alternative threshold okay |
- | 2 | 119.8 | 1.5 | 90 | 2.5 | 5.0 | Failed | Alternative threshold exceeded |
- | 3 | 119.8 | 1.5 | 180 | 2.5 | 2.0 | Failed | Absolute max drained limit exceeded |
- | 4 | null | null | 90 | 2.0 | 2.0 | Okay | Normal threshold okay |
- | 5 | null | null | 90 | 2.5 | 2.0 | Failed | Normal threshold exceeded |
- | 6 | null | null | 0 | 2.0 | 5.0 | Failed | Lifetime of 0 days error |
- | 7 | null | null | 90 | 0.0 | 5.0 | Failed | Drained load of 0 % error |
- | 8 | null | null | 90 | 2.0 | null | Failed | Max remaining battery load is null |
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckRemainingBatteryLoad'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'ProductionStatusBatteryLoadChecked'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Normal Current [uA] | Production Supplement [%] | Actual Lifetime [days] | Actual Drained [%] | Max Drained [%] | EOL Status | Comment |
+| 1 | 119.8 | 1.5 | 90 | 2.0 | 5.0 | Okay | Alternative threshold okay |
+| 2 | 119.8 | 1.5 | 90 | 2.5 | 5.0 | Failed | Alternative threshold exceeded |
+| 3 | 119.8 | 1.5 | 180 | 2.5 | 2.0 | Failed | Absolute max drained limit exceeded |
+| 4 | null | null | 90 | 2.0 | 2.0 | Okay | Normal threshold okay |
+| 5 | null | null | 90 | 2.5 | 2.0 | Failed | Normal threshold exceeded |
+| 6 | null | null | 0 | 2.0 | 5.0 | Failed | Lifetime of 0 days error |
+| 7 | null | null | 90 | 0.0 | 5.0 | Failed | Drained load of 0 % error |
+| 8 | null | null | 90 | 2.0 | null | Failed | Max remaining battery load is null |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@CheckLifetimes
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_010]_Check_Remaining_Lifetime
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_011]_Check_Remaining_Lifetime
FUNCTION: Compare the remaining life time reported by the Cordonel and the requirement.
PRESETS: none
INPUTS: "Actual Lifetime [days]" is the time in days the Cordonel after Kitron production,
"Actual Drained [%]" is used to calculate the drained load to forecast the remaining lifetime,
"Required Lifetime [years]" Threshold for remaining lifetime.
OUTPUT: "EOL Status" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckRemainingLifetime'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'ProductionStatusRemainingLifeTimeChecked'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Actual Lifetime [days] | Required Lifetime [years] | Actual Drained [%] | EOL Status | Comment |
- | 1 | 90 | 20.0 | 1.0 | Okay | Remaining lifetime as required |
- | 2 | 365 | 5.0 | 10.0 | Okay | Remaining lifetime as required |
- | 3 | 90 | 20.0 | 2.0 | Failed | Remaining lifetime to short |
- | 4 | 0 | 20.0 | 1.0 | Failed | Actual lifetime of 0 days error |
- | 5 | 90 | 20.0 | 0.0 | Failed | Actual drained load of 0 % error |
- | 6 | 90 | null | 1.0 | Failed | Required lifetime is null |
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckRemainingLifetime'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'ProductionStatusRemainingLifeTimeChecked'
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Actual Lifetime [days] | Required Lifetime [years] | Actual Drained [%] | EOL Status | Comment |
+| 1 | 90 | 20.0 | 1.0 | Okay | Remaining lifetime as required |
+| 2 | 365 | 5.0 | 10.0 | Okay | Remaining lifetime as required |
+| 3 | 90 | 20.0 | 2.0 | Failed | Remaining lifetime to short |
+| 4 | 0 | 20.0 | 1.0 | Failed | Actual lifetime of 0 days error |
+| 5 | 90 | 20.0 | 0.0 | Failed | Actual drained load of 0 % error |
+| 6 | 90 | null | 1.0 | Failed | Required lifetime is null |
+
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
-@CheckLifetimes
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_011]_Check_Storage_Months
+@CheckLifetimeS
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_012]_Check_Storage_Months
FUNCTION: Compare the production date reported by the Cordonel with the actual date and check the requirement.
PRESETS: none
INPUTS: "Assembly Months before Now" as zero or negative floating point number or invalid if set to "null".
"Max Storage Months" floating point number of months allowed until production has to be finalized.
-OUTPUT: "StatusReturn" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckStorageMonths'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'MaxStorageMonthsChecked'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Assembly Months before Now | Max Storage Months | EOL Status | Comment |
- | 1 | -3.0 | 3.0 | Okay | Storage months in range |
- | 2 | -3.0 | 2.0 | Failed | Exceeded maximal allowed storage time |
- | 3 | null | 2.0 | Failed | Error assembly months are null |
- | 4 | -3.0 | null | Failed | Error max storage months are null |
- | 5 | 3.0 | 3.0 | Failed | Error assembly time lies in the future |
- | 6 | -3.0 | -3.0 | Failed | Error storage months is negative |
-
- When Execute the generic tests
- Then Check the generic test results
+OUTPUT: "EOL Status" with results "Okay" or "Failed"
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckStorageMonths'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'MaxStorageMonthsChecked'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Assembly Months before Now | Max Storage Months | EOL Status | Comment |
+| 1 | -3.0 | 3.0 | Okay | Storage months in range |
+| 2 | -3.0 | 2.0 | Failed | Exceeded maximal allowed storage time |
+| 3 | null | 2.0 | Failed | Error assembly months are null |
+| 4 | -3.0 | null | Failed | Error max storage months are null |
+| 5 | 3.0 | 3.0 | Failed | Error assembly time lies in the future |
+| 6 | -3.0 | -3.0 | Failed | Error storage months is negative |
+When Execute the generic tests
+Then Check the generic test results
+
# ================================================================================================================================
@CheckCalibrations
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_012]_Check_Preadjustment
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_013]_Check_Preadjustment
FUNCTION: Check the database content reporting a flow-test preadjustment.
PRESETS: none
INPUTS: "Test Bench Fields" the array of test bench fields
"Test Bench State[4]" the field containing a number if preadjustment successfully executed, null if not.
"Skip Calib" to skip all calibration related checks
OUTPUT: "EOL Status" with results "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckPreadjustment'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'ProductionStatusZeroFlowChecked'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Test Bench Fields | Test Bench State[4] | Skip Calib | EOL Status | Comment |
- | 1 | 5 | 21 | X | Skipped | Skipped calibration checks by requirement |
- | 2 | 5 | 21 | - | Okay | Test bench preadjustment succeeded |
- | 3 | 5 | 0 | - | Okay | Test bench preadjustment succeeded |
- | 4 | 5 | 500 | - | Okay | Test bench preadjustment succeeded |
- | 5 | 4 | 21 | - | Failed | Error test bench fields too little |
- | 6 | 5 | null | - | Failed | Error test bench status[4] is null |
- | 7 | null | 21 | - | Failed | Error test bench fields null |
-
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckPreadjustment'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'ProductionStatusZeroFlowChecked'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Test Bench Fields | Test Bench State[4] | Skip Calib | EOL Status | Comment |
+| 1 | 5 | 21 | X | Skipped | Skipped calibration checks by requirement |
+| 2 | 5 | 21 | - | Okay | Test bench preadjustment succeeded |
+| 3 | 5 | 0 | - | Okay | Test bench preadjustment succeeded |
+| 4 | 5 | 500 | - | Okay | Test bench preadjustment succeeded |
+| 5 | 4 | 21 | - | Failed | Error test bench fields too little |
+| 6 | 5 | null | - | Failed | Error test bench status[4] is null |
+| 7 | null | 21 | - | Failed | Error test bench fields null |
+
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@CheckCalibrations
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_013]_Check_Flow_Test_State
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_014]_Check_Flow_Test_State
FUNCTION: Check the database content reporting the flow-test state.
PRESETS: none
INPUTS: "Test Bench Fields" the array of test bench fields
"Test Bench State[5]" the field containing a number of 30 if calibration succeeded
"Skip Calib" to skip all calibration related checks if set to "X" else "-".
OUTPUT: "EOL Status" with results "Skipped", "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckFlowTestState'
- And Name the object type holding the property 'EOLStatus'
- And Name the property to be checked for 'ProductionStatusCalibrationChecked'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- | TestNo | Test Bench Fields | Test Bench State[5] | Skip Calib | EOL Status | Comment |
- | 1 | 6 | 30 | X | Skipped | Skipped calibration checks by requirement |
- | 2 | 6 | 30 | - | Okay | Test bench calibration succeeded |
- | 3 | 6 | 30 | - | Okay | Test bench calibration succeeded |
- | 4 | 5 | 30 | - | Failed | Error test bench fields too little |
- | 5 | 6 | 29 | - | Failed | Error test bench status[5] number to small |
- | 6 | 6 | 31 | - | Failed | Error test bench status[5] number to large |
- | 7 | 6 | null | - | Failed | Error test bench status[5] is null |
- | 8 | null | 30 | - | Failed | Error test bench fields null |
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckFlowTestState'
+And Name the object type holding the property 'EOLStatus'
+And Name the property to be checked for 'ProductionStatusCalibrationChecked'
- When Execute the generic tests
- Then Check the generic test results
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+| TestNo | Test Bench Fields | Test Bench State[5] | Skip Calib | EOL Status | Comment |
+| 1 | 6 | 30 | X | Skipped | Skipped calibration checks by requirement |
+| 2 | 6 | 30 | - | Okay | Test bench calibration succeeded |
+| 3 | 6 | 30 | - | Okay | Test bench calibration succeeded |
+| 4 | 5 | 30 | - | Failed | Error test bench fields too little |
+| 5 | 6 | 29 | - | Failed | Error test bench status[5] number to small |
+| 6 | 6 | 31 | - | Failed | Error test bench status[5] number to large |
+| 7 | 6 | null | - | Failed | Error test bench status[5] is null |
+| 8 | null | 30 | - | Failed | Error test bench fields null |
+
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
@CheckCalibrations
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_014]_Check_Calib_Factors
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_015]_Check_Calib_Factors
FUNCTION: Compare the calibration values reported by the Cordonel with the flow-test calibration values reported by the database.
PRESETS: All calibration values not covered by this test in valid range.
INPUTS: "Meter Calib Fact 1/2/3" Meter calibration factors 1, 2 and 3 stored in and read out from the Cordonel,
"DB Calib Fact 1/2/3" Required calibration factors 1, 2 and 3 reported by the database.
"Skip Calib" to skip all calibration related checks if set to "X" else "-".
OUTPUT: "StatusReturn" with results "Skipped", "Okay" or "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the private function to be checked for functionality 'CheckCalibrationValues'
- And Name the object type holding the property 'StatusReturn'
-
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # REMIND: The highest priority has the equality of the calibration factors between Meter and database. If those
- # don't match, the check of valid range and set to default values doesn't come in focus!
- | TestNo | Meter Calib Fact 1 | Meter Calib Fact 2 | Meter Calib Fact 3 | DB Calib Fact 1 | DB Calib Fact 2 | DB Calib Fact 3 | Skip Calib | StatusReturn | Comment |
- | 1 | 10000 | 20000 | 30000 | 10000 | 20000 | 30000 | X | Skipped | Skipped calib checks per requirement |
- | 2 | 10000 | 20000 | 30000 | 10000 | 20000 | 30000 | - | Okay | Valid calib factors |
- | 3 | 15625 | 20000 | 30000 | 15625 | 20000 | 30000 | - | Okay | Valid calib factors (1 default) |
- | 4 | 15625 | 15625 | 30000 | 15625 | 15625 | 30000 | - | Okay | Valid calib factors (2 defaults) |
- | 5 | 15625 | 15625 | 15625 | 15625 | 15625 | 15625 | - | Warning | Invalid Meter calib factors (3 defaults) |
- | 6 | 10000 | 20000 | 30000 | 10000 | 44444 | 30000 | - | Failed | Inconsistent calib factors DB to Meter |
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the private function to be checked for functionality 'CheckCalibrationValues'
+And Name the object type holding the property 'StatusReturn'
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# REMIND: The highest priority has the equality of the calibration factors between Meter and database. If those
+# don't match, the check of valid range and set to default values doesn't come in focus!
+| TestNo | Meter Calib Fact 1 | Meter Calib Fact 2 | Meter Calib Fact 3 | DB Calib Fact 1 | DB Calib Fact 2 | DB Calib Fact 3 | Skip Calib | StatusReturn | Comment |
+| 1 | 10000 | 20000 | 30000 | 10000 | 20000 | 30000 | X | Skipped | Skipped calib checks per requirement |
+| 2 | 10000 | 20000 | 30000 | 10000 | 20000 | 30000 | - | Okay | Valid calib factors |
+| 3 | 15625 | 20000 | 30000 | 15625 | 20000 | 30000 | - | Okay | Valid calib factors (1 default) |
+| 4 | 15625 | 15625 | 30000 | 15625 | 15625 | 30000 | - | Okay | Valid calib factors (2 defaults) |
+| 5 | 15625 | 15625 | 15625 | 15625 | 15625 | 15625 | - | Warning | Invalid Meter calib factors (3 defaults) |
+| 6 | 10000 | 20000 | 30000 | 10000 | 44444 | 30000 | - | Failed | Inconsistent calib factors DB to Meter |
+
+When Execute the generic tests
+Then Check the generic test results
- When Execute the generic tests
- Then Check the generic test results
-
# ================================================================================================================================
@CheckProductionStateProcess
-Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_015]_Check_Complete_Flow_Production_State
+Scenario: [SRS_TBF_EOL_PP_CHECK_PROD_STATE_016]_Check_Complete_Flow_Production_State
FUNCTION: Check the entire production process sequence except the database calls with all underlaying sub-processes.
PRESETS: Preset all values with valid parameters to pass the test as "Okay" needed to successfully pass all underlaying tests:
- EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId
@@ -458,100 +488,100 @@ INPUTS: "Kill x" forces the test to fail to check if all tests are executed. R
OUTPUT: "StatusReturn" with results "Okay" or "Failed",
additional check of complete EOL progress status. The expected EOL result will be set with the preset values and
modified with the "Kill x" from "Okay" to "Failed"
- #--------------------------------- Prepare Tests ----------------------------------------------------------------------------
- Given Initialize new test scenario for production process 'CheckProductionState'
- And Name the public function to be checked for functionality 'ExecuteProcess'
- And Name the object type holding the property 'StatusReturn'
-
- # Activate the entire equality EOL progress check between requirement and result
- And Activate EOL progress check
-
- # Name one production process to be checked in advance to the real test. This can be done more than once to fill a list with
- # all required preceding production processes to check an entire sequence of processes.
- And Define production process for sequencing before test 'ExecFinalParametrization'
- And Define production process for sequencing before test 'CheckFinalParametrization'
-
- # The input initializations don't have a "TestNo" nor a result (EOLStatus, StringReturn or StatusReturn) as those are commonly used for
- # all tests specified in "Input matrix defining the test cases and results". All these inputs have a setup to pass the overall test with
- # positive feedback (all are good).
- And Input initializations for the test matrix and presets to pass the preceding tests
- | EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId | Comment |
- | 123 | UTC Now | 182100041 | 182100041 | EOL Progress successfully created |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Standard Id | Standard Version | Standard IsActive | Standard IsApproved | Special Id | Special Version | Comment |
- | 10 | 5 | X | X | null | null | Standard Requirement is active and approved |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Cordonel ProdOrderNo | Requirement ProdOrderNo | Comment |
- | 3118323 | 3118323 | Order number is identical |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Cordonel PcbId | EOL PcbId | Requirement PcbId | Comment |
- | 182100041 | 182100041 | 182100041 | PcbId is identical |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Cordonel Region | Requirement Region | Comment |
- | EMEA | EMEA | Region is identical |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Cordonel LUT CRC | Requirement LUT CRC | Comment |
- | 0xEB7C | 0xEB7C | LUT CRC is identical |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Cordonel Meter Size | Requirement Meter Size | Comment |
- | DN50 | DN50 | Meter size is identical |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Cordonel Core Revision | Cordonel FW Version | Requirement FW Version | Comment |
- | 1.71 | R1.3.0B | R1.3.0B | FW Version is identical |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Max Drained [%] | Comment |
- | 2.0 | Normal threshold okay |
+#--------------------------------- Prepare Tests ----------------------------------------------------------------------------
+Given Initialize new test scenario for production process 'CheckProductionState'
+And Name the public function to be checked for functionality 'ExecuteProcess'
+And Name the object type holding the property 'StatusReturn'
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Actual Lifetime [days] | Required Lifetime [years] | Actual Drained [%] | Comment |
- | 90 | 20.0 | 1.0 | Remaining lifetime as required |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Assembly Months before Now | Max Storage Months | Comment |
- | -3.0 | 3.0 | Storage months in range |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Test Bench Fields | Test Bench State[4] | Comment |
- | 5 | 21 | Test bench preadjustment succeeded |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Test Bench Fields | Test Bench State[5] | Comment |
- | 6 | 30 | Test bench calibration succeeded |
-
- And Input initializations for the test matrix and presets to pass the preceding tests
- | Meter Calib Fact 1 | Meter Calib Fact 2 | Meter Calib Fact 3 | DB Calib Fact 1 | DB Calib Fact 2 | DB Calib Fact 3 | Comment |
- | 10000 | 20000 | 30000 | 10000 | 20000 | 30000 | Valid calib factors |
+# Activate the entire equality EOL progress check between requirement and result
+And Activate EOL progress check
- #--------------------------------- Define Test-Cases -------------------------------------------------------------------------
- And Input matrix defining the test cases and results
- # "Kill x" forces the test to fail to check if all tests are executed. REMIND: Set only ONE to "X" and leave all others as "-"! Otherwise the test will FAIL!
- | TestNo | Kill EOL | Kill Requ | Kill Order | Kill PcbId | Kill Region | Kill LUT | Kill Size | Kill FW | Kill Load | Kill LifeTime | Kill StoreTime | Kill PreAdj | Kill FlowTest | Kill Calib | Kill RadioParam | StatusReturn | Comment |
- | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | Okay | Test sequence complete |
- | 2 | X | - | - | - | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill EOL generation |
- | 3 | - | X | - | - | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill requirement |
- | 4 | - | - | X | - | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill production order check |
- | 5 | - | - | - | X | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill PcbId check |
- | 6 | - | - | - | - | X | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill region check |
- | 7 | - | - | - | - | - | X | - | - | - | - | - | - | - | - | - | Failed | Detected kill LUT check |
- | 8 | - | - | - | - | - | - | X | - | - | - | - | - | - | - | - | Failed | Detected kill meter size check |
- | 9 | - | - | - | - | - | - | - | X | - | - | - | - | - | - | - | Failed | Detected kill FW check |
- | 10 | - | - | - | - | - | - | - | - | X | - | - | - | - | - | - | Failed | Detected kill battery load check |
- | 11 | - | - | - | - | - | - | - | - | - | X | - | - | - | - | - | Failed | Detected kill life time check |
- | 12 | - | - | - | - | - | - | - | - | - | - | X | - | - | - | - | Failed | Detected kill storage time check |
- | 13 | - | - | - | - | - | - | - | - | - | - | - | X | - | - | - | Failed | Detected kill preadjustment check |
- | 14 | - | - | - | - | - | - | - | - | - | - | - | - | X | - | - | Failed | Detected kill flow test check |
- | 15 | - | - | - | - | - | - | - | - | - | - | - | - | - | X | - | Failed | Detected kill calibrations check |
- | 16 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | X | Failed | Detected kill radio parameter |
- When Execute the generic tests
- Then Check the generic test results
+# Name one production process to be checked in advance to the real test. This can be done more than once to fill a list with
+# all required preceding production processes to check an entire sequence of processes.
+And Define production process for sequencing before test 'ExecFinalParametrization'
+And Define production process for sequencing before test 'CheckFinalParametrization'
+
+# The input initializations don't have a "TestNo" nor a result (EOLStatus, StringReturn or StatusReturn) as those are commonly used for
+# all tests specified in "Input matrix defining the test cases and results". All these inputs have a setup to pass the overall test with
+# positive feedback (all are good).
+And Input initializations for the test matrix and presets to pass the preceding tests
+| EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId | Comment |
+| 123 | UTC Now | 182100041 | 182100041 | EOL Progress successfully created |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Standard Id | Standard Version | Standard IsActive | Standard IsApproved | Special Id | Special Version | Comment |
+| 10 | 5 | X | X | null | null | Standard Requirement is active and approved |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Cordonel ProdOrderNo | Requirement ProdOrderNo | Comment |
+| 3118323 | 3118323 | Order number is identical |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Cordonel PcbId | EOL PcbId | Requirement PcbId | Comment |
+| 182100041 | 182100041 | 182100041 | PcbId is identical |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Cordonel Region | Requirement Region | Comment |
+| EMEA | EMEA | Region is identical |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Cordonel LUT CRC | Requirement LUT CRC | Comment |
+| 0xEB7C | 0xEB7C | LUT CRC is identical |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Cordonel Meter Size | Requirement Meter Size | Comment |
+| DN50 | DN50 | Meter size is identical |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Cordonel Core Revision | Cordonel FW Version | Requirement FW Version | Comment |
+| 1.71 | R1.3.0B | R1.3.0B | FW Version is identical |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Max Drained [%] | Comment |
+| 2.0 | Normal threshold okay |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Actual Lifetime [days] | Required Lifetime [years] | Actual Drained [%] | Comment |
+| 90 | 20.0 | 1.0 | Remaining lifetime as required |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Assembly Months before Now | Max Storage Months | Comment |
+| -3.0 | 3.0 | Storage months in range |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Test Bench Fields | Test Bench State[4] | Comment |
+| 5 | 21 | Test bench preadjustment succeeded |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Test Bench Fields | Test Bench State[5] | Comment |
+| 6 | 30 | Test bench calibration succeeded |
+
+And Input initializations for the test matrix and presets to pass the preceding tests
+| Meter Calib Fact 1 | Meter Calib Fact 2 | Meter Calib Fact 3 | DB Calib Fact 1 | DB Calib Fact 2 | DB Calib Fact 3 | Comment |
+| 10000 | 20000 | 30000 | 10000 | 20000 | 30000 | Valid calib factors |
+
+#--------------------------------- Define Test-Cases -------------------------------------------------------------------------
+And Input matrix defining the test cases and results
+# "Kill x" forces the test to fail to check if all tests are executed. REMIND: Set only ONE to "X" and leave all others as "-"! Otherwise the test will FAIL!
+| TestNo | Kill EOL | Kill Requ | Kill Order | Kill PcbId | Kill Region | Kill LUT | Kill Size | Kill FW | Kill Load | Kill LifeTime | Kill StoreTime | Kill PreAdj | Kill FlowTest | Kill Calib | Kill RadioParam | StatusReturn | Comment |
+| 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | Okay | Test sequence complete |
+| 2 | X | - | - | - | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill EOL generation |
+| 3 | - | X | - | - | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill requirement |
+| 4 | - | - | X | - | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill production order check |
+| 5 | - | - | - | X | - | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill PcbId check |
+| 6 | - | - | - | - | X | - | - | - | - | - | - | - | - | - | - | Failed | Detected kill region check |
+| 7 | - | - | - | - | - | X | - | - | - | - | - | - | - | - | - | Failed | Detected kill LUT check |
+| 8 | - | - | - | - | - | - | X | - | - | - | - | - | - | - | - | Failed | Detected kill meter size check |
+| 9 | - | - | - | - | - | - | - | X | - | - | - | - | - | - | - | Failed | Detected kill FW check |
+| 10 | - | - | - | - | - | - | - | - | X | - | - | - | - | - | - | Failed | Detected kill battery load check |
+| 11 | - | - | - | - | - | - | - | - | - | X | - | - | - | - | - | Failed | Detected kill life time check |
+| 12 | - | - | - | - | - | - | - | - | - | - | X | - | - | - | - | Failed | Detected kill storage time check |
+| 13 | - | - | - | - | - | - | - | - | - | - | - | X | - | - | - | Failed | Detected kill preadjustment check |
+| 14 | - | - | - | - | - | - | - | - | - | - | - | - | X | - | - | Failed | Detected kill flow test check |
+| 15 | - | - | - | - | - | - | - | - | - | - | - | - | - | X | - | Failed | Detected kill calibrations check |
+| 16 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | X | Failed | Detected kill radio parameter |
+When Execute the generic tests
+Then Check the generic test results
# ================================================================================================================================
diff --git a/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature.cs b/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature.cs
index 8c818e68..98e275e1 100644
--- a/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature.cs
+++ b/Common/Production/ProductionUiCordonel.UnitTests/Features/ProductionProcessCheckProductionState.feature.cs
@@ -113,16 +113,16 @@ this.ScenarioInitialize(scenarioInfo);
{
this.ScenarioStart();
#line 20
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 21
- testRunner.And("Name the property to be checked for \'EOLSoftwareNameAndVersion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the property to be checked for \'EOLSoftwareNameAndVersion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 22
- testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 23
- testRunner.And("Name the private function to be checked for functionality \'CheckEolProgress\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckEolProgress\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -179,13 +179,13 @@ this.ScenarioInitialize(scenarioInfo);
"null",
"EOL Id not set"});
#line 26
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table2, "And ");
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table2, "And ");
#line hidden
#line 33
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 34
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -208,7 +208,7 @@ INPUTS: Requirements ""Standard Id"" just a number or ""null"",
""Special Version"" just a number or ""null"" and
""Special IsActive"" if ""X"" else ""-"".
OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 38
+#line 39
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -228,17 +228,17 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 49
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
#line 50
- testRunner.And("Name the property to be checked for \'RequirementRequestChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 51
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the property to be checked for \'RequirementRequestChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 52
- testRunner.And("Name the private function to be checked for functionality \'CheckRequirements\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 53
+testRunner.And("Name the private function to be checked for functionality \'CheckRequirements\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -420,14 +420,14 @@ this.ScenarioInitialize(scenarioInfo);
"X",
"Failed",
"Special Requirement is active but version missing"});
-#line 55
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table3, "And ");
-#line hidden
-#line 72
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 56
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table3, "And ");
#line hidden
#line 73
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 74
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -435,18 +435,18 @@ this.ScenarioInitialize(scenarioInfo);
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_003]_Check_ProductionOrderNo")]
- [NUnit.Framework.CategoryAttribute("CheckProductionPrperties")]
+ [NUnit.Framework.CategoryAttribute("CheckProductionProperties")]
public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_003_Check_ProductionOrderNo()
{
string[] tagsOfScenario = new string[] {
- "CheckProductionPrperties"};
+ "CheckProductionProperties"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_003]_Check_ProductionOrderNo", @"FUNCTION: Compare the Cordonel production-order with the production-order from the requirement to validate that the correct requirements
going to be used for the check of the actual production state.
PRESETS: none
INPUTS: ""Cordonel ProdOrderNo"" and ""Requirement ProdOrderNo""
OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 78
+#line 79
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -466,18 +466,18 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 85
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
#line 86
- testRunner.And("Name the private function to be checked for functionality \'CheckProductionOrderNu" +
- "mber\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 87
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckProductionOrderNu" +
+ "mber\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 88
- testRunner.And("Name the property to be checked for \'RequirementOrderChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 89
+testRunner.And("Name the property to be checked for \'RequirementOrderChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -503,14 +503,14 @@ this.ScenarioInitialize(scenarioInfo);
"3118323",
"Failed",
"Unmatching Cordonel Order number"});
-#line 91
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table4, "And ");
-#line hidden
-#line 96
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 92
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table4, "And ");
#line hidden
#line 97
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 98
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -529,7 +529,7 @@ PRESETS: none
INPUTS: ""Cordonel PcbId"", EOL PcbId and ""Requirement PcbId"". If the requirement-PcbId id is ""null"" then the requirement is order based
and not just for a single Cordonel!
OUTPUT: ""EOL Status"" with results ""Okay"", ""Failed"" or ""Skipped""", tagsOfScenario, argumentsOfScenario);
-#line 102
+#line 103
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -549,17 +549,17 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 109
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
#line 110
- testRunner.And("Name the private function to be checked for functionality \'CheckPcbId\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 111
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckPcbId\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 112
- testRunner.And("Name the property to be checked for \'RequirementPcbIdChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 113
+testRunner.And("Name the property to be checked for \'RequirementPcbIdChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -617,14 +617,14 @@ this.ScenarioInitialize(scenarioInfo);
"182100041",
"Failed",
"Cordonel PcbId is null"});
-#line 115
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table5, "And ");
-#line hidden
-#line 125
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 116
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table5, "And ");
#line hidden
#line 126
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 127
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -641,7 +641,7 @@ this.ScenarioInitialize(scenarioInfo);
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_005]_Check_Region", "FUNCTION: Compare the Region from Cordonel and requirement. \r\nPRESETS: none\r\nINP" +
"UTS: \"Cordonel Region\" and \"Requirement Region\". \r\nOUTPUT: \"EOL Status\" with" +
" results \"Okay\" or \"Failed\"", tagsOfScenario, argumentsOfScenario);
-#line 131
+#line 132
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -661,17 +661,17 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 137
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
#line 138
- testRunner.And("Name the private function to be checked for functionality \'CheckRegion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 139
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckRegion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 140
- testRunner.And("Name the property to be checked for \'RequirementRegionChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 141
+testRunner.And("Name the property to be checked for \'RequirementRegionChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -715,14 +715,14 @@ this.ScenarioInitialize(scenarioInfo);
"null",
"Failed",
"Unspecified Region"});
-#line 143
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table6, "And ");
-#line hidden
-#line 151
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 144
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table6, "And ");
#line hidden
#line 152
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 153
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -740,7 +740,7 @@ this.ScenarioInitialize(scenarioInfo);
PRESETS: none
INPUTS: ""Cordonel LUT CRC"" and ""Requirement LUT CRC"" just a string representing a number in hex e.g. ""0xEB7C.
OUTPUT: ""StringReturn"" as test result containing the expected string or ""null"" as error result from the method.", tagsOfScenario, argumentsOfScenario);
-#line 157
+#line 158
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -760,17 +760,17 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 163
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
#line 164
- testRunner.And("Name the private function to be checked for functionality \'CheckLutCrc\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 165
- testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckLutCrc\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 166
- testRunner.And("Name the property to be checked for \'ProductionStatusLutCrc\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 167
+testRunner.And("Name the property to be checked for \'ProductionStatusLutCrc\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -814,14 +814,14 @@ this.ScenarioInitialize(scenarioInfo);
"null",
"null",
"LUT CRC\'s undefined"});
-#line 169
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table7, "And ");
-#line hidden
-#line 178
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 170
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table7, "And ");
#line hidden
#line 179
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 180
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -839,7 +839,7 @@ this.ScenarioInitialize(scenarioInfo);
PRESETS: none
INPUTS: ""Cordonel Meter Size"" and ""Requirement Meter Size"" as strings naming the size as e.g. ""DN50"", ""US1_5"" or ""1 1/2 INC"".
OUTPUT: ""StringReturn"" as test result containing the expected string or ""null"" as error result from the method.", tagsOfScenario, argumentsOfScenario);
-#line 184
+#line 185
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -859,17 +859,17 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 190
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
#line 191
- testRunner.And("Name the private function to be checked for functionality \'CheckMeterSize\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 192
- testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckMeterSize\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 193
- testRunner.And("Name the property to be checked for \'ProductionStatusMeterSize\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 194
+testRunner.And("Name the property to be checked for \'ProductionStatusMeterSize\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -913,14 +913,14 @@ this.ScenarioInitialize(scenarioInfo);
"null",
"null",
"Meter sizes undefined"});
-#line 196
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table8, "And ");
-#line hidden
-#line 205
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 197
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table8, "And ");
#line hidden
#line 206
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 207
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
@@ -953,11 +953,11 @@ this.ScenarioInitialize(scenarioInfo);
"\" \"X\" to set it to an invalid CRC else \"-\".\r\nOUTPUT: \"StringReturn\" as test re" +
"sult containing the expected string or \"null\" as error result from the method, e" +
"lse it returns the\r\n valid installed FW version string.\r\nCOMMENT: NCru" +
- "nch needs FW package in a specific folder \"C:\\User\\[UserName]\\AppData\\Roaming\\Ge" +
- "nesis\\MockFwExamples\" as it copies\r\n all assemblies to a special NCrunc" +
- "h working folder which is total separated from the project specific \"\\bin\\Debug\"" +
- " folder!", tagsOfScenario, argumentsOfScenario);
-#line 211
+ "nch needs programming parameters in a specific folder \r\n \"[SolutionPath" +
+ "]\\Hardware\\WaterMeter\\Genesis\\MockGenesis\\MockFwExamples\" as it copies all assem" +
+ "blies to a \r\n special NCrunch working folder which is total separated f" +
+ "rom the project specific \"\\bin\\Debug\" folder!", tagsOfScenario, argumentsOfScenario);
+#line 212
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -977,17 +977,17 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 234
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
-#line 235
- testRunner.And("Name the private function to be checked for functionality \'CheckFwAndApps\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
#line 236
- testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 237
- testRunner.And("Name the property to be checked for \'ProductionStatusFwVersion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckFwAndApps\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 238
+testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 239
+testRunner.And("Name the property to be checked for \'ProductionStatusFwVersion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
@@ -1077,40 +1077,35 @@ this.ScenarioInitialize(scenarioInfo);
"X",
"null",
"Genesis flow CRC modified"});
-#line 240
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table9, "And ");
+#line 242
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table9, "And ");
#line hidden
-#line 250
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 252
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
-#line 251
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line 253
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_009]_Check_Remaining_Battery_Load")]
- [NUnit.Framework.CategoryAttribute("CheckLifetimes")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_009_Check_Remaining_Battery_Load()
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_009]_Check_Kitron_Radio_Signal_Levels")]
+ [NUnit.Framework.CategoryAttribute("CheckKitronRadioSignalLevels")]
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_009_Check_Kitron_Radio_Signal_Levels()
{
string[] tagsOfScenario = new string[] {
- "CheckLifetimes"};
+ "CheckKitronRadioSignalLevels"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_009]_Check_Remaining_Battery_Load", @"FUNCTION: Compare the remaining battery load from Cordonel and the requirement.
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_009]_Check_Kitron_Radio_Signal_Levels", @"FUNCTION: Check if radio signal levels have been defined (contained in parameter list) FOR THIS cORDONEL SIZE AND LENGHT.
PRESETS: none
-INPUTS: ""Normal Current [uA]"" multiplied with exceeded lifetime together with ""Production Drained [%] for an alternative threshold,
- set to ""null"" if the standard check based on ""Max Drained [%]"" shall be used.
- ""Production Supplement [%]"" additional allowed drainage of batteries during production, set to ""null"" if the standard check
- based on ""Max Drained [%]"" shall be used.
- ""Actual Lifetime [days]"" is the time in days the Cordonel after Kitron production, set to 0 to create an error.
- ""Actual Drained [%]"" Standard threshold for actual drained battery load based on prediction from firmware and exceeded
- lifetime, set to 0 to create an error.
- ""Max Drained [%]"" Threshold for allowed drainage at EOL in standard check. If alternative threshold is active then this is
- the ABSOLUTE LIMIT.
-OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 256
+INPUTS: .
+OUTPUT: ""StatusReturn"" with results ""Okay"" or ""Failed""
+COMMENT: NCrunch needs programming parameters in a specific folder
+ ""[SolutionPath]\Hardware\WaterMeter\Genesis\MockGenesis\MockRawParameterExamples"" as it copies all assemblies to a
+ special NCrunch working folder which is total separated from the project specific ""\bin\Debug"" folder!", tagsOfScenario, argumentsOfScenario);
+#line 258
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -1130,128 +1125,71 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 270
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line 267
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
-#line 271
- testRunner.And("Name the private function to be checked for functionality \'CheckRemainingBatteryL" +
- "oad\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 268
+testRunner.And("Name the private function to be checked for functionality \'CheckKitronRadioSignal" +
+ "Levels\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 272
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 269
+testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 273
- testRunner.And("Name the property to be checked for \'ProductionStatusBatteryLoadChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 274
+testRunner.And("Define production process for sequencing before test \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
- "Normal Current [uA]",
- "Production Supplement [%]",
- "Actual Lifetime [days]",
- "Actual Drained [%]",
- "Max Drained [%]",
- "EOL Status",
+ "Cordonel Meter Size",
+ "StatusReturn",
"Comment"});
table10.AddRow(new string[] {
"1",
- "119.8",
- "1.5",
- "90",
- "2.0",
- "5.0",
+ "DN50",
"Okay",
- "Alternative threshold okay"});
+ "Valid Kitron radio calibration values"});
table10.AddRow(new string[] {
"2",
- "119.8",
- "1.5",
- "90",
- "2.5",
- "5.0",
+ "DN02",
"Failed",
- "Alternative threshold exceeded"});
- table10.AddRow(new string[] {
- "3",
- "119.8",
- "1.5",
- "180",
- "2.5",
- "2.0",
- "Failed",
- "Absolute max drained limit exceeded"});
- table10.AddRow(new string[] {
- "4",
- "null",
- "null",
- "90",
- "2.0",
- "2.0",
- "Okay",
- "Normal threshold okay"});
- table10.AddRow(new string[] {
- "5",
- "null",
- "null",
- "90",
- "2.5",
- "2.0",
- "Failed",
- "Normal threshold exceeded"});
- table10.AddRow(new string[] {
- "6",
- "null",
- "null",
- "0",
- "2.0",
- "5.0",
- "Failed",
- "Lifetime of 0 days error"});
- table10.AddRow(new string[] {
- "7",
- "null",
- "null",
- "90",
- "0.0",
- "5.0",
- "Failed",
- "Drained load of 0 % error"});
- table10.AddRow(new string[] {
- "8",
- "null",
- "null",
- "90",
- "2.0",
- "null",
- "Failed",
- "Max remaining battery load is null"});
-#line 276
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table10, "And ");
+ "Missing Kitron radio calibration values"});
+#line 277
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table10, "And ");
#line hidden
-#line 286
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 281
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
-#line 287
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line 282
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_010]_Check_Remaining_Lifetime")]
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_010]_Check_Remaining_Battery_Load")]
[NUnit.Framework.CategoryAttribute("CheckLifetimes")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_010_Check_Remaining_Lifetime()
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_010_Check_Remaining_Battery_Load()
{
string[] tagsOfScenario = new string[] {
"CheckLifetimes"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_010]_Check_Remaining_Lifetime", @"FUNCTION: Compare the remaining life time reported by the Cordonel and the requirement.
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_010]_Check_Remaining_Battery_Load", @"FUNCTION: Compare the remaining battery load from Cordonel and the requirement.
PRESETS: none
-INPUTS: ""Actual Lifetime [days]"" is the time in days the Cordonel after Kitron production,
- ""Actual Drained [%]"" is used to calculate the drained load to forecast the remaining lifetime,
- ""Required Lifetime [years]"" Threshold for remaining lifetime.
+INPUTS: ""Normal Current [uA]"" multiplied with exceeded lifetime together with ""Production Drained [%] for an alternative threshold,
+ set to ""null"" if the standard check based on ""Max Drained [%]"" shall be used.
+ ""Production Supplement [%]"" additional allowed drainage of batteries during production, set to ""null"" if the standard check
+ based on ""Max Drained [%]"" shall be used.
+ ""Actual Lifetime [days]"" is the time in days the Cordonel after Kitron production, set to 0 to create an error.
+ ""Actual Drained [%]"" Standard threshold for actual drained battery load based on prediction from firmware and exceeded
+ lifetime, set to 0 to create an error.
+ ""Max Drained [%]"" Threshold for allowed drainage at EOL in standard check. If alternative threshold is active then this is
+ the ABSOLUTE LIMIT.
OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 292
+#line 286
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -1272,94 +1210,235 @@ this.ScenarioInitialize(scenarioInfo);
{
this.ScenarioStart();
#line 300
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 301
- testRunner.And("Name the private function to be checked for functionality \'CheckRemainingLifetime" +
- "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckRemainingBatteryL" +
+ "oad\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 302
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 303
- testRunner.And("Name the property to be checked for \'ProductionStatusRemainingLifeTimeChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the property to be checked for \'ProductionStatusBatteryLoadChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
+ "TestNo",
+ "Normal Current [uA]",
+ "Production Supplement [%]",
+ "Actual Lifetime [days]",
+ "Actual Drained [%]",
+ "Max Drained [%]",
+ "EOL Status",
+ "Comment"});
+ table11.AddRow(new string[] {
+ "1",
+ "119.8",
+ "1.5",
+ "90",
+ "2.0",
+ "5.0",
+ "Okay",
+ "Alternative threshold okay"});
+ table11.AddRow(new string[] {
+ "2",
+ "119.8",
+ "1.5",
+ "90",
+ "2.5",
+ "5.0",
+ "Failed",
+ "Alternative threshold exceeded"});
+ table11.AddRow(new string[] {
+ "3",
+ "119.8",
+ "1.5",
+ "180",
+ "2.5",
+ "2.0",
+ "Failed",
+ "Absolute max drained limit exceeded"});
+ table11.AddRow(new string[] {
+ "4",
+ "null",
+ "null",
+ "90",
+ "2.0",
+ "2.0",
+ "Okay",
+ "Normal threshold okay"});
+ table11.AddRow(new string[] {
+ "5",
+ "null",
+ "null",
+ "90",
+ "2.5",
+ "2.0",
+ "Failed",
+ "Normal threshold exceeded"});
+ table11.AddRow(new string[] {
+ "6",
+ "null",
+ "null",
+ "0",
+ "2.0",
+ "5.0",
+ "Failed",
+ "Lifetime of 0 days error"});
+ table11.AddRow(new string[] {
+ "7",
+ "null",
+ "null",
+ "90",
+ "0.0",
+ "5.0",
+ "Failed",
+ "Drained load of 0 % error"});
+ table11.AddRow(new string[] {
+ "8",
+ "null",
+ "null",
+ "90",
+ "2.0",
+ "null",
+ "Failed",
+ "Max remaining battery load is null"});
+#line 306
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table11, "And ");
+#line hidden
+#line 316
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 317
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line hidden
+ }
+ this.ScenarioCleanup();
+ }
+
+ [NUnit.Framework.TestAttribute()]
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_011]_Check_Remaining_Lifetime")]
+ [NUnit.Framework.CategoryAttribute("CheckLifetimes")]
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_011_Check_Remaining_Lifetime()
+ {
+ string[] tagsOfScenario = new string[] {
+ "CheckLifetimes"};
+ System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_011]_Check_Remaining_Lifetime", @"FUNCTION: Compare the remaining life time reported by the Cordonel and the requirement.
+PRESETS: none
+INPUTS: ""Actual Lifetime [days]"" is the time in days the Cordonel after Kitron production,
+ ""Actual Drained [%]"" is used to calculate the drained load to forecast the remaining lifetime,
+ ""Required Lifetime [years]"" Threshold for remaining lifetime.
+OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
+#line 322
+this.ScenarioInitialize(scenarioInfo);
+#line hidden
+ bool isScenarioIgnored = default(bool);
+ bool isFeatureIgnored = default(bool);
+ if ((tagsOfScenario != null))
+ {
+ isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
+ }
+ if ((this._featureTags != null))
+ {
+ isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
+ }
+ if ((isScenarioIgnored || isFeatureIgnored))
+ {
+ testRunner.SkipScenario();
+ }
+ else
+ {
+ this.ScenarioStart();
+#line 330
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line hidden
+#line 331
+testRunner.And("Name the private function to be checked for functionality \'CheckRemainingLifetime" +
+ "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 332
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 333
+testRunner.And("Name the property to be checked for \'ProductionStatusRemainingLifeTimeChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+ TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
"Actual Lifetime [days]",
"Required Lifetime [years]",
"Actual Drained [%]",
"EOL Status",
"Comment"});
- table11.AddRow(new string[] {
+ table12.AddRow(new string[] {
"1",
"90",
"20.0",
"1.0",
"Okay",
"Remaining lifetime as required"});
- table11.AddRow(new string[] {
+ table12.AddRow(new string[] {
"2",
"365",
"5.0",
"10.0",
"Okay",
"Remaining lifetime as required"});
- table11.AddRow(new string[] {
+ table12.AddRow(new string[] {
"3",
"90",
"20.0",
"2.0",
"Failed",
"Remaining lifetime to short"});
- table11.AddRow(new string[] {
+ table12.AddRow(new string[] {
"4",
"0",
"20.0",
"1.0",
"Failed",
"Actual lifetime of 0 days error"});
- table11.AddRow(new string[] {
+ table12.AddRow(new string[] {
"5",
"90",
"20.0",
"0.0",
"Failed",
"Actual drained load of 0 % error"});
- table11.AddRow(new string[] {
+ table12.AddRow(new string[] {
"6",
"90",
"null",
"1.0",
"Failed",
"Required lifetime is null"});
-#line 306
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table11, "And ");
+#line 336
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table12, "And ");
#line hidden
-#line 315
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 345
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
-#line 316
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line 346
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_011]_Check_Storage_Months")]
- [NUnit.Framework.CategoryAttribute("CheckLifetimes")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_011_Check_Storage_Months()
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_012]_Check_Storage_Months")]
+ [NUnit.Framework.CategoryAttribute("CheckLifetimeS")]
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_012_Check_Storage_Months()
{
string[] tagsOfScenario = new string[] {
- "CheckLifetimes"};
+ "CheckLifetimeS"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_011]_Check_Storage_Months", @"FUNCTION: Compare the production date reported by the Cordonel with the actual date and check the requirement.
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_012]_Check_Storage_Months", @"FUNCTION: Compare the production date reported by the Cordonel with the actual date and check the requirement.
PRESETS: none
INPUTS: ""Assembly Months before Now"" as zero or negative floating point number or invalid if set to ""null"".
""Max Storage Months"" floating point number of months allowed until production has to be finalized.
-OUTPUT: ""StatusReturn"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 320
+OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
+#line 350
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -1379,202 +1458,87 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 327
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line 357
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
-#line 328
- testRunner.And("Name the private function to be checked for functionality \'CheckStorageMonths\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 358
+testRunner.And("Name the private function to be checked for functionality \'CheckStorageMonths\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 329
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 359
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 330
- testRunner.And("Name the property to be checked for \'MaxStorageMonthsChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 360
+testRunner.And("Name the property to be checked for \'MaxStorageMonthsChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
- TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
+ TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
"Assembly Months before Now",
"Max Storage Months",
"EOL Status",
"Comment"});
- table12.AddRow(new string[] {
+ table13.AddRow(new string[] {
"1",
"-3.0",
"3.0",
"Okay",
"Storage months in range"});
- table12.AddRow(new string[] {
+ table13.AddRow(new string[] {
"2",
"-3.0",
"2.0",
"Failed",
"Exceeded maximal allowed storage time"});
- table12.AddRow(new string[] {
+ table13.AddRow(new string[] {
"3",
"null",
"2.0",
"Failed",
"Error assembly months are null"});
- table12.AddRow(new string[] {
+ table13.AddRow(new string[] {
"4",
"-3.0",
"null",
"Failed",
"Error max storage months are null"});
- table12.AddRow(new string[] {
+ table13.AddRow(new string[] {
"5",
"3.0",
"3.0",
"Failed",
"Error assembly time lies in the future"});
- table12.AddRow(new string[] {
+ table13.AddRow(new string[] {
"6",
"-3.0",
"-3.0",
"Failed",
"Error storage months is negative"});
-#line 333
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table12, "And ");
+#line 363
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table13, "And ");
#line hidden
-#line 342
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 372
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
-#line 343
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line 373
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_012]_Check_Preadjustment")]
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_013]_Check_Preadjustment")]
[NUnit.Framework.CategoryAttribute("CheckCalibrations")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_012_Check_Preadjustment()
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_013_Check_Preadjustment()
{
string[] tagsOfScenario = new string[] {
"CheckCalibrations"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_012]_Check_Preadjustment", @"FUNCTION: Check the database content reporting a flow-test preadjustment.
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_013]_Check_Preadjustment", @"FUNCTION: Check the database content reporting a flow-test preadjustment.
PRESETS: none
INPUTS: ""Test Bench Fields"" the array of test bench fields
""Test Bench State[4]"" the field containing a number if preadjustment successfully executed, null if not.
""Skip Calib"" to skip all calibration related checks
OUTPUT: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 348
-this.ScenarioInitialize(scenarioInfo);
-#line hidden
- bool isScenarioIgnored = default(bool);
- bool isFeatureIgnored = default(bool);
- if ((tagsOfScenario != null))
- {
- isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
- }
- if ((this._featureTags != null))
- {
- isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
- }
- if ((isScenarioIgnored || isFeatureIgnored))
- {
- testRunner.SkipScenario();
- }
- else
- {
- this.ScenarioStart();
-#line 356
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
-#line 357
- testRunner.And("Name the private function to be checked for functionality \'CheckPreadjustment\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
-#line 358
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
-#line 359
- testRunner.And("Name the property to be checked for \'ProductionStatusZeroFlowChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
- TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
- "TestNo",
- "Test Bench Fields",
- "Test Bench State[4]",
- "Skip Calib",
- "EOL Status",
- "Comment"});
- table13.AddRow(new string[] {
- "1",
- "5",
- "21",
- "X",
- "Skipped",
- "Skipped calibration checks by requirement"});
- table13.AddRow(new string[] {
- "2",
- "5",
- "21",
- "-",
- "Okay",
- "Test bench preadjustment succeeded"});
- table13.AddRow(new string[] {
- "3",
- "5",
- "0",
- "-",
- "Okay",
- "Test bench preadjustment succeeded"});
- table13.AddRow(new string[] {
- "4",
- "5",
- "500",
- "-",
- "Okay",
- "Test bench preadjustment succeeded"});
- table13.AddRow(new string[] {
- "5",
- "4",
- "21",
- "-",
- "Failed",
- "Error test bench fields too little"});
- table13.AddRow(new string[] {
- "6",
- "5",
- "null",
- "-",
- "Failed",
- "Error test bench status[4] is null"});
- table13.AddRow(new string[] {
- "7",
- "null",
- "21",
- "-",
- "Failed",
- "Error test bench fields null"});
-#line 362
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table13, "And ");
-#line hidden
-#line 372
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
-#line hidden
-#line 373
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
-#line hidden
- }
- this.ScenarioCleanup();
- }
-
- [NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_013]_Check_Flow_Test_State")]
- [NUnit.Framework.CategoryAttribute("CheckCalibrations")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_013_Check_Flow_Test_State()
- {
- string[] tagsOfScenario = new string[] {
- "CheckCalibrations"};
- System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_013]_Check_Flow_Test_State", @"FUNCTION: Check the database content reporting the flow-test state.
-PRESETS: none
-INPUTS: ""Test Bench Fields"" the array of test bench fields
- ""Test Bench State[5]"" the field containing a number of 30 if calibration succeeded
- ""Skip Calib"" to skip all calibration related checks if set to ""X"" else ""-"".
-OUTPUT: ""EOL Status"" with results ""Skipped"", ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
#line 378
this.ScenarioInitialize(scenarioInfo);
#line hidden
@@ -1596,108 +1560,101 @@ this.ScenarioInitialize(scenarioInfo);
{
this.ScenarioStart();
#line 386
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
#line 387
- testRunner.And("Name the private function to be checked for functionality \'CheckFlowTestState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the private function to be checked for functionality \'CheckPreadjustment\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 388
- testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 389
- testRunner.And("Name the property to be checked for \'ProductionStatusCalibrationChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the property to be checked for \'ProductionStatusZeroFlowChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
"Test Bench Fields",
- "Test Bench State[5]",
+ "Test Bench State[4]",
"Skip Calib",
"EOL Status",
"Comment"});
table14.AddRow(new string[] {
"1",
- "6",
- "30",
+ "5",
+ "21",
"X",
"Skipped",
"Skipped calibration checks by requirement"});
table14.AddRow(new string[] {
"2",
- "6",
- "30",
+ "5",
+ "21",
"-",
"Okay",
- "Test bench calibration succeeded"});
+ "Test bench preadjustment succeeded"});
table14.AddRow(new string[] {
"3",
- "6",
- "30",
+ "5",
+ "0",
"-",
"Okay",
- "Test bench calibration succeeded"});
+ "Test bench preadjustment succeeded"});
table14.AddRow(new string[] {
"4",
"5",
- "30",
+ "500",
+ "-",
+ "Okay",
+ "Test bench preadjustment succeeded"});
+ table14.AddRow(new string[] {
+ "5",
+ "4",
+ "21",
"-",
"Failed",
"Error test bench fields too little"});
table14.AddRow(new string[] {
+ "6",
"5",
- "6",
- "29",
+ "null",
"-",
"Failed",
- "Error test bench status[5] number to small"});
- table14.AddRow(new string[] {
- "6",
- "6",
- "31",
- "-",
- "Failed",
- "Error test bench status[5] number to large"});
+ "Error test bench status[4] is null"});
table14.AddRow(new string[] {
"7",
- "6",
"null",
- "-",
- "Failed",
- "Error test bench status[5] is null"});
- table14.AddRow(new string[] {
- "8",
- "null",
- "30",
+ "21",
"-",
"Failed",
"Error test bench fields null"});
#line 392
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table14, "And ");
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table14, "And ");
+#line hidden
+#line 402
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 403
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
-#line hidden
-#line 404
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_014]_Check_Calib_Factors")]
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_014]_Check_Flow_Test_State")]
[NUnit.Framework.CategoryAttribute("CheckCalibrations")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_014_Check_Calib_Factors()
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_014_Check_Flow_Test_State()
{
string[] tagsOfScenario = new string[] {
"CheckCalibrations"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_014]_Check_Calib_Factors", @"FUNCTION: Compare the calibration values reported by the Cordonel with the flow-test calibration values reported by the database.
-PRESETS: All calibration values not covered by this test in valid range.
-INPUTS: ""Meter Calib Fact 1/2/3"" Meter calibration factors 1, 2 and 3 stored in and read out from the Cordonel,
- ""DB Calib Fact 1/2/3"" Required calibration factors 1, 2 and 3 reported by the database.
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_014]_Check_Flow_Test_State", @"FUNCTION: Check the database content reporting the flow-test state.
+PRESETS: none
+INPUTS: ""Test Bench Fields"" the array of test bench fields
+ ""Test Bench State[5]"" the field containing a number of 30 if calibration succeeded
""Skip Calib"" to skip all calibration related checks if set to ""X"" else ""-"".
-OUTPUT: ""StatusReturn"" with results ""Skipped"", ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
-#line 409
+OUTPUT: ""EOL Status"" with results ""Skipped"", ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
+#line 408
this.ScenarioInitialize(scenarioInfo);
#line hidden
bool isScenarioIgnored = default(bool);
@@ -1717,135 +1674,108 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
+#line 416
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line hidden
#line 417
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+testRunner.And("Name the private function to be checked for functionality \'CheckFlowTestState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 418
- testRunner.And("Name the private function to be checked for functionality \'CheckCalibrationValues" +
- "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
#line 419
- testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+testRunner.And("Name the property to be checked for \'ProductionStatusCalibrationChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
- "Meter Calib Fact 1",
- "Meter Calib Fact 2",
- "Meter Calib Fact 3",
- "DB Calib Fact 1",
- "DB Calib Fact 2",
- "DB Calib Fact 3",
+ "Test Bench Fields",
+ "Test Bench State[5]",
"Skip Calib",
- "StatusReturn",
+ "EOL Status",
"Comment"});
table15.AddRow(new string[] {
"1",
- "10000",
- "20000",
- "30000",
- "10000",
- "20000",
- "30000",
+ "6",
+ "30",
"X",
"Skipped",
- "Skipped calib checks per requirement"});
+ "Skipped calibration checks by requirement"});
table15.AddRow(new string[] {
"2",
- "10000",
- "20000",
- "30000",
- "10000",
- "20000",
- "30000",
+ "6",
+ "30",
"-",
"Okay",
- "Valid calib factors"});
+ "Test bench calibration succeeded"});
table15.AddRow(new string[] {
"3",
- "15625",
- "20000",
- "30000",
- "15625",
- "20000",
- "30000",
+ "6",
+ "30",
"-",
"Okay",
- "Valid calib factors (1 default)"});
+ "Test bench calibration succeeded"});
table15.AddRow(new string[] {
"4",
- "15625",
- "15625",
- "30000",
- "15625",
- "15625",
- "30000",
- "-",
- "Okay",
- "Valid calib factors (2 defaults)"});
- table15.AddRow(new string[] {
"5",
- "15625",
- "15625",
- "15625",
- "15625",
- "15625",
- "15625",
- "-",
- "Warning",
- "Invalid Meter calib factors (3 defaults)"});
- table15.AddRow(new string[] {
- "6",
- "10000",
- "20000",
- "30000",
- "10000",
- "44444",
- "30000",
+ "30",
"-",
"Failed",
- "Inconsistent calib factors DB to Meter"});
+ "Error test bench fields too little"});
+ table15.AddRow(new string[] {
+ "5",
+ "6",
+ "29",
+ "-",
+ "Failed",
+ "Error test bench status[5] number to small"});
+ table15.AddRow(new string[] {
+ "6",
+ "6",
+ "31",
+ "-",
+ "Failed",
+ "Error test bench status[5] number to large"});
+ table15.AddRow(new string[] {
+ "7",
+ "6",
+ "null",
+ "-",
+ "Failed",
+ "Error test bench status[5] is null"});
+ table15.AddRow(new string[] {
+ "8",
+ "null",
+ "30",
+ "-",
+ "Failed",
+ "Error test bench fields null"});
#line 422
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table15, "And ");
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table15, "And ");
#line hidden
#line 433
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
#line 434
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
}
[NUnit.Framework.TestAttribute()]
- [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_015]_Check_Complete_Flow_Production_State")]
- [NUnit.Framework.CategoryAttribute("CheckProductionStateProcess")]
- public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_015_Check_Complete_Flow_Production_State()
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_015]_Check_Calib_Factors")]
+ [NUnit.Framework.CategoryAttribute("CheckCalibrations")]
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_015_Check_Calib_Factors()
{
string[] tagsOfScenario = new string[] {
- "CheckProductionStateProcess"};
+ "CheckCalibrations"};
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_015]_Check_Complete_Flow_Production_State", "FUNCTION: Check the entire production process sequence except the database calls " +
- "with all underlaying sub-processes. \r\nPRESETS: Preset all values with valid par" +
- "ameters to pass the test as \"Okay\" needed to successfully pass all underlaying t" +
- "ests:\r\n - EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId\r\n " +
- " - Standard Id | Standard Version | Standard IsActive | Special Id | Special Ve" +
- "rsion\r\n - Cordonel ProdOrderNo | Requirement ProdOrderNo \r\n - " +
- "Cordonel PcbId | EOL PcbId | Requirement PcbId |\r\n - Cordonel Region | " +
- "Requirement Region\r\n - Cordonel LUT CRC | Requirement LUT CRC \r\n " +
- " - Cordonel Meter Size | Requirement Meter Size\r\n - Cordonel Core Rev" +
- "ision | Cordonel FW Version | Requirement FW Version\r\n - Actual Lifetim" +
- "e [days] | Actual Drained [%] | Max Drained [%] \r\n - Actual Lifetime [d" +
- "ays] | Required Lifetime [years] | Actual Drained [%] \r\n - Assembly Mon" +
- "ths before Now | Max Storage Months\r\n - Test Bench Fields | Test Bench " +
- "State[4]\r\n - Test Bench Fields | Test Bench State[5] \r\n - Mete" +
- "r Calib Fact 1 | Meter Calib Fact 2 | Meter Calib Fact 3 | DB Calib Fact 1 | DB " +
- "Calib Fact 2 | DB Calib Fact 3\r\nINPUTS: \"Kill x\" forces the test to fail to ch" +
- "eck if all tests are executed. REMIND: Only ONE should be set to \"X\"! \r\n " +
- " Leave all others as \"-\" to observe better the unique setup!\r\nOUTPUT: \"Status" +
- "Return\" with results \"Okay\" or \"Failed\", \r\n additional check of complet" +
- "e EOL progress status. The expected EOL result will be set with the preset value" +
- "s and \r\n modified with the \"Kill x\" from \"Okay\" to \"Failed\" ", tagsOfScenario, argumentsOfScenario);
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_015]_Check_Calib_Factors", @"FUNCTION: Compare the calibration values reported by the Cordonel with the flow-test calibration values reported by the database.
+PRESETS: All calibration values not covered by this test in valid range.
+INPUTS: ""Meter Calib Fact 1/2/3"" Meter calibration factors 1, 2 and 3 stored in and read out from the Cordonel,
+ ""DB Calib Fact 1/2/3"" Required calibration factors 1, 2 and 3 reported by the database.
+ ""Skip Calib"" to skip all calibration related checks if set to ""X"" else ""-"".
+OUTPUT: ""StatusReturn"" with results ""Skipped"", ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario);
#line 439
this.ScenarioInitialize(scenarioInfo);
#line hidden
@@ -1866,41 +1796,190 @@ this.ScenarioInitialize(scenarioInfo);
else
{
this.ScenarioStart();
-#line 462
- testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line 447
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line hidden
-#line 463
- testRunner.And("Name the public function to be checked for functionality \'ExecuteProcess\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 448
+testRunner.And("Name the private function to be checked for functionality \'CheckCalibrationValues" +
+ "\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
-#line 464
- testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
-#line 467
- testRunner.And("Activate EOL progress check", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
-#line 471
- testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
-#line hidden
-#line 472
- testRunner.And("Define production process for sequencing before test \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line 449
+testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden
TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
+ "TestNo",
+ "Meter Calib Fact 1",
+ "Meter Calib Fact 2",
+ "Meter Calib Fact 3",
+ "DB Calib Fact 1",
+ "DB Calib Fact 2",
+ "DB Calib Fact 3",
+ "Skip Calib",
+ "StatusReturn",
+ "Comment"});
+ table16.AddRow(new string[] {
+ "1",
+ "10000",
+ "20000",
+ "30000",
+ "10000",
+ "20000",
+ "30000",
+ "X",
+ "Skipped",
+ "Skipped calib checks per requirement"});
+ table16.AddRow(new string[] {
+ "2",
+ "10000",
+ "20000",
+ "30000",
+ "10000",
+ "20000",
+ "30000",
+ "-",
+ "Okay",
+ "Valid calib factors"});
+ table16.AddRow(new string[] {
+ "3",
+ "15625",
+ "20000",
+ "30000",
+ "15625",
+ "20000",
+ "30000",
+ "-",
+ "Okay",
+ "Valid calib factors (1 default)"});
+ table16.AddRow(new string[] {
+ "4",
+ "15625",
+ "15625",
+ "30000",
+ "15625",
+ "15625",
+ "30000",
+ "-",
+ "Okay",
+ "Valid calib factors (2 defaults)"});
+ table16.AddRow(new string[] {
+ "5",
+ "15625",
+ "15625",
+ "15625",
+ "15625",
+ "15625",
+ "15625",
+ "-",
+ "Warning",
+ "Invalid Meter calib factors (3 defaults)"});
+ table16.AddRow(new string[] {
+ "6",
+ "10000",
+ "20000",
+ "30000",
+ "10000",
+ "44444",
+ "30000",
+ "-",
+ "Failed",
+ "Inconsistent calib factors DB to Meter"});
+#line 452
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table16, "And ");
+#line hidden
+#line 463
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line hidden
+#line 464
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line hidden
+ }
+ this.ScenarioCleanup();
+ }
+
+ [NUnit.Framework.TestAttribute()]
+ [NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_016]_Check_Complete_Flow_Production_State")]
+ [NUnit.Framework.CategoryAttribute("CheckProductionStateProcess")]
+ public virtual void SRS_TBF_EOL_PP_CHECK_PROD_STATE_016_Check_Complete_Flow_Production_State()
+ {
+ string[] tagsOfScenario = new string[] {
+ "CheckProductionStateProcess"};
+ System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_016]_Check_Complete_Flow_Production_State", "FUNCTION: Check the entire production process sequence except the database calls " +
+ "with all underlaying sub-processes. \r\nPRESETS: Preset all values with valid par" +
+ "ameters to pass the test as \"Okay\" needed to successfully pass all underlaying t" +
+ "ests:\r\n - EOL Id | EOL StartDate | Cordonel PcbId | EOL PcbId\r\n " +
+ " - Standard Id | Standard Version | Standard IsActive | Special Id | Special Ve" +
+ "rsion\r\n - Cordonel ProdOrderNo | Requirement ProdOrderNo \r\n - " +
+ "Cordonel PcbId | EOL PcbId | Requirement PcbId |\r\n - Cordonel Region | " +
+ "Requirement Region\r\n - Cordonel LUT CRC | Requirement LUT CRC \r\n " +
+ " - Cordonel Meter Size | Requirement Meter Size\r\n - Cordonel Core Rev" +
+ "ision | Cordonel FW Version | Requirement FW Version\r\n - Actual Lifetim" +
+ "e [days] | Actual Drained [%] | Max Drained [%] \r\n - Actual Lifetime [d" +
+ "ays] | Required Lifetime [years] | Actual Drained [%] \r\n - Assembly Mon" +
+ "ths before Now | Max Storage Months\r\n - Test Bench Fields | Test Bench " +
+ "State[4]\r\n - Test Bench Fields | Test Bench State[5] \r\n - Mete" +
+ "r Calib Fact 1 | Meter Calib Fact 2 | Meter Calib Fact 3 | DB Calib Fact 1 | DB " +
+ "Calib Fact 2 | DB Calib Fact 3\r\nINPUTS: \"Kill x\" forces the test to fail to ch" +
+ "eck if all tests are executed. REMIND: Only ONE should be set to \"X\"! \r\n " +
+ " Leave all others as \"-\" to observe better the unique setup!\r\nOUTPUT: \"Status" +
+ "Return\" with results \"Okay\" or \"Failed\", \r\n additional check of complet" +
+ "e EOL progress status. The expected EOL result will be set with the preset value" +
+ "s and \r\n modified with the \"Kill x\" from \"Okay\" to \"Failed\" ", tagsOfScenario, argumentsOfScenario);
+#line 469
+this.ScenarioInitialize(scenarioInfo);
+#line hidden
+ bool isScenarioIgnored = default(bool);
+ bool isFeatureIgnored = default(bool);
+ if ((tagsOfScenario != null))
+ {
+ isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
+ }
+ if ((this._featureTags != null))
+ {
+ isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
+ }
+ if ((isScenarioIgnored || isFeatureIgnored))
+ {
+ testRunner.SkipScenario();
+ }
+ else
+ {
+ this.ScenarioStart();
+#line 492
+testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
+#line hidden
+#line 493
+testRunner.And("Name the public function to be checked for functionality \'ExecuteProcess\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 494
+testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 497
+testRunner.And("Activate EOL progress check", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 501
+testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+#line 502
+testRunner.And("Define production process for sequencing before test \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
+#line hidden
+ TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] {
"EOL Id",
"EOL StartDate",
"Cordonel PcbId",
"EOL PcbId",
"Comment"});
- table16.AddRow(new string[] {
+ table17.AddRow(new string[] {
"123",
"UTC Now",
"182100041",
"182100041",
"EOL Progress successfully created"});
-#line 477
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
- "", ((string)(null)), table16, "And ");
+#line 507
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "", ((string)(null)), table17, "And ");
#line hidden
- TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] {
+ TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] {
"Standard Id",
"Standard Version",
"Standard IsActive",
@@ -1908,7 +1987,7 @@ this.ScenarioInitialize(scenarioInfo);
"Special Id",
"Special Version",
"Comment"});
- table17.AddRow(new string[] {
+ table18.AddRow(new string[] {
"10",
"5",
"X",
@@ -1916,147 +1995,147 @@ this.ScenarioInitialize(scenarioInfo);
"null",
"null",
"Standard Requirement is active and approved"});
-#line 481
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
- "", ((string)(null)), table17, "And ");
-#line hidden
- TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] {
- "Cordonel ProdOrderNo",
- "Requirement ProdOrderNo",
- "Comment"});
- table18.AddRow(new string[] {
- "3118323",
- "3118323",
- "Order number is identical"});
-#line 485
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+#line 511
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table18, "And ");
#line hidden
TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] {
+ "Cordonel ProdOrderNo",
+ "Requirement ProdOrderNo",
+ "Comment"});
+ table19.AddRow(new string[] {
+ "3118323",
+ "3118323",
+ "Order number is identical"});
+#line 515
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "", ((string)(null)), table19, "And ");
+#line hidden
+ TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] {
"Cordonel PcbId",
"EOL PcbId",
"Requirement PcbId",
"Comment"});
- table19.AddRow(new string[] {
+ table20.AddRow(new string[] {
"182100041",
"182100041",
"182100041",
"PcbId is identical"});
-#line 489
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
- "", ((string)(null)), table19, "And ");
-#line hidden
- TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] {
- "Cordonel Region",
- "Requirement Region",
- "Comment"});
- table20.AddRow(new string[] {
- "EMEA",
- "EMEA",
- "Region is identical"});
-#line 493
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+#line 519
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table20, "And ");
#line hidden
TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] {
- "Cordonel LUT CRC",
- "Requirement LUT CRC",
+ "Cordonel Region",
+ "Requirement Region",
"Comment"});
table21.AddRow(new string[] {
- "0xEB7C",
- "0xEB7C",
- "LUT CRC is identical"});
-#line 497
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "EMEA",
+ "EMEA",
+ "Region is identical"});
+#line 523
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table21, "And ");
#line hidden
TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] {
- "Cordonel Meter Size",
- "Requirement Meter Size",
+ "Cordonel LUT CRC",
+ "Requirement LUT CRC",
"Comment"});
table22.AddRow(new string[] {
- "DN50",
- "DN50",
- "Meter size is identical"});
-#line 501
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "0xEB7C",
+ "0xEB7C",
+ "LUT CRC is identical"});
+#line 527
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table22, "And ");
#line hidden
TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] {
+ "Cordonel Meter Size",
+ "Requirement Meter Size",
+ "Comment"});
+ table23.AddRow(new string[] {
+ "DN50",
+ "DN50",
+ "Meter size is identical"});
+#line 531
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "", ((string)(null)), table23, "And ");
+#line hidden
+ TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] {
"Cordonel Core Revision",
"Cordonel FW Version",
"Requirement FW Version",
"Comment"});
- table23.AddRow(new string[] {
+ table24.AddRow(new string[] {
"1.71",
"R1.3.0B",
"R1.3.0B",
"FW Version is identical"});
-#line 505
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
- "", ((string)(null)), table23, "And ");
-#line hidden
- TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] {
- "Max Drained [%]",
- "Comment"});
- table24.AddRow(new string[] {
- "2.0",
- "Normal threshold okay"});
-#line 509
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+#line 535
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table24, "And ");
#line hidden
TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] {
+ "Max Drained [%]",
+ "Comment"});
+ table25.AddRow(new string[] {
+ "2.0",
+ "Normal threshold okay"});
+#line 539
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "", ((string)(null)), table25, "And ");
+#line hidden
+ TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] {
"Actual Lifetime [days]",
"Required Lifetime [years]",
"Actual Drained [%]",
"Comment"});
- table25.AddRow(new string[] {
+ table26.AddRow(new string[] {
"90",
"20.0",
"1.0",
"Remaining lifetime as required"});
-#line 513
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
- "", ((string)(null)), table25, "And ");
-#line hidden
- TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] {
- "Assembly Months before Now",
- "Max Storage Months",
- "Comment"});
- table26.AddRow(new string[] {
- "-3.0",
- "3.0",
- "Storage months in range"});
-#line 517
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+#line 543
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table26, "And ");
#line hidden
TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] {
- "Test Bench Fields",
- "Test Bench State[4]",
+ "Assembly Months before Now",
+ "Max Storage Months",
"Comment"});
table27.AddRow(new string[] {
- "5",
- "21",
- "Test bench preadjustment succeeded"});
-#line 521
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "-3.0",
+ "3.0",
+ "Storage months in range"});
+#line 547
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table27, "And ");
#line hidden
TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] {
"Test Bench Fields",
- "Test Bench State[5]",
+ "Test Bench State[4]",
"Comment"});
table28.AddRow(new string[] {
- "6",
- "30",
- "Test bench calibration succeeded"});
-#line 525
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "5",
+ "21",
+ "Test bench preadjustment succeeded"});
+#line 551
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
"", ((string)(null)), table28, "And ");
#line hidden
TechTalk.SpecFlow.Table table29 = new TechTalk.SpecFlow.Table(new string[] {
+ "Test Bench Fields",
+ "Test Bench State[5]",
+ "Comment"});
+ table29.AddRow(new string[] {
+ "6",
+ "30",
+ "Test bench calibration succeeded"});
+#line 555
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "", ((string)(null)), table29, "And ");
+#line hidden
+ TechTalk.SpecFlow.Table table30 = new TechTalk.SpecFlow.Table(new string[] {
"Meter Calib Fact 1",
"Meter Calib Fact 2",
"Meter Calib Fact 3",
@@ -2064,7 +2143,7 @@ this.ScenarioInitialize(scenarioInfo);
"DB Calib Fact 2",
"DB Calib Fact 3",
"Comment"});
- table29.AddRow(new string[] {
+ table30.AddRow(new string[] {
"10000",
"20000",
"30000",
@@ -2072,11 +2151,11 @@ this.ScenarioInitialize(scenarioInfo);
"20000",
"30000",
"Valid calib factors"});
-#line 529
- testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
- "", ((string)(null)), table29, "And ");
+#line 559
+testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
+ "", ((string)(null)), table30, "And ");
#line hidden
- TechTalk.SpecFlow.Table table30 = new TechTalk.SpecFlow.Table(new string[] {
+ TechTalk.SpecFlow.Table table31 = new TechTalk.SpecFlow.Table(new string[] {
"TestNo",
"Kill EOL",
"Kill Requ",
@@ -2095,7 +2174,7 @@ this.ScenarioInitialize(scenarioInfo);
"Kill RadioParam",
"StatusReturn",
"Comment"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"1",
"-",
"-",
@@ -2114,7 +2193,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Okay",
"Test sequence complete"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"2",
"X",
"-",
@@ -2133,7 +2212,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill EOL generation"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"3",
"-",
"X",
@@ -2152,7 +2231,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill requirement"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"4",
"-",
"-",
@@ -2171,7 +2250,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill production order check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"5",
"-",
"-",
@@ -2190,7 +2269,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill PcbId check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"6",
"-",
"-",
@@ -2209,7 +2288,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill region check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"7",
"-",
"-",
@@ -2228,7 +2307,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill LUT check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"8",
"-",
"-",
@@ -2247,7 +2326,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill meter size check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"9",
"-",
"-",
@@ -2266,7 +2345,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill FW check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"10",
"-",
"-",
@@ -2285,7 +2364,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill battery load check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"11",
"-",
"-",
@@ -2304,7 +2383,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill life time check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"12",
"-",
"-",
@@ -2323,7 +2402,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill storage time check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"13",
"-",
"-",
@@ -2342,7 +2421,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill preadjustment check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"14",
"-",
"-",
@@ -2361,7 +2440,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill flow test check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"15",
"-",
"-",
@@ -2380,7 +2459,7 @@ this.ScenarioInitialize(scenarioInfo);
"-",
"Failed",
"Detected kill calibrations check"});
- table30.AddRow(new string[] {
+ table31.AddRow(new string[] {
"16",
"-",
"-",
@@ -2399,14 +2478,14 @@ this.ScenarioInitialize(scenarioInfo);
"X",
"Failed",
"Detected kill radio parameter"});
-#line 534
- testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table30, "And ");
+#line 564
+testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table31, "And ");
#line hidden
-#line 553
- testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
+#line 583
+testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden
-#line 554
- testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
+#line 584
+testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
}
this.ScenarioCleanup();
diff --git a/Common/Production/ProductionUiCordonel/App.xaml.cs b/Common/Production/ProductionUiCordonel/App.xaml.cs
index c143505d..343f2343 100644
--- a/Common/Production/ProductionUiCordonel/App.xaml.cs
+++ b/Common/Production/ProductionUiCordonel/App.xaml.cs
@@ -18,21 +18,21 @@ namespace Xylem.Common.Production.ProductionUiCordonel
case "1":
var ProductionWindow = new ProductionWindow(
ProductionUiCordonel.Properties.Resources.StrEolSoftwareNameVersion,
- "ProductionUiCordonel", new EolProcessStateDef());
+ "ProductionUiCordonel", new EolProcessStateDef(), false);
ProductionWindow.Show();
break;
case "2":
ProductionWindow = new ProductionWindow(
ProductionUiCordonel.Properties.Resources.StrPickingSoftwareNameVersion,
- "PickingUiCordonel", new PickingProcessStateDef());
+ "PickingUiCordonel", new PickingProcessStateDef(), true);
ProductionWindow.Show();
break;
default:
ProductionWindow = new ProductionWindow(
ProductionUiCordonel.Properties.Resources.StrEolSoftwareNameVersion,
- "ProductionUiCordonel", new EolProcessStateDef());
+ "ProductionUiCordonel", new EolProcessStateDef(), false);
ProductionWindow.Show();
break;
}
diff --git a/Common/Production/ProductionUiCordonel/Docu/TBF_COM_ASMBLY_SRSe.docx b/Common/Production/ProductionUiCordonel/Docu/TBF_COM_ASMBLY_SRSe.docx
new file mode 100644
index 00000000..5c7e2ce1
Binary files /dev/null and b/Common/Production/ProductionUiCordonel/Docu/TBF_COM_ASMBLY_SRSe.docx differ
diff --git a/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SDDe.doc b/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SDDe.doc
index 5a4368a5..ce83576f 100644
Binary files a/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SDDe.doc and b/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SDDe.doc differ
diff --git a/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SRSe.docx b/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SRSe.docx
index 76f21119..55104fa9 100644
Binary files a/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SRSe.docx and b/Common/Production/ProductionUiCordonel/Docu/TBF_COM_EOL_SRSe.docx differ
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProcessStatesDef.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProcessStatesDef.cs
index 384c954a..66f65c90 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProcessStatesDef.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProcessStatesDef.cs
@@ -36,6 +36,15 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
productionProcessNo: null,
nextStateOnSuccess: ProcessState.Idle),
+ new ProcessStateStruct(
+ productionProcess: null,
+ processState: ProcessState.CheckNewMeter,
+ processInfo: Resources.StrProcessStateCheckNewMeter,
+ productionProcessNo: null,
+ nextStateOnSuccess: ProcessState.DetectCordonel,
+ errorExitState: ProcessState.ConnectCordonel,
+ startAlways: true),
+
new ProcessStateStruct(
productionProcess: new ErrorHandler(null),
processState: ProcessState.Error,
@@ -116,12 +125,20 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
select stateContainer.ProcessInfo).FirstOrDefault();
}
+ ///
+ public ProcessState GetStateOfFirstProcess()
+ {
+ return (from stateContainer in StateContainer
+ where stateContainer.ProductionProcessNo == 0
+ select stateContainer.ProcessState).FirstOrDefault();
+ }
+
///
public ProcessState GetStateOfInfoText(String text)
{
return (from stateContainer in StateContainer
- where stateContainer.ProcessInfo == text
- select stateContainer.ProcessState).FirstOrDefault();
+ where stateContainer.ProcessInfo == text
+ select stateContainer.ProcessState).FirstOrDefault();
}
///
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProductionProcess.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProductionProcess.cs
index 79360a99..748d0a79 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProductionProcess.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/BaseProductionProcess.cs
@@ -158,10 +158,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
public CancellationToken CancellationToken { set; get; }
///
- public event EventHandler OnSingleProcessStateChanged;
+ public event EventHandler OnProcessStateChanged;
///
- public event EventHandler OnOverallProcessStateChanged;
+ public event EventHandler OnForceStateMachineStateChange;
///
public event EventHandler OnProcessLogRequest;
@@ -191,7 +191,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// Set overall process to 100 %
///
- protected void SetOverallProcessTo100Percent()
+ protected void SetProcessProgressTo100Percent()
{
OnProcessProgressChanged?.Invoke(this, new ProcessProgressArgs(Int32.MaxValue,
ProcessProgressArgs.ProcessProgressType.OverallProcessesSteps));
@@ -284,10 +284,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// - PreExecuteProcess.
///
- private void SetSingleProcessStateAndFireEvent(Object sender, SingleProcessState state)
+ private void SetAndSignalProcessState(Object sender, SingleProcessState state)
{
SingleProcessState = state;
- OnSingleProcessStateChanged?.Invoke(sender, new SingleProcessStateArgs(state));
+ OnProcessStateChanged?.Invoke(sender, new SingleProcessStateArgs(state));
}
///
@@ -296,11 +296,11 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
{
if (Meter == null)
{
- // first signal overall process state change because the single process state change uninstalls
+ // First signal to change the state machine because the single process state change uninstalls
// all events from process
- OnOverallProcessStateChanged?.Invoke(this, new ProcessStateArgs(ProcessState.Error));
- // set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Error);
+ OnForceStateMachineStateChange?.Invoke(this, new ProcessStateArgs(ProcessState.Error));
+ // Set process state for this process and signal it to final controller
+ SetAndSignalProcessState(this, SingleProcessState.Error);
}
var userControl = (IUserControl)UserControl;
@@ -320,15 +320,15 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
public virtual void InitProcess()
{
- // set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Waiting);
+ // Set process state for this process and signal it to final controller
+ SetAndSignalProcessState(this, SingleProcessState.Waiting);
}
///
public virtual void IdleProcess()
{
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Idle);
+ SetAndSignalProcessState(this, SingleProcessState.Idle);
}
///
@@ -341,14 +341,14 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
public virtual void AbortProcess()
{
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Abort);
+ SetAndSignalProcessState(this, SingleProcessState.Abort);
}
///
public virtual void RetryProcess()
{
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Retry);
+ SetAndSignalProcessState(this, SingleProcessState.Retry);
}
///
@@ -380,7 +380,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
SingleProcessState != SingleProcessState.Idle)
{
// Signal state change to state machine
- OnOverallProcessStateChanged?.Invoke(this, new ProcessStateArgs(successExitState));
+ OnForceStateMachineStateChange?.Invoke(this, new ProcessStateArgs(successExitState));
}
if (success == StatusReturn.Okay)
@@ -389,7 +389,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
SuccessMsgDispatcher($"{Resources.StrSuccessMsgProcess}: {ProcessName}");
// ATTENTION: This will uninstall all events for this process!
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Succeeded);
+ SetAndSignalProcessState(this, SingleProcessState.Succeeded);
}
else if (success == StatusReturn.Skipped)
{
@@ -397,7 +397,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
SuccessMsgDispatcher($"{Resources.StrSkippedMsgProcess}: {ProcessName}");
// ATTENTION: This will uninstall all events for this process!
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Skipped);
+ SetAndSignalProcessState(this, SingleProcessState.Skipped);
}
else
{
@@ -405,21 +405,21 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
WarningMsgDispatcher($"{Resources.StrWarningMsgProcess}: {ProcessName}");
// ATTENTION: This will uninstall all events for this process!
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Warning);
+ SetAndSignalProcessState(this, SingleProcessState.Warning);
}
return;
}
- // first signal overall process state change because the single process state change uninstalls
- // all events from process, signal to process controller
- OnOverallProcessStateChanged?.Invoke(this, new ProcessStateArgs(errorExitState));
+ // First signal to change the state machine because the single process state change uninstalls
+ // all events from process
+ OnForceStateMachineStateChange?.Invoke(this, new ProcessStateArgs(errorExitState));
// set message for error of process before uninstalling the events for this process
ErrorMsgDispatcher($"{Resources.StrErrorMsgProcess}: {ProcessName}");
// ATTENTION: This will uninstall all events for this process!
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Error);
+ SetAndSignalProcessState(this, SingleProcessState.Error);
}
///
@@ -491,7 +491,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
protected void SignalRunningState(Int32 maxActualProcessProgressSteps = 1)
{
// set process state for this process and signal it to final controller
- SetSingleProcessStateAndFireEvent(this, SingleProcessState.Running);
+ SetAndSignalProcessState(this, SingleProcessState.Running);
// set the progress bar on GUI
MaxActualProcessProgress = maxActualProcessProgressSteps;
ActualProcessProgress = 0;
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/EolProcessStatesDef.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/EolProcessStatesDef.cs
index da4b4f3e..87f82352 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/EolProcessStatesDef.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/EolProcessStatesDef.cs
@@ -113,20 +113,6 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolPr
productionProcessNo: 0,
nextStateOnSuccess: ProcessState.CheckNewMeter),
- // Detection of Cordonel has to be completed before assigning next state. It has to be checked if
- // the meter changed to clear all collected contents of previous run. To UPDATE ALL INFORMATION after
- // new meter assignment the "DetectCordonel" has to be repeated to return here "Old Meter" and then
- // enter the "ConnectCordonel"!
- new ProcessStateStruct(
- productionProcess: null,
- processState: ProcessState.CheckNewMeter,
- processInfo: Resources.StrProcessStateCheckNewMeter,
- productionProcessNo: null,
- // Repeat detect as a new meter has been connected
- nextStateOnSuccess: ProcessState.DetectCordonel,
- // Used to go ahead as new meter returns "false" meaning error state
- errorExitState: ProcessState.ConnectCordonel),
-
// Precondition: - The detection process has to be completed as the PcbId is needed.
// AVOID to change the process state on completion as parallel process is active!
new ProcessStateStruct(
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/PrepareShipping.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/PrepareShipping.cs
index d54f05e8..014adf81 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/PrepareShipping.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/EolProcesses/PrepareShipping.cs
@@ -154,7 +154,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolPr
ucDialog.SetDialogOptions(OptionList);
ActualProcessProgress = MaxActualProgressSteps;
- SetOverallProcessTo100Percent();
+ SetProcessProgressTo100Percent();
while (_waitOnUserFeedback && SingleProcessState != SingleProcessState.Idle)
{
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/IProcessStateDef.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/IProcessStateDef.cs
index 9fa7f526..71757c13 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/IProcessStateDef.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/IProcessStateDef.cs
@@ -21,6 +21,16 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
ProcessStateStruct GetProcessStateStructOfState(ProcessState stateMachineState);
+ ///
+ /// Get the first production process state name to start the state machine with this.
+ /// It has to be a process labeled with ProductionProcessNo == 0.
+ ///
+ /// process attached to the state
+ ///
+ /// - Initial
+ ///
+ ProcessState GetStateOfFirstProcess();
+
///
/// Get the process linked to state of state machine
///
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/IProductionProcess.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/IProductionProcess.cs
index cf8c9e31..9bf5a649 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/IProductionProcess.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/IProductionProcess.cs
@@ -22,12 +22,12 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// Event for process list change or state of single process step change from wait to execute to done or error
///
- event EventHandler OnSingleProcessStateChanged;
+ event EventHandler OnProcessStateChanged;
///
/// Entire process changed status due to state change of process execution
///
- event EventHandler OnOverallProcessStateChanged;
+ event EventHandler OnForceStateMachineStateChange;
///
/// Log event to log file and signal to GUI
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/PickingProcesses/PickingProcessStatesDef.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/PickingProcesses/PickingProcessStatesDef.cs
index c75993b3..dbb899fc 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/PickingProcesses/PickingProcessStatesDef.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/PickingProcesses/PickingProcessStatesDef.cs
@@ -110,42 +110,16 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.Picki
productionProcess: new DetectCordonel(Resources.StrStateDetectCordonel),
processState: ProcessState.DetectCordonel,
processInfo: Resources.StrStateDetectCordonel,
- productionProcessNo: 0,
+ productionProcessNo: 1,
nextStateOnSuccess: ProcessState.CheckNewMeter),
- // Detection of Cordonel has to be completed before assigning next state. It has to be checked if
- // the meter changed to clear all collected contents of previous run. To UPDATE ALL INFORMATION after
- // new meter assignment the "DetectCordonel" has to be repeated to return here "Old Meter" and then
- // enter the "ConnectCordonel"!
- new ProcessStateStruct(
- productionProcess: null,
- processState: ProcessState.CheckNewMeter,
- processInfo: Resources.StrProcessStateCheckNewMeter,
- productionProcessNo: null,
- // Repeat detect as a new meter has been connected
- nextStateOnSuccess: ProcessState.DetectCordonel,
- // Used to go ahead as new meter returns "false" meaning error state
- errorExitState: ProcessState.ConnectCordonel),
-
// Precondition: - The detection process has to be completed as the PcbId is needed.
// AVOID to change the process state on completion as parallel process is active!
new ProcessStateStruct(
productionProcess: new ConnectCordonel(Resources.StrStateConnectCordonel),
processState: ProcessState.ConnectCordonel,
processInfo: Resources.StrStateConnectCordonel,
- productionProcessNo: 1,
- // Avoid automatic change after completion as parallel process is active
- nextStateOnSuccess: BaseProductionProcess.DoNotChangeStateAfterCompletion,
- // Kick off parallel process execution
- kickOffParallelState: ProcessState.GetSerialNumberAndRadioAddress),
-
- // Precondition: - The detection process has to be completed as the PcbId is needed.
- // AVOID to change the process state on completion as parallel process is active!
- new ProcessStateStruct(
- productionProcess: new GetSerialNumberAndRadioAddress(Resources.StrStateGetSerialAndRadioAddress),
- processState: ProcessState.GetSerialNumberAndRadioAddress,
- processInfo: Resources.StrStateGetSerialAndRadioAddress,
- productionProcessNo: 2,
+ productionProcessNo: 2,
// Avoid automatic change after completion as parallel process is active
nextStateOnSuccess: BaseProductionProcess.DoNotChangeStateAfterCompletion,
// Kick off parallel process execution
@@ -159,8 +133,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.Picki
processState: ProcessState.GetProgrammingParameters,
processInfo: Resources.StrStateGetProgrammingParameters,
productionProcessNo: 3,
- nextStateOnSuccess: ProcessState.CheckOrderNumber,
- // Wait until this process has been successfully completed
+ nextStateOnSuccess: ProcessState.CheckProductionState,
+ // Wait before starting this process until this process has been successfully completed
waitForSingleProcess: ProcessState.ConnectCordonel),
#endregion -------------------------------- GENERIC-STATES --------------------------------------------
@@ -170,8 +144,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.Picki
productionProcess: new CheckOrderNumber(Resources.StrStateCheckOrderNumber),
processState: ProcessState.CheckOrderNumber,
processInfo: Resources.StrStateCheckOrderNumber,
- productionProcessNo: 4,
- nextStateOnSuccess: ProcessState.CheckProductionState),
+ productionProcessNo: 0,
+ nextStateOnSuccess: ProcessState.DetectCordonel),
// Precondition: - The connection process has to be completed as a readout of some register
// values from the Cordonel are needed to check the update capability:
@@ -180,8 +154,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.Picki
productionProcess: new CheckProductionState(Resources.StrStateCheckProductionState),
processState: ProcessState.CheckProductionState,
processInfo: Resources.StrStateCheckProductionState,
- productionProcessNo: 5,
- nextStateOnSuccess: ProcessState.Idle),
+ productionProcessNo: 4,
+ nextStateOnSuccess: ProcessState.Idle,
+ // Wait before starting this process until this process has been successfully completed
+ waitForSingleProcess: ProcessState.GetProgrammingParameters),
//TODO Roland: implement your states here
#endregion -------------------------------- PICKING-STATES --------------------------------------------
diff --git a/Common/Production/ProductionUiCordonel/ProductionProcesses/ProcessController.cs b/Common/Production/ProductionUiCordonel/ProductionProcesses/ProcessController.cs
index 317a2679..5eae3248 100644
--- a/Common/Production/ProductionUiCordonel/ProductionProcesses/ProcessController.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionProcesses/ProcessController.cs
@@ -32,7 +32,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
// state of the state machine
private ProcessState _stateMachineState;
// locker to avoid repeated state execution
- private ProcessState _lockedProcessState;
+ private ProcessState _lockedStateMachineState;
// sender of state change event to evaluate in e.g. error process
private IProductionProcess _stateChangeRequestProcess;
// List of production processes
@@ -65,7 +65,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// Change the overview table of the GUI to the state of the individual process
///
- public event EventHandler OnSingleProcessStateChanged;
+ public event EventHandler OnProcessStateChanged;
///
/// The overall process chain changed needed to signal to the GUI
@@ -73,7 +73,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
/// - Will be used via the OverallProcessStateChanged_Handler by the individual processes to return the next
/// required sate after break, error or completion to change the state of the state machine.
///
- public event EventHandler OnOverallProcessStateChanged;
+ public event EventHandler OnStateMachineStateChanged;
///
/// Request for logging to GUI output and log-file
@@ -158,7 +158,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
_meterBatch = new MeterBatch();
_meterBatch.AddMeter(_genesisMeter);
// Set lock process to unreachable state delimiter to force initial entry of state machine
- _lockedProcessState = ProcessState.StateListDelimiter;
+ _lockedStateMachineState = ProcessState.StateListDelimiter;
// Create a register restorer
_registerRestorer = new RegisterRestorer(_genesisMeter);
_radioEncryptionKey = new List();
@@ -221,7 +221,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// - Remove process events if process is finished or skipped.
///
- private void SingleProcessStateChanged_Handler(Object sender, SingleProcessStateArgs e)
+ private void ProcessStateChanged_Handler(Object sender, SingleProcessStateArgs e)
{
IProductionProcess pp = null;
if (sender is IProductionProcess process)
@@ -246,7 +246,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
break;
}
// signal state change to GUI
- OnSingleProcessStateChanged?.Invoke(sender, e);
+ OnProcessStateChanged?.Invoke(sender, e);
}
private void ProcessProgress_Handler(Object sender, ProcessProgressArgs e)
@@ -266,7 +266,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// - Initial
///
- private void OverallProcessStateChanged_Handler(Object sender, ProcessStateArgs e)
+ private void ForceStateMachineStateChange_Handler(Object sender, ProcessStateArgs e)
{
// remind caller of the state change request to act on e.g. error processing
_stateChangeRequestProcess = (IProductionProcess)sender;
@@ -308,7 +308,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
private void StateMachine()
{// avoid repeated execution of the state machine on unchanged state
- if (_stateMachineState == _lockedProcessState)
+ if (_stateMachineState == _lockedStateMachineState)
{
Thread.Sleep(ProcessTimerCycleMs >> 1);
}
@@ -316,52 +316,58 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
{
try
{
- // remind backup state to avoid repeated execution and side effects
- _lockedProcessState = _stateMachineState;
+ // ATTENTION: Has to be the very first step here!
+ // Remind backup state to avoid repeated execution and side effects
+ _lockedStateMachineState = _stateMachineState;
- // signal overall process progress to GUI based on ready processes
+ // Signal overall process progress to GUI based on ready processes
CalcAndPushOverAllProgress();
- // signal state change to logger
- OnOverallProcessStateChanged?.Invoke(this, new ProcessStateArgs(_stateMachineState));
+ // Signal state change to logger
+ OnStateMachineStateChanged?.Invoke(this, new ProcessStateArgs(_stateMachineState));
- // get the processStateStruct of the actual set stateMachineSTate
+ // Check if state is the first in the list of production processes to reset cancellationToken
+ var startProcessState = _processStateDef.GetStateOfFirstProcess();
+ if (startProcessState == _stateMachineState)
+ {
+ // This state needs an external state change like user input to go ahead
+ // Remove cancellation token if idle reached for clean start
+ if (_cancellationToken.IsCancellationRequested)
+ {
+ // Reset the cancellation request
+ _cancellationTokenSource?.Dispose();
+ _cancellationTokenSource = new CancellationTokenSource();
+ _cancellationToken = _cancellationTokenSource.Token;
+ }
+
+ // Set up the counter for maximum overall process progress bar in GUI
+ CalcAndPushMaxOverAllProcessSteps();
+ }
+
+ // Get the processStateStruct of this new required stateMachineState
var processStateStruct = _processStateDef.GetProcessStateStructOfState(_stateMachineState);
-
- switch (_stateMachineState)
+
+ switch (_stateMachineState)
{
case ProcessState.Idle:
- // This state needs an external state change like user input to go ahead
- break;
-
- case ProcessState.DetectCordonel:
- // Wait for cancellation
- if (_cancellationToken.IsCancellationRequested)
- {
- Thread.Sleep(500);
- // Reset the cancellation request
- _cancellationTokenSource?.Dispose();
- _cancellationTokenSource = new CancellationTokenSource();
- _cancellationToken = _cancellationTokenSource.Token;
- }
-
- // Set up the counter for maximum overall process progress bar in GUI
- CalcAndPushMaxOverAllProcessSteps();
-
- // Detection of Cordonel has to be completed before assigning next state, so leave to automatic
- // to change the state after successfully execution. The detection is the base for all others.
- StartProcess(processStateStruct);
- break;
+ break;
case ProcessState.CheckNewMeter:
// Detection of Cordonel has to be completed before assigning next state. It has to be checked if
// the meter changed to clear all collected contents of previous run. To UPDATE ALL INFORMATION after
// new meter assignment the "DetectCordonel" has to be repeated to return here "Old Meter" and then
// enter the "ConnectCordonel"!
- _stateMachineState = CheckForNewMeter() ? ProcessState.DetectCordonel : ProcessState.ConnectCordonel;
+ if (processStateStruct.NextStateOnSuccess != null)
+ {
+ _stateMachineState = CheckForNewMeter() ? (ProcessState)processStateStruct.NextStateOnSuccess :
+ processStateStruct.ErrorExitState;
+ }
+ else
+ {
+ _stateMachineState = ProcessState.Error;
+ }
break;
-
case ProcessState.RepeatFailedTests:
_stateMachineState = RepeatFailedTests();
break;
@@ -388,7 +394,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
case ProcessState.StateListDelimiter:
_stateMachineState = ProcessState.Idle;
break;
-
+
default:
// This is the call to the processes for a specific test
StartProcess(processStateStruct);
@@ -397,7 +403,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
_stateMachineState = (ProcessState)processStateStruct.KickOffParallelState;
}
break;
- }
+ }
}
catch (ThreadAbortException ex)
{
@@ -603,15 +609,15 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
if (Processes == null)
Processes = new List();
- // get all processes relevant for EOL from table which has to be sorted
+ // Get all processes relevant for EOL from table which has to be sorted
var processes = _processStateDef.GetAllProductionProcesses();
foreach (var process in processes)
{
- // process is standby for execution after idle, this overrides the eventually abort state
+ // Process is standby for execution after idle, this overrides the eventually abort state
process.IdleProcess();
- // add process to list to feed the process window in main screen
+ // Add process to list to feed the process window in main screen
if (Processes.All(pp => pp.ProcessName != process.ProcessName))
{
Processes.Add(process);
@@ -631,7 +637,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
/// - Starts process.
///
///
- /// actual state
+ /// actual state
///
/// - Initial
///
@@ -658,9 +664,9 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
// deny access if uninitialized
if (Processes == null || processStateStruct.ProductionProcess == null)
return;
-
+
// do not start a new process if any error or abort request is signaled
- if (AnyProcessRequiresAbortion() && !processStateStruct.StartAlways )
+ if (AnyProcessRequiresAbortion() && !processStateStruct.StartAlways)
{
return;
}
@@ -672,8 +678,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
if (processStateStruct.WaitForSingleProcess != null)
{
// each process will have its own timer until a timeout will change the state
- while (Processes.Any(pp => !AnyProcessRequiresAbortion()
- && _processStateDef.GetStateOfProcess(pp) == processStateStruct.WaitForSingleProcess
+ while (Processes.Any(pp => !AnyProcessRequiresAbortion()
+ && _processStateDef.GetStateOfProcess(pp) == processStateStruct.WaitForSingleProcess
&& WaitForProcess(pp)))
{
Thread.Sleep(50);
@@ -694,7 +700,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
}
// if any process exits meanwhile with an error or abort request avoid a start of this process
- if (( !processStateStruct.StartAlways && AnyProcessRequiresAbortion())
+ if ((!processStateStruct.StartAlways && AnyProcessRequiresAbortion())
|| processStateStruct.ProductionProcess.SingleProcessState == SingleProcessState.Idle
|| processStateStruct.ProductionProcess.SingleProcessState == SingleProcessState.Abort)
{
@@ -713,7 +719,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
processStateStruct.ProductionProcess.CancellationToken = _cancellationToken;
// kick off process execution, the breakExitState will not be used
- processStateStruct.ProductionProcess.StartProcess(processStateStruct.NextStateOnSuccess,
+ processStateStruct.ProductionProcess.StartProcess(processStateStruct.NextStateOnSuccess,
processStateStruct.ErrorExitState, processStateStruct.BreakExitState);
// connect process events to actual process
AddProcessEvents(processStateStruct.ProductionProcess);
@@ -753,8 +759,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
process.OnProcessProgressChanged += ProcessProgress_Handler;
process.OnProcessLogRequest += ProcessLog_Handler;
- process.OnSingleProcessStateChanged += SingleProcessStateChanged_Handler;
- process.OnOverallProcessStateChanged += OverallProcessStateChanged_Handler;
+ process.OnProcessStateChanged += ProcessStateChanged_Handler;
+ process.OnForceStateMachineStateChange += ForceStateMachineStateChange_Handler;
}
///
@@ -768,8 +774,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
process.OnProcessProgressChanged -= ProcessProgress_Handler;
process.OnProcessLogRequest -= ProcessLog_Handler;
- process.OnSingleProcessStateChanged -= SingleProcessStateChanged_Handler;
- process.OnOverallProcessStateChanged -= OverallProcessStateChanged_Handler;
+ process.OnProcessStateChanged -= ProcessStateChanged_Handler;
+ process.OnForceStateMachineStateChange -= ForceStateMachineStateChange_Handler;
}
///
@@ -779,7 +785,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
///
/// - Initial
///
- private ProcessState GetProcessState()
+ public ProcessState GetProcessState()
{
return _stateMachineState;
}
@@ -802,6 +808,19 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
return false;
}
+ ///
+ /// Forces the state machine to start the first production process
+ ///
+ /// true, if process state is set
+ ///
+ /// - Initial
+ ///
+ public Boolean StartFirstProcess()
+ {
+ var newProcessState = _processStateDef.GetStateOfFirstProcess();
+ return SetProcessState(newProcessState);
+ }
+
///
/// Remove all processes from the list:
/// - Signal change to GUI,
diff --git a/Common/Production/ProductionUiCordonel/ProductionUiCordonel.csproj b/Common/Production/ProductionUiCordonel/ProductionUiCordonel.csproj
index 2bfd1c05..8b799e62 100644
--- a/Common/Production/ProductionUiCordonel/ProductionUiCordonel.csproj
+++ b/Common/Production/ProductionUiCordonel/ProductionUiCordonel.csproj
@@ -443,6 +443,7 @@
PreserveNewest
+
diff --git a/Common/Production/ProductionUiCordonel/ProductionWindow.xaml.cs b/Common/Production/ProductionUiCordonel/ProductionWindow.xaml.cs
index c13c8393..4db51def 100644
--- a/Common/Production/ProductionUiCordonel/ProductionWindow.xaml.cs
+++ b/Common/Production/ProductionUiCordonel/ProductionWindow.xaml.cs
@@ -62,13 +62,34 @@ namespace Xylem.Common.Production.ProductionUiCordonel
private CordonelRequirements _productionRequirements;
private UserAccessWindow _userAccessWindow;
private readonly IProcessStateDef _processStateDef;
+ private readonly Boolean _autoStartFirstProductionProcess;
#endregion
-
- public ProductionWindow(String softwareName, String projectName, IProcessStateDef processStateDef)
+ ///
+ /// Ctor
+ ///
+ ///
+ /// take the identical window for different software, this is name displayed
+ /// in the header
+ /// table for state definitions for the specific program which feeds the
+ /// state machine
+ /// starts the state machine with the first production process
+ /// defined in the processStateDef with productionProcessNo == 0
+ ///
+ /// - Initial
+ ///
+ ///
+ /// - Additional info of Cordonel.
+ ///
+ ///
+ /// - Auto start.
+ ///
+ public ProductionWindow(String softwareName, String projectName, IProcessStateDef processStateDef,
+ Boolean autoStartFirstProductionProcess)
{
_logger = NLogHelper.CreateOrGetLogger(projectName);
_processStateDef = processStateDef;
+ _autoStartFirstProductionProcess = autoStartFirstProductionProcess;
String msg;
try
{
@@ -118,9 +139,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel
// buttons
UpdateContentControl(btnStart, Properties.Resources.StrBtnStart);
UpdateContentControl(btnStop, Properties.Resources.StrBtnStop);
-
+
InitializeFormState();
-
}
private ApplicationSettings Settings
@@ -193,10 +213,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel
}
//install the process changed event handler for single processes
- _processCtrl.OnSingleProcessStateChanged += SingleProcessStateChanged_Handler;
+ _processCtrl.OnProcessStateChanged += ProcessStateChanged_Handler;
_processCtrl.OnProcessLogRequest += ProcessLog_Handler;
_processCtrl.OnProcessProgressChanged += ProcessProgress_Handler;
- _processCtrl.OnOverallProcessStateChanged += ProcessStateChange_Handler;
+ _processCtrl.OnStateMachineStateChanged += StateMachineStateChanged_Handler;
_timer = new DispatcherTimer();
_timer.Tick += TmrProgressUpdate_Tick;
@@ -208,10 +228,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel
private void Window_Closing(Object sender, CancelEventArgs e)
{
_userAccessWindow?.Close();
- _processCtrl.OnSingleProcessStateChanged -= SingleProcessStateChanged_Handler;
+ _processCtrl.OnProcessStateChanged -= ProcessStateChanged_Handler;
_processCtrl.OnProcessLogRequest -= ProcessLog_Handler;
_processCtrl.OnProcessProgressChanged -= ProcessProgress_Handler;
- _processCtrl.OnOverallProcessStateChanged -= ProcessStateChange_Handler;
+ _processCtrl.OnStateMachineStateChanged -= StateMachineStateChanged_Handler;
_userAccessWindow = null;
_processCtrl.Dispose();
@@ -233,7 +253,19 @@ namespace Xylem.Common.Production.ProductionUiCordonel
cbxSlotBox.SelectedValue = Settings.Slot;
}
}
-
+
+ ///
+ /// Enable/disable the controls
+ ///
+ ///
+ /// - Initial
+ ///
+ ///
+ /// - Additional info of Cordonel.
+ ///
+ ///
+ /// - Auto start.
+ ///
private void InitializeFormState()
{
if (Software.IsRegistrationPending)
@@ -248,12 +280,19 @@ namespace Xylem.Common.Production.ProductionUiCordonel
UiElmEnable(optionsMenuChangePassword, Software.IsAutenticated);
UiElmEnable(optionsMenuLogout, Software.IsAutenticated);
UiElmEnable(optionsMenuLogin, !Software.IsAutenticated);
- UiElmEnable(btnStart, Software.IsAutenticated);
+ // Hide the [Start] button if autostart enabled
+ UiElmEnable(btnStart, Software.IsAutenticated, !_autoStartFirstProductionProcess);
UiElmEnable(btnStop, false);
- UpdateContentControl(lblOperator,
- Software.IsAutenticated
+ UpdateContentControl(lblOperator, Software.IsAutenticated
? $"{Properties.Resources.StrLblOperatorNameText}: {Software.UserName}"
: $"{Properties.Resources.StrLblOperatorNameText}: ?");
+ // Start first production process if required, user is authenticated and state machine is idle
+ if (_autoStartFirstProductionProcess &&
+ Software.IsAutenticated &&
+ ProcessState.Idle == _processCtrl?.GetProcessState())
+ {
+ BtnStart_Click(this, null);
+ }
}
}
@@ -384,7 +423,10 @@ namespace Xylem.Common.Production.ProductionUiCordonel
///
/// - Extended.
///
- private void ProcessStateChange_Handler(Object sender, ProcessStateArgs e)
+ ///
+ /// - Automatic start on idle if required.
+ ///
+ private void StateMachineStateChanged_Handler(Object sender, ProcessStateArgs e)
{
_logger.Debug($"Slot:{Slot} - Final test state: {e.State}");
@@ -396,26 +438,32 @@ namespace Xylem.Common.Production.ProductionUiCordonel
ProcessProgressArgs.ProcessProgressType.OverallProcessesSteps));
ProcessProgress_Handler(this, new ProcessProgressArgs(0,
ProcessProgressArgs.ProcessProgressType.ActualProcessSteps));
+
+ // Start first production process if required and user is authenticated
+ if (_autoStartFirstProductionProcess && Software.IsAutenticated)
+ {
+ BtnStart_Click(this, null);
+ }
}
// Stop all procedures
if (e.State == ProcessState.Stop)
{
_timer?.Stop();
- UiElmEnable(btnStart, true);
+ UiElmEnable(btnStart, true, !_autoStartFirstProductionProcess);
UiElmEnable(btnStop, false);
// update progress bars
ProcessProgress_Handler(this, new ProcessProgressArgs(0,
ProcessProgressArgs.ProcessProgressType.OverallProcessesSteps));
ProcessProgress_Handler(this, new ProcessProgressArgs(0,
ProcessProgressArgs.ProcessProgressType.ActualProcessSteps));
- // remove user control
- SetNewUserControl(null);
}
// Repeat failed tests
if (e.State == ProcessState.RepeatFailedTests)
{
- UiElmEnable(btnStart, false);
+ UiElmEnable(btnStart, false, !_autoStartFirstProductionProcess);
UiElmEnable(btnStop, true);
+ ProcessProgress_Handler(this, new ProcessProgressArgs(0,
+ ProcessProgressArgs.ProcessProgressType.ActualProcessSteps));
_timer?.Start();
}
// Stop time for manual operation and visual inspection as this is not part of the configuration
@@ -427,7 +475,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel
if (e.State == ProcessState.PrepareShippingMode)
{
_timer?.Stop();
- UiElmEnable(btnStart, false);
+ UiElmEnable(btnStart, false, !_autoStartFirstProductionProcess);
UiElmEnable(btnStop, false);
}
// Ready for shipping
@@ -454,6 +502,11 @@ namespace Xylem.Common.Production.ProductionUiCordonel
{
_lockGenesisInfo = false;
}
+ // Enable timer with first automatic process
+ if (e.State == ProcessState.DetectCordonel)
+ {
+ _timer?.Start();
+ }
}
///
@@ -670,7 +723,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel
///
/// - Activate new user control on start of process.
///
- private void SingleProcessStateChanged_Handler(Object sender, SingleProcessStateArgs e)
+ private void ProcessStateChanged_Handler(Object sender, SingleProcessStateArgs e)
{
if (sender is IProductionProcess productionProcess)
{
@@ -731,7 +784,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel
!string.IsNullOrEmpty(genesisMeter.MeterSize) ? genesisMeter.MeterSize : "?");
UpdateContentControl(lblMeterLengthValue,
- !string.IsNullOrEmpty(genesisMeter.MeterLength) ? genesisMeter.MeterLength + " mm": "?");
+ (!string.IsNullOrEmpty(genesisMeter.MeterLength) && !genesisMeter.MeterLength.Equals("?")) ?
+ genesisMeter.MeterLength + " mm": "?");
UpdateContentControl(lblLutValue,
!string.IsNullOrEmpty(genesisMeter.LutCrc) ? genesisMeter.LutCrc : "?");
@@ -807,7 +861,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel
private void BtnStart_Click(Object sender, RoutedEventArgs e)
{
- UiElmEnable(btnStart, false);
+ UiElmEnable(btnStart, false, !_autoStartFirstProductionProcess);
UiElmEnable(btnStop, true);
_startTime = DateTimeOffset.UtcNow;
@@ -815,9 +869,12 @@ namespace Xylem.Common.Production.ProductionUiCordonel
// Avoid display of genesis info before the detect new meter has been executed
_lockGenesisInfo = true;
- // remove last userControl
- dpSubProcess.Children.Clear();
- rtbLog.Document.Blocks.Clear();
+ rtbLog.Dispatcher.Invoke(DispatcherPriority.Normal,
+ new Action(() =>
+ {
+ rtbLog.Document.Blocks.Clear();
+ }
+ ));
// clear all visual fields as it may be a new pcbId
UpdateContentControl(lblOrderNumberValue, "?");
@@ -830,8 +887,9 @@ namespace Xylem.Common.Production.ProductionUiCordonel
UpdateContentControl(lblSerialNumberValue, "?");
UpdateContentControl(lblRegionValue, "?");
UpdateUi(lblPcbIdValue, "?");
+ UpdateUi(lblApprovalText, "", Brushes.Black);
- _processCtrl?.SetProcessState(ProcessState.DetectCordonel);
+ _processCtrl?.StartFirstProcess();
}
private void PrintErrorNote()
diff --git a/Common/Production/ProductionUiCordonel/Properties/Resources.Designer.cs b/Common/Production/ProductionUiCordonel/Properties/Resources.Designer.cs
index bdcdc71b..83d24a30 100644
--- a/Common/Production/ProductionUiCordonel/Properties/Resources.Designer.cs
+++ b/Common/Production/ProductionUiCordonel/Properties/Resources.Designer.cs
@@ -1627,7 +1627,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.Properties {
}
///
- /// Looks up a localized string similar to Check production state.
+ /// Looks up a localized string similar to Check production rules.
///
internal static string StrStateCheckProductionState {
get {
diff --git a/Common/Production/ProductionUiCordonel/Properties/Resources.de.resx b/Common/Production/ProductionUiCordonel/Properties/Resources.de.resx
index df8a4eb6..2483d97d 100644
--- a/Common/Production/ProductionUiCordonel/Properties/Resources.de.resx
+++ b/Common/Production/ProductionUiCordonel/Properties/Resources.de.resx
@@ -236,7 +236,7 @@
Deckelseriennummer einscannen
- Versandvorbedingungen überprüfen
+ Produktionsbedingungen überprüfen
Cordonel verbinden
diff --git a/Common/Production/ProductionUiCordonel/Properties/Resources.resx b/Common/Production/ProductionUiCordonel/Properties/Resources.resx
index 72d2b95f..e3e5c2b6 100644
--- a/Common/Production/ProductionUiCordonel/Properties/Resources.resx
+++ b/Common/Production/ProductionUiCordonel/Properties/Resources.resx
@@ -236,7 +236,7 @@
Scan and check housing serial number
- Check production state
+ Check production rules
Connect Cordonel