2465 lines
113 KiB
C#
2465 lines
113 KiB
C#
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by SpecFlow (https://www.specflow.org/).
|
|
// SpecFlow Version:3.9.0.0
|
|
// SpecFlow Generator Version:3.9.0.0
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
// ------------------------------------------------------------------------------
|
|
#region Designer generated code
|
|
#pragma warning disable
|
|
namespace Xylem.Common.Production.ProductionUiCordonel.UnitTests.Features
|
|
{
|
|
using TechTalk.SpecFlow;
|
|
using System;
|
|
using System.Linq;
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.9.0.0")]
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
[NUnit.Framework.TestFixtureAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("CheckProductionState")]
|
|
public partial class CheckProductionStateFeature
|
|
{
|
|
|
|
private TechTalk.SpecFlow.ITestRunner testRunner;
|
|
|
|
private static string[] featureTags = ((string[])(null));
|
|
|
|
#line 1 "ProductionProcessCheckProductionState.feature"
|
|
#line hidden
|
|
|
|
[NUnit.Framework.OneTimeSetUpAttribute()]
|
|
public virtual void FeatureSetup()
|
|
{
|
|
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
|
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "CheckProductionState", "Test the functionality of the executed production steps and preconditions needed " +
|
|
"for finalizing of the Cordonel and to prepare it \r\nfor shipping.", ProgrammingLanguage.CSharp, featureTags);
|
|
testRunner.OnFeatureStart(featureInfo);
|
|
}
|
|
|
|
[NUnit.Framework.OneTimeTearDownAttribute()]
|
|
public virtual void FeatureTearDown()
|
|
{
|
|
testRunner.OnFeatureEnd();
|
|
testRunner = null;
|
|
}
|
|
|
|
[NUnit.Framework.SetUpAttribute()]
|
|
public void TestInitialize()
|
|
{
|
|
}
|
|
|
|
[NUnit.Framework.TearDownAttribute()]
|
|
public void TestTearDown()
|
|
{
|
|
testRunner.OnScenarioEnd();
|
|
}
|
|
|
|
public void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
|
|
{
|
|
testRunner.OnScenarioInitialize(scenarioInfo);
|
|
testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs<NUnit.Framework.TestContext>(NUnit.Framework.TestContext.CurrentContext);
|
|
}
|
|
|
|
public void ScenarioStart()
|
|
{
|
|
testRunner.OnScenarioStart();
|
|
}
|
|
|
|
public void ScenarioCleanup()
|
|
{
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_001]_Check_EOL_Progress")]
|
|
[NUnit.Framework.CategoryAttribute("CheckEolProgress")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_001_Check_EOL_Progress()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"CheckEolProgress"};
|
|
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_001]_Check_EOL_Progress", @"FUNCTION: Check if an EOL-Progress has all information needed to start the check of all production states.
|
|
PRESETS: none
|
|
INPUTS: The values needed to be predefined automatically by the ""Sentinel"" on EOL-Progress creation:
|
|
""EOL Id"" can be set to any number unequal to 0, 0 will cause an error,
|
|
""EOL StartDate"" set to ""UTC Now"" to take the actual date, else set to ""unknown"" will leave the date empty
|
|
""Cordonel PcbId"" needed for comparison to
|
|
""EOL PcbId"".
|
|
""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.", tagsOfScenario, argumentsOfScenario, featureTags);
|
|
#line 8
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 20
|
|
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 ");
|
|
#line hidden
|
|
#line 22
|
|
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 ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"EOL Id",
|
|
"EOL StartDate",
|
|
"Cordonel PcbId",
|
|
"EOL PcbId",
|
|
"Partial Compare",
|
|
"StringReturn",
|
|
"Comment"});
|
|
table2.AddRow(new string[] {
|
|
"1",
|
|
"123",
|
|
"UTC Now",
|
|
"182100041",
|
|
"182100041",
|
|
"X",
|
|
"Cordonel",
|
|
"EOL Progress successfully created"});
|
|
table2.AddRow(new string[] {
|
|
"2",
|
|
"123",
|
|
"UTC Now",
|
|
"0",
|
|
"182100041",
|
|
"-",
|
|
"null",
|
|
"Unmatching Cordonel PcbId"});
|
|
table2.AddRow(new string[] {
|
|
"3",
|
|
"123",
|
|
"UTC Now",
|
|
"182100041",
|
|
"0",
|
|
"-",
|
|
"null",
|
|
"Unmatching EOL PcbId"});
|
|
table2.AddRow(new string[] {
|
|
"4",
|
|
"123",
|
|
"unknown",
|
|
"182100041",
|
|
"182100041",
|
|
"-",
|
|
"null",
|
|
"Start date not set"});
|
|
table2.AddRow(new string[] {
|
|
"5",
|
|
"0",
|
|
"UTC Now",
|
|
"182100041",
|
|
"182100041",
|
|
"X",
|
|
"null",
|
|
"EOL Id not set"});
|
|
#line 26
|
|
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 ");
|
|
#line hidden
|
|
#line 34
|
|
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_002]_Check_Requirements")]
|
|
[NUnit.Framework.CategoryAttribute("CheckProductionProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_002_Check_Requirements()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"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_002]_Check_Requirements", @"FUNCTION: Check if any requirement is defined being active for this Cordonel.
|
|
PRESETS: none
|
|
INPUTS: Requirements ""Standard Id"" just a number or ""null"",
|
|
""Standard Version"" just a number or ""null"",
|
|
""Standard IsActive"" if ""X"" else ""-"",
|
|
""Special 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, featureTags);
|
|
#line 39
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 50
|
|
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 property to be checked for \'RequirementRequestChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 52
|
|
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",
|
|
"Standard Id",
|
|
"Standard Version",
|
|
"Standard IsActive",
|
|
"Standard IsApproved",
|
|
"Special Id",
|
|
"Special Version",
|
|
"Special IsActive",
|
|
"Special IsApproved",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table3.AddRow(new string[] {
|
|
"1",
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"Okay",
|
|
"Standard Requirement is active and approved"});
|
|
table3.AddRow(new string[] {
|
|
"2",
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"5",
|
|
"3",
|
|
"X",
|
|
"-",
|
|
"Okay",
|
|
"Standard Requirement is active and approved, special is active but not approved"});
|
|
table3.AddRow(new string[] {
|
|
"3",
|
|
"10",
|
|
"5",
|
|
"-",
|
|
"-",
|
|
"5",
|
|
"3",
|
|
"X",
|
|
"X",
|
|
"Okay",
|
|
"Special Requirement is active and approved"});
|
|
table3.AddRow(new string[] {
|
|
"4",
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"5",
|
|
"3",
|
|
"X",
|
|
"X",
|
|
"Okay",
|
|
"Both Requirements are active and approved"});
|
|
table3.AddRow(new string[] {
|
|
"5",
|
|
"10",
|
|
"5",
|
|
"-",
|
|
"-",
|
|
"5",
|
|
"3",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"No Requirement is active and no requirement approved"});
|
|
table3.AddRow(new string[] {
|
|
"6",
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"-",
|
|
"5",
|
|
"3",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Standard Requirement is active but not approved"});
|
|
table3.AddRow(new string[] {
|
|
"7",
|
|
"10",
|
|
"5",
|
|
"-",
|
|
"-",
|
|
"5",
|
|
"3",
|
|
"X",
|
|
"-",
|
|
"Failed",
|
|
"Special Requirement is active but not approved"});
|
|
table3.AddRow(new string[] {
|
|
"8",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"No Requirement is defined"});
|
|
table3.AddRow(new string[] {
|
|
"9",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"5",
|
|
"3",
|
|
"X",
|
|
"X",
|
|
"Failed",
|
|
"Missing Standard Requirement"});
|
|
table3.AddRow(new string[] {
|
|
"10",
|
|
"null",
|
|
"null",
|
|
"X",
|
|
"X",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Standard Requirement is active but undefined"});
|
|
table3.AddRow(new string[] {
|
|
"11",
|
|
"null",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Standard Requirement is active but Id missing"});
|
|
table3.AddRow(new string[] {
|
|
"12",
|
|
"10",
|
|
"null",
|
|
"X",
|
|
"X",
|
|
"null",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Standard Requirement is active but version missing"});
|
|
table3.AddRow(new string[] {
|
|
"13",
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"null",
|
|
"2",
|
|
"X",
|
|
"X",
|
|
"Failed",
|
|
"Special Requirement is active but Id missing"});
|
|
table3.AddRow(new string[] {
|
|
"14",
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"5",
|
|
"null",
|
|
"X",
|
|
"X",
|
|
"Failed",
|
|
"Special Requirement is active but version missing"});
|
|
#line 56
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table3, "And ");
|
|
#line hidden
|
|
#line 73
|
|
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();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("[SRS_TBF_EOL_PP_CHECK_PROD_STATE_003]_Check_CSD_Status")]
|
|
[NUnit.Framework.CategoryAttribute("CheckProductionProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_003_Check_CSD_Status()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"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_CSD_Status", @"FUNCTION: Check the Customer Specific Document (CSD) for its status.
|
|
PRESETS: none
|
|
INPUTS: ""CSD ID"" the identification number of the CSD,
|
|
""CSD Name"" a string for verbose identification,
|
|
""CSD Code"" the code in SAP,
|
|
""CSD Status"" giving the status ""Null"", ""New"", ""Blocked"", ""Known"" or ""Released"".
|
|
OUTPUT: ""StatusReturn"" with results ""Okay"", ""Failed"" or ""Warning""", tagsOfScenario, argumentsOfScenario, featureTags);
|
|
#line 79
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 88
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 89
|
|
testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 90
|
|
testRunner.And("Name the private function to be checked for functionality \'ValidateCsd\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"CSD ID",
|
|
"CSD Name",
|
|
"CSD Code",
|
|
"CSD Status",
|
|
"StatusReturn",
|
|
"Comment"});
|
|
table4.AddRow(new string[] {
|
|
"1",
|
|
"3100782",
|
|
"CSD 767978 Canal de Isabel",
|
|
"O1",
|
|
"Released",
|
|
"Okay",
|
|
"Released CSD approved for production"});
|
|
table4.AddRow(new string[] {
|
|
"2",
|
|
"3100782",
|
|
"CSD 767978 Canal de Isabel",
|
|
"O1",
|
|
"Known",
|
|
"Warning",
|
|
"Known CSD temporary for production"});
|
|
table4.AddRow(new string[] {
|
|
"3",
|
|
"3100782",
|
|
"CSD 767978 Canal de Isabel",
|
|
"O1",
|
|
"New",
|
|
"Failed",
|
|
"New CSD invalid for production"});
|
|
table4.AddRow(new string[] {
|
|
"4",
|
|
"3100782",
|
|
"CSD 767978 Canal de Isabel",
|
|
"O1",
|
|
"Blocked",
|
|
"Failed",
|
|
"Blocked CSD invalid for production"});
|
|
table4.AddRow(new string[] {
|
|
"5",
|
|
"null",
|
|
"CSD 767978 Canal de Isabel",
|
|
"O1",
|
|
"Released",
|
|
"Failed",
|
|
"Invalid CSD ID invalid for production"});
|
|
table4.AddRow(new string[] {
|
|
"6",
|
|
"3100782",
|
|
"null",
|
|
"O1",
|
|
"Released",
|
|
"Failed",
|
|
"Invalid CSD Name invalid for production"});
|
|
table4.AddRow(new string[] {
|
|
"7",
|
|
"3100782",
|
|
"CSD 767978 Canal de Isabel",
|
|
"null",
|
|
"Released",
|
|
"Failed",
|
|
"Invalid CSD Code invalid for production"});
|
|
#line 93
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table4, "And ");
|
|
#line hidden
|
|
#line 103
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 104
|
|
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_004]_Check_ProductionOrderNo")]
|
|
[NUnit.Framework.CategoryAttribute("CheckProductionProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_004_Check_ProductionOrderNo()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"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_004]_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, featureTags);
|
|
#line 109
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 116
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 117
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckProductionOrderNu" +
|
|
"mber\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 118
|
|
testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 119
|
|
testRunner.And("Name the property to be checked for \'RequirementOrderChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel ProdOrderNo",
|
|
"Requirement ProdOrderNo",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table5.AddRow(new string[] {
|
|
"1",
|
|
"3118323",
|
|
"3118323",
|
|
"Okay",
|
|
"Order number is identical"});
|
|
table5.AddRow(new string[] {
|
|
"2",
|
|
"3118323",
|
|
"0",
|
|
"Failed",
|
|
"Unmatching Requirement Order number"});
|
|
table5.AddRow(new string[] {
|
|
"3",
|
|
"0",
|
|
"3118323",
|
|
"Failed",
|
|
"Unmatching Cordonel Order number"});
|
|
#line 122
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table5, "And ");
|
|
#line hidden
|
|
#line 127
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 128
|
|
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_005]_Check_PcbId")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCordonelProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_005_Check_PcbId()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"CheckCordonelProperties"};
|
|
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_005]_Check_PcbId", @"FUNCTION: Compare the PcbId from Cordonel, EOL-progress and requirement.
|
|
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, featureTags);
|
|
#line 133
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 140
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 141
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckPcbId\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 142
|
|
testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 143
|
|
testRunner.And("Name the property to be checked for \'RequirementPcbIdChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel PcbId",
|
|
"EOL PcbId",
|
|
"Requirement PcbId",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table6.AddRow(new string[] {
|
|
"1",
|
|
"182100041",
|
|
"182100041",
|
|
"null",
|
|
"Skipped",
|
|
"Order based requirement"});
|
|
table6.AddRow(new string[] {
|
|
"2",
|
|
"182100041",
|
|
"182100041",
|
|
"182100041",
|
|
"Okay",
|
|
"PcbId is identical"});
|
|
table6.AddRow(new string[] {
|
|
"3",
|
|
"182100041",
|
|
"0",
|
|
"182100041",
|
|
"Failed",
|
|
"Unmatching EOL Progress PcbId"});
|
|
table6.AddRow(new string[] {
|
|
"4",
|
|
"182100041",
|
|
"182100041",
|
|
"0",
|
|
"Failed",
|
|
"Unmatching Requirement PcbId"});
|
|
table6.AddRow(new string[] {
|
|
"5",
|
|
"0",
|
|
"182100041",
|
|
"182100041",
|
|
"Failed",
|
|
"Unmatching Cordonel PcbId"});
|
|
table6.AddRow(new string[] {
|
|
"6",
|
|
"1821000",
|
|
"182100041",
|
|
"182100041",
|
|
"Failed",
|
|
"Cordonel PcbId to short"});
|
|
table6.AddRow(new string[] {
|
|
"7",
|
|
"null",
|
|
"182100041",
|
|
"182100041",
|
|
"Failed",
|
|
"Cordonel PcbId is null"});
|
|
#line 146
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table6, "And ");
|
|
#line hidden
|
|
#line 156
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 157
|
|
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_006]_Check_Region")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCordonelProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_006_Check_Region()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"CheckCordonelProperties"};
|
|
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_006]_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, featureTags);
|
|
#line 162
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 168
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 169
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckRegion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 170
|
|
testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 171
|
|
testRunner.And("Name the property to be checked for \'RequirementRegionChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel Region",
|
|
"Requirement Region",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table7.AddRow(new string[] {
|
|
"1",
|
|
"EMEA",
|
|
"EMEA",
|
|
"Okay",
|
|
"Region is identical"});
|
|
table7.AddRow(new string[] {
|
|
"2",
|
|
"NA",
|
|
"NA",
|
|
"Okay",
|
|
"Region is identical"});
|
|
table7.AddRow(new string[] {
|
|
"3",
|
|
"EMEA",
|
|
"NA",
|
|
"Failed",
|
|
"Unmatched Region"});
|
|
table7.AddRow(new string[] {
|
|
"4",
|
|
"null",
|
|
"EMEA",
|
|
"Failed",
|
|
"Unknown Cordonel Region"});
|
|
table7.AddRow(new string[] {
|
|
"5",
|
|
"EMEA",
|
|
"null",
|
|
"Failed",
|
|
"Unknown Requirement Region"});
|
|
table7.AddRow(new string[] {
|
|
"6",
|
|
"null",
|
|
"null",
|
|
"Failed",
|
|
"Unspecified Region"});
|
|
#line 174
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table7, "And ");
|
|
#line hidden
|
|
#line 182
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 183
|
|
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_007]_Check_LUT_CRC")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCordonelProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_007_Check_LUT_CRC()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"CheckCordonelProperties"};
|
|
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_007]_Check_LUT_CRC", @"FUNCTION: Check for the checksum (cyclic redundancy check - CRC) of the metrology lookup-table.
|
|
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, featureTags);
|
|
#line 188
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 194
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 195
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckLutCrc\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 196
|
|
testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 197
|
|
testRunner.And("Name the property to be checked for \'ProductionStatusLutCrc\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel LUT CRC",
|
|
"Requirement LUT CRC",
|
|
"StringReturn",
|
|
"Comment"});
|
|
table8.AddRow(new string[] {
|
|
"1",
|
|
"0xEB7C",
|
|
"0xEB7C",
|
|
"0xEB7C",
|
|
"LUT CRC is identical"});
|
|
table8.AddRow(new string[] {
|
|
"2",
|
|
"0x0000",
|
|
"0xEB7C",
|
|
"null",
|
|
"Wrong Cordonel LUT CRC"});
|
|
table8.AddRow(new string[] {
|
|
"3",
|
|
"0xEB7C",
|
|
"0x0000",
|
|
"null",
|
|
"Wrong Requirement LUT CRC"});
|
|
table8.AddRow(new string[] {
|
|
"4",
|
|
"null",
|
|
"0xEB7C",
|
|
"null",
|
|
"Cordonel LUT CRC undefined"});
|
|
table8.AddRow(new string[] {
|
|
"5",
|
|
"0xEB7C",
|
|
"null",
|
|
"null",
|
|
"Requirement LUT CRC undefined"});
|
|
table8.AddRow(new string[] {
|
|
"6",
|
|
"null",
|
|
"null",
|
|
"null",
|
|
"LUT CRC\'s undefined"});
|
|
#line 200
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table8, "And ");
|
|
#line hidden
|
|
#line 209
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 210
|
|
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_008]_Check_Meter_Size")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCordonelProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_008_Check_Meter_Size()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"CheckCordonelProperties"};
|
|
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_008]_Check_Meter_Size", @"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.", tagsOfScenario, argumentsOfScenario, featureTags);
|
|
#line 215
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 221
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 222
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckMeterSize\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 223
|
|
testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 224
|
|
testRunner.And("Name the property to be checked for \'ProductionStatusMeterSize\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel Meter Size",
|
|
"Requirement Meter Size",
|
|
"StringReturn",
|
|
"Comment"});
|
|
table9.AddRow(new string[] {
|
|
"1",
|
|
"DN50",
|
|
"DN50",
|
|
"DN50",
|
|
"Meter size is identical"});
|
|
table9.AddRow(new string[] {
|
|
"2",
|
|
"US1_5",
|
|
"1 1/2 INC",
|
|
"1 1/2 INC",
|
|
"Meter size is identical but uses different naming"});
|
|
table9.AddRow(new string[] {
|
|
"3",
|
|
"DN80",
|
|
"1 1/2 INC",
|
|
"null",
|
|
"Wrong Requirement Meter size"});
|
|
table9.AddRow(new string[] {
|
|
"4",
|
|
"null",
|
|
"DN50",
|
|
"null",
|
|
"Cordonel Meter size undefined"});
|
|
table9.AddRow(new string[] {
|
|
"5",
|
|
"DN50",
|
|
"null",
|
|
"null",
|
|
"Requirement Meter size undefined"});
|
|
table9.AddRow(new string[] {
|
|
"6",
|
|
"null",
|
|
"null",
|
|
"null",
|
|
"Meter sizes undefined"});
|
|
#line 227
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table9, "And ");
|
|
#line hidden
|
|
#line 236
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 237
|
|
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_FW_and_Apps")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCordonelProperties")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_009_Check_FW_And_Apps()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"CheckCordonelProperties"};
|
|
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_FW_and_Apps", "FUNCTION: Compare Cordonel installed Firmware and Apps with required Firmware.\r\n " +
|
|
" All Apps will be verified for their versions and CRC. \r\n The C" +
|
|
"ore-Revision will be validated.\r\nPRESETS: none\r\nINPUTS: \"Cordonel Core Revisi" +
|
|
"on\" as float specifying the Breeze operating system version, it will be checked " +
|
|
"if it is compatible to \r\n the installed FW version.\r\n \"Cordone" +
|
|
"l FW Version\" this will be installed to the MockGenesis:\r\n Check if a v" +
|
|
"alid FW package is in \"C:\\User\\[UserName]\\AppData\\Roaming\\Genesis\\MockFwExamples" +
|
|
"\" like \"EMEA_R130\" or \"NA_R2006\"\r\n Those FW package directories need to" +
|
|
" contain the \"Cordonel FW Version\" without the \".\" between major, minor and buil" +
|
|
"d version.\r\n The default FW installed in the MockGenesis is hard coded " +
|
|
"to R1.3.0B.\r\n \"Requirement FW Version\" this version should be installed" +
|
|
". It will be loaded from the location \"C:\\User\\[UserName]\\AppData\\\r\n Ro" +
|
|
"aming\\Genesis\\MockFwExamples\".\r\n \"Modify AppID\" any application with it" +
|
|
"s decimal version which should be modified to pass the negative tests:\r\n " +
|
|
" \"Erase App\" \"X\" for simulated erasure else \"-\",\r\n \"Change App Version" +
|
|
"\" \"X\" to set this to an unspecified version else \"-\",\r\n \"Change App CRC" +
|
|
"\" \"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 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, featureTags);
|
|
#line 242
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 266
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 267
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckFwAndApps\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 268
|
|
testRunner.And("Name the object type holding the property \'StringReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 269
|
|
testRunner.And("Name the property to be checked for \'ProductionStatusFwVersion\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel Core Revision",
|
|
"Cordonel FW Version",
|
|
"Requirement FW Version",
|
|
"Modify AppId",
|
|
"Erase App",
|
|
"Change App Version",
|
|
"Change App CRC",
|
|
"StringReturn",
|
|
"Comment"});
|
|
table10.AddRow(new string[] {
|
|
"1",
|
|
"1.71",
|
|
"R1.3.0B",
|
|
"R1.3.0B",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"R1.3.0B",
|
|
"FW Version is identical"});
|
|
table10.AddRow(new string[] {
|
|
"2",
|
|
"1.71",
|
|
"R2.0.06",
|
|
"R2.0.06",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"R2.0.06",
|
|
"FW Version is identical"});
|
|
table10.AddRow(new string[] {
|
|
"3",
|
|
"1.60",
|
|
"R1.3.0B",
|
|
"R1.3.0B",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"null",
|
|
"Core revision is incompatible"});
|
|
table10.AddRow(new string[] {
|
|
"4",
|
|
"1.71",
|
|
"R1.3.0B",
|
|
"R1.2.47",
|
|
"null",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"null",
|
|
"Wrong FW version installed"});
|
|
table10.AddRow(new string[] {
|
|
"5",
|
|
"1.71",
|
|
"R1.3.0B",
|
|
"R1.3.0B",
|
|
"15",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"null",
|
|
"Genesis flow is invalid"});
|
|
table10.AddRow(new string[] {
|
|
"6",
|
|
"1.71",
|
|
"R1.3.0B",
|
|
"R1.3.0B",
|
|
"15",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"null",
|
|
"Genesis flow version modified"});
|
|
table10.AddRow(new string[] {
|
|
"7",
|
|
"1.71",
|
|
"R1.3.0B",
|
|
"R1.3.0B",
|
|
"15",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"null",
|
|
"Genesis flow CRC modified"});
|
|
#line 272
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table10, "And ");
|
|
#line hidden
|
|
#line 282
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 283
|
|
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_Kitron_Radio_Signal_Levels")]
|
|
[NUnit.Framework.CategoryAttribute("CheckKitronRadioSignalLevels")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_010_Check_Kitron_Radio_Signal_Levels()
|
|
{
|
|
string[] tagsOfScenario = new string[] {
|
|
"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_010]_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!", tagsOfScenario, argumentsOfScenario, featureTags);
|
|
#line 288
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 297
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 298
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckKitronRadioSignal" +
|
|
"Levels\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 299
|
|
testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 303
|
|
testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 304
|
|
testRunner.And("Define production process for sequencing before test \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Cordonel Meter Size",
|
|
"StatusReturn",
|
|
"Comment"});
|
|
table11.AddRow(new string[] {
|
|
"1",
|
|
"DN50",
|
|
"Okay",
|
|
"Valid Kitron radio calibration values"});
|
|
table11.AddRow(new string[] {
|
|
"2",
|
|
"DN02",
|
|
"Failed",
|
|
"Missing Kitron radio calibration values"});
|
|
#line 307
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table11, "And ");
|
|
#line hidden
|
|
#line 311
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 312
|
|
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_Battery_Load")]
|
|
[NUnit.Framework.CategoryAttribute("CheckLifetimes")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_011_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_011]_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,
|
|
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, featureTags);
|
|
#line 316
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
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 \'CheckRemainingBatteryL" +
|
|
"oad\'", ((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 \'ProductionStatusBatteryLoadChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Normal Current [uA]",
|
|
"Production Supplement [%]",
|
|
"Actual Lifetime [days]",
|
|
"Actual Drained [%]",
|
|
"Max Drained [%]",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table12.AddRow(new string[] {
|
|
"1",
|
|
"119.8",
|
|
"1.5",
|
|
"90",
|
|
"2.0",
|
|
"5.0",
|
|
"Okay",
|
|
"Alternative threshold okay"});
|
|
table12.AddRow(new string[] {
|
|
"2",
|
|
"119.8",
|
|
"1.5",
|
|
"90",
|
|
"2.5",
|
|
"5.0",
|
|
"Failed",
|
|
"Alternative threshold exceeded"});
|
|
table12.AddRow(new string[] {
|
|
"3",
|
|
"119.8",
|
|
"1.5",
|
|
"180",
|
|
"2.5",
|
|
"2.0",
|
|
"Failed",
|
|
"Absolute max drained limit exceeded"});
|
|
table12.AddRow(new string[] {
|
|
"4",
|
|
"null",
|
|
"null",
|
|
"90",
|
|
"2.0",
|
|
"2.0",
|
|
"Okay",
|
|
"Normal threshold okay"});
|
|
table12.AddRow(new string[] {
|
|
"5",
|
|
"null",
|
|
"null",
|
|
"90",
|
|
"2.5",
|
|
"2.0",
|
|
"Failed",
|
|
"Normal threshold exceeded"});
|
|
table12.AddRow(new string[] {
|
|
"6",
|
|
"null",
|
|
"null",
|
|
"0",
|
|
"2.0",
|
|
"5.0",
|
|
"Failed",
|
|
"Lifetime of 0 days error"});
|
|
table12.AddRow(new string[] {
|
|
"7",
|
|
"null",
|
|
"null",
|
|
"90",
|
|
"0.0",
|
|
"5.0",
|
|
"Failed",
|
|
"Drained load of 0 % error"});
|
|
table12.AddRow(new string[] {
|
|
"8",
|
|
"null",
|
|
"null",
|
|
"90",
|
|
"2.0",
|
|
"null",
|
|
"Failed",
|
|
"Max remaining battery load is null"});
|
|
#line 336
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table12, "And ");
|
|
#line hidden
|
|
#line 346
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 347
|
|
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_Remaining_Lifetime")]
|
|
[NUnit.Framework.CategoryAttribute("CheckLifetimes")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_012_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_012]_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, featureTags);
|
|
#line 352
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 360
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 361
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckRemainingLifetime" +
|
|
"\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 362
|
|
testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 363
|
|
testRunner.And("Name the property to be checked for \'ProductionStatusRemainingLifeTimeChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Actual Lifetime [days]",
|
|
"Required Lifetime [years]",
|
|
"Actual Drained [%]",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table13.AddRow(new string[] {
|
|
"1",
|
|
"90",
|
|
"20.0",
|
|
"1.0",
|
|
"Okay",
|
|
"Remaining lifetime as required"});
|
|
table13.AddRow(new string[] {
|
|
"2",
|
|
"365",
|
|
"5.0",
|
|
"10.0",
|
|
"Okay",
|
|
"Remaining lifetime as required"});
|
|
table13.AddRow(new string[] {
|
|
"3",
|
|
"90",
|
|
"20.0",
|
|
"2.0",
|
|
"Failed",
|
|
"Remaining lifetime to short"});
|
|
table13.AddRow(new string[] {
|
|
"4",
|
|
"0",
|
|
"20.0",
|
|
"1.0",
|
|
"Failed",
|
|
"Actual lifetime of 0 days error"});
|
|
table13.AddRow(new string[] {
|
|
"5",
|
|
"90",
|
|
"20.0",
|
|
"0.0",
|
|
"Failed",
|
|
"Actual drained load of 0 % error"});
|
|
table13.AddRow(new string[] {
|
|
"6",
|
|
"90",
|
|
"null",
|
|
"1.0",
|
|
"Failed",
|
|
"Required lifetime is null"});
|
|
#line 366
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table13, "And ");
|
|
#line hidden
|
|
#line 375
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 376
|
|
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_Storage_Months")]
|
|
[NUnit.Framework.CategoryAttribute("CheckLifetimeS")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_013_Check_Storage_Months()
|
|
{
|
|
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_013]_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: ""EOL Status"" with results ""Okay"" or ""Failed""", tagsOfScenario, argumentsOfScenario, featureTags);
|
|
#line 380
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 387
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 388
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckStorageMonths\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 389
|
|
testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 390
|
|
testRunner.And("Name the property to be checked for \'MaxStorageMonthsChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Assembly Months before Now",
|
|
"Max Storage Months",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table14.AddRow(new string[] {
|
|
"1",
|
|
"-3.0",
|
|
"3.0",
|
|
"Okay",
|
|
"Storage months in range"});
|
|
table14.AddRow(new string[] {
|
|
"2",
|
|
"-3.0",
|
|
"2.0",
|
|
"Failed",
|
|
"Exceeded maximal allowed storage time"});
|
|
table14.AddRow(new string[] {
|
|
"3",
|
|
"null",
|
|
"2.0",
|
|
"Failed",
|
|
"Error assembly months are null"});
|
|
table14.AddRow(new string[] {
|
|
"4",
|
|
"-3.0",
|
|
"null",
|
|
"Failed",
|
|
"Error max storage months are null"});
|
|
table14.AddRow(new string[] {
|
|
"5",
|
|
"3.0",
|
|
"3.0",
|
|
"Failed",
|
|
"Error assembly time lies in the future"});
|
|
table14.AddRow(new string[] {
|
|
"6",
|
|
"-3.0",
|
|
"-3.0",
|
|
"Failed",
|
|
"Error storage months is negative"});
|
|
#line 393
|
|
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.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_Preadjustment")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCalibrations")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_014_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_014]_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, featureTags);
|
|
#line 408
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
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.And("Name the private function to be checked for functionality \'CheckPreadjustment\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 418
|
|
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 property to be checked for \'ProductionStatusZeroFlowChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Test Bench Fields",
|
|
"Test Bench State[4]",
|
|
"Skip Calib",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table15.AddRow(new string[] {
|
|
"1",
|
|
"5",
|
|
"21",
|
|
"X",
|
|
"Skipped",
|
|
"Skipped calibration checks by requirement"});
|
|
table15.AddRow(new string[] {
|
|
"2",
|
|
"5",
|
|
"21",
|
|
"-",
|
|
"Okay",
|
|
"Test bench preadjustment succeeded"});
|
|
table15.AddRow(new string[] {
|
|
"3",
|
|
"5",
|
|
"0",
|
|
"-",
|
|
"Okay",
|
|
"Test bench preadjustment succeeded"});
|
|
table15.AddRow(new string[] {
|
|
"4",
|
|
"5",
|
|
"500",
|
|
"-",
|
|
"Okay",
|
|
"Test bench preadjustment succeeded"});
|
|
table15.AddRow(new string[] {
|
|
"5",
|
|
"4",
|
|
"21",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench fields too little"});
|
|
table15.AddRow(new string[] {
|
|
"6",
|
|
"5",
|
|
"null",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench status[4] is null"});
|
|
table15.AddRow(new string[] {
|
|
"7",
|
|
"null",
|
|
"21",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench fields null"});
|
|
#line 422
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table15, "And ");
|
|
#line hidden
|
|
#line 432
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 433
|
|
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_Flow_Test_State")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCalibrations")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_015_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_015]_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, featureTags);
|
|
#line 438
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 446
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 447
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckFlowTestState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 448
|
|
testRunner.And("Name the object type holding the property \'EOLStatus\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 449
|
|
testRunner.And("Name the property to be checked for \'ProductionStatusCalibrationChecked\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"TestNo",
|
|
"Test Bench Fields",
|
|
"Test Bench State[5]",
|
|
"Skip Calib",
|
|
"EOL Status",
|
|
"Comment"});
|
|
table16.AddRow(new string[] {
|
|
"1",
|
|
"6",
|
|
"30",
|
|
"X",
|
|
"Skipped",
|
|
"Skipped calibration checks by requirement"});
|
|
table16.AddRow(new string[] {
|
|
"2",
|
|
"6",
|
|
"30",
|
|
"-",
|
|
"Okay",
|
|
"Test bench calibration succeeded"});
|
|
table16.AddRow(new string[] {
|
|
"3",
|
|
"6",
|
|
"30",
|
|
"-",
|
|
"Okay",
|
|
"Test bench calibration succeeded"});
|
|
table16.AddRow(new string[] {
|
|
"4",
|
|
"5",
|
|
"30",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench fields too little"});
|
|
table16.AddRow(new string[] {
|
|
"5",
|
|
"6",
|
|
"29",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench status[5] number to small"});
|
|
table16.AddRow(new string[] {
|
|
"6",
|
|
"6",
|
|
"31",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench status[5] number to large"});
|
|
table16.AddRow(new string[] {
|
|
"7",
|
|
"6",
|
|
"null",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench status[5] is null"});
|
|
table16.AddRow(new string[] {
|
|
"8",
|
|
"null",
|
|
"30",
|
|
"-",
|
|
"Failed",
|
|
"Error test bench fields null"});
|
|
#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_Calib_Factors")]
|
|
[NUnit.Framework.CategoryAttribute("CheckCalibrations")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_016_Check_Calib_Factors()
|
|
{
|
|
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_016]_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, featureTags);
|
|
#line 469
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 477
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 478
|
|
testRunner.And("Name the private function to be checked for functionality \'CheckCalibrationValues" +
|
|
"\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 479
|
|
testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table17 = 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"});
|
|
table17.AddRow(new string[] {
|
|
"1",
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"X",
|
|
"Skipped",
|
|
"Skipped calib checks per requirement"});
|
|
table17.AddRow(new string[] {
|
|
"2",
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"-",
|
|
"Okay",
|
|
"Valid calib factors"});
|
|
table17.AddRow(new string[] {
|
|
"3",
|
|
"15625",
|
|
"20000",
|
|
"30000",
|
|
"15625",
|
|
"20000",
|
|
"30000",
|
|
"-",
|
|
"Okay",
|
|
"Valid calib factors (1 default)"});
|
|
table17.AddRow(new string[] {
|
|
"4",
|
|
"15625",
|
|
"15625",
|
|
"30000",
|
|
"15625",
|
|
"15625",
|
|
"30000",
|
|
"-",
|
|
"Okay",
|
|
"Valid calib factors (2 defaults)"});
|
|
table17.AddRow(new string[] {
|
|
"5",
|
|
"15625",
|
|
"15625",
|
|
"15625",
|
|
"15625",
|
|
"15625",
|
|
"15625",
|
|
"-",
|
|
"Warning",
|
|
"Invalid Meter calib factors (3 defaults)"});
|
|
table17.AddRow(new string[] {
|
|
"6",
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"10000",
|
|
"44444",
|
|
"30000",
|
|
"-",
|
|
"Failed",
|
|
"Inconsistent calib factors DB to Meter"});
|
|
#line 482
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table17, "And ");
|
|
#line hidden
|
|
#line 493
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 494
|
|
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_017]_Check_Complete_Flow_Production_State")]
|
|
[NUnit.Framework.CategoryAttribute("CheckProductionStateProcess")]
|
|
public void SRS_TBF_EOL_PP_CHECK_PROD_STATE_017_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_017]_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 - CSD ID | CSD Name | CSD Code | CSD Status\r\n - Cordo" +
|
|
"nel ProdOrderNo | Requirement ProdOrderNo \r\n - Cordonel PcbId | EOL Pcb" +
|
|
"Id | 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 Revision | Cordonel FW Vers" +
|
|
"ion | Requirement FW Version\r\n - Actual Lifetime [days] | Actual Draine" +
|
|
"d [%] | Max Drained [%] \r\n - Actual Lifetime [days] | Required Lifetime" +
|
|
" [years] | Actual Drained [%] \r\n - Assembly Months before Now | Max Sto" +
|
|
"rage Months\r\n - Test Bench Fields | Test Bench State[4]\r\n - Te" +
|
|
"st Bench Fields | Test Bench State[5] \r\n - Meter Calib Fact 1 | Meter C" +
|
|
"alib 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 check if all tests are exe" +
|
|
"cuted. REMIND: Only ONE should be set to \"X\"! \r\n Leave all others as \"-" +
|
|
"\" to observe better the unique setup!\r\nOUTPUT: \"StatusReturn\" with results \"Ok" +
|
|
"ay\" or \"Failed\", \r\n additional check of complete EOL progress status. T" +
|
|
"he expected EOL result will be set with the preset values and \r\n modifi" +
|
|
"ed with the \"Kill x\" from \"Okay\" to \"Failed\" ", tagsOfScenario, argumentsOfScenario, featureTags);
|
|
#line 499
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 523
|
|
testRunner.Given("Initialize new test scenario for production process \'CheckProductionState\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 524
|
|
testRunner.And("Name the public function to be checked for functionality \'ExecuteProcess\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 525
|
|
testRunner.And("Name the object type holding the property \'StatusReturn\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 528
|
|
testRunner.And("Activate EOL progress check", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 532
|
|
testRunner.And("Define production process for sequencing before test \'ExecFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 533
|
|
testRunner.And("Define production process for sequencing before test \'CheckFinalParametrization\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"EOL Id",
|
|
"EOL StartDate",
|
|
"Cordonel PcbId",
|
|
"EOL PcbId",
|
|
"Comment"});
|
|
table18.AddRow(new string[] {
|
|
"123",
|
|
"UTC Now",
|
|
"182100041",
|
|
"182100041",
|
|
"EOL Progress successfully created"});
|
|
#line 538
|
|
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[] {
|
|
"Standard Id",
|
|
"Standard Version",
|
|
"Standard IsActive",
|
|
"Standard IsApproved",
|
|
"Special Id",
|
|
"Special Version",
|
|
"Comment"});
|
|
table19.AddRow(new string[] {
|
|
"10",
|
|
"5",
|
|
"X",
|
|
"X",
|
|
"null",
|
|
"null",
|
|
"Standard Requirement is active and approved"});
|
|
#line 542
|
|
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[] {
|
|
"CSD ID",
|
|
"CSD Name",
|
|
"CSD Code",
|
|
"CSD Status",
|
|
"Comment"});
|
|
table20.AddRow(new string[] {
|
|
"3100782",
|
|
"CSD 767978 Canal de Isabel",
|
|
"O1",
|
|
"Released",
|
|
"Released CSD approved for production"});
|
|
#line 546
|
|
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 ProdOrderNo",
|
|
"Requirement ProdOrderNo",
|
|
"Comment"});
|
|
table21.AddRow(new string[] {
|
|
"3118323",
|
|
"3118323",
|
|
"Order number is identical"});
|
|
#line 550
|
|
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 PcbId",
|
|
"EOL PcbId",
|
|
"Requirement PcbId",
|
|
"Comment"});
|
|
table22.AddRow(new string[] {
|
|
"182100041",
|
|
"182100041",
|
|
"182100041",
|
|
"PcbId is identical"});
|
|
#line 554
|
|
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 Region",
|
|
"Requirement Region",
|
|
"Comment"});
|
|
table23.AddRow(new string[] {
|
|
"EMEA",
|
|
"EMEA",
|
|
"Region is identical"});
|
|
#line 558
|
|
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 LUT CRC",
|
|
"Requirement LUT CRC",
|
|
"Comment"});
|
|
table24.AddRow(new string[] {
|
|
"0xEB7C",
|
|
"0xEB7C",
|
|
"LUT CRC is identical"});
|
|
#line 562
|
|
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[] {
|
|
"Cordonel Meter Size",
|
|
"Requirement Meter Size",
|
|
"Comment"});
|
|
table25.AddRow(new string[] {
|
|
"DN50",
|
|
"DN50",
|
|
"Meter size is identical"});
|
|
#line 566
|
|
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[] {
|
|
"Cordonel Core Revision",
|
|
"Cordonel FW Version",
|
|
"Requirement FW Version",
|
|
"Comment"});
|
|
table26.AddRow(new string[] {
|
|
"1.71",
|
|
"R1.3.0B",
|
|
"R1.3.0B",
|
|
"FW Version is identical"});
|
|
#line 570
|
|
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[] {
|
|
"Max Drained [%]",
|
|
"Comment"});
|
|
table27.AddRow(new string[] {
|
|
"2.0",
|
|
"Normal threshold okay"});
|
|
#line 574
|
|
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[] {
|
|
"Actual Lifetime [days]",
|
|
"Required Lifetime [years]",
|
|
"Actual Drained [%]",
|
|
"Comment"});
|
|
table28.AddRow(new string[] {
|
|
"90",
|
|
"20.0",
|
|
"1.0",
|
|
"Remaining lifetime as required"});
|
|
#line 578
|
|
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[] {
|
|
"Assembly Months before Now",
|
|
"Max Storage Months",
|
|
"Comment"});
|
|
table29.AddRow(new string[] {
|
|
"-3.0",
|
|
"3.0",
|
|
"Storage months in range"});
|
|
#line 582
|
|
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[] {
|
|
"Test Bench Fields",
|
|
"Test Bench State[4]",
|
|
"Comment"});
|
|
table30.AddRow(new string[] {
|
|
"5",
|
|
"21",
|
|
"Test bench preadjustment succeeded"});
|
|
#line 586
|
|
testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
|
|
"", ((string)(null)), table30, "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table31 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test Bench Fields",
|
|
"Test Bench State[5]",
|
|
"Comment"});
|
|
table31.AddRow(new string[] {
|
|
"6",
|
|
"30",
|
|
"Test bench calibration succeeded"});
|
|
#line 590
|
|
testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
|
|
"", ((string)(null)), table31, "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table32 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"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"});
|
|
table32.AddRow(new string[] {
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"10000",
|
|
"20000",
|
|
"30000",
|
|
"Valid calib factors"});
|
|
#line 594
|
|
testRunner.And("Input initializations for the test matrix and presets to pass the preceding tests" +
|
|
"", ((string)(null)), table32, "And ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table33 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"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"});
|
|
table33.AddRow(new string[] {
|
|
"1",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Okay",
|
|
"Test sequence complete"});
|
|
table33.AddRow(new string[] {
|
|
"2",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill EOL generation"});
|
|
table33.AddRow(new string[] {
|
|
"3",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill requirement"});
|
|
table33.AddRow(new string[] {
|
|
"4",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill production order check"});
|
|
table33.AddRow(new string[] {
|
|
"5",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill PcbId check"});
|
|
table33.AddRow(new string[] {
|
|
"6",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill region check"});
|
|
table33.AddRow(new string[] {
|
|
"7",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill LUT check"});
|
|
table33.AddRow(new string[] {
|
|
"8",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill meter size check"});
|
|
table33.AddRow(new string[] {
|
|
"9",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill FW check"});
|
|
table33.AddRow(new string[] {
|
|
"10",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill battery load check"});
|
|
table33.AddRow(new string[] {
|
|
"11",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill life time check"});
|
|
table33.AddRow(new string[] {
|
|
"12",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill storage time check"});
|
|
table33.AddRow(new string[] {
|
|
"13",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill preadjustment check"});
|
|
table33.AddRow(new string[] {
|
|
"14",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill flow test check"});
|
|
table33.AddRow(new string[] {
|
|
"15",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"-",
|
|
"Failed",
|
|
"Detected kill calibrations check"});
|
|
table33.AddRow(new string[] {
|
|
"16",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"-",
|
|
"X",
|
|
"Failed",
|
|
"Detected kill radio parameter"});
|
|
#line 599
|
|
testRunner.And("Input matrix defining the test cases and results", ((string)(null)), table33, "And ");
|
|
#line hidden
|
|
#line 618
|
|
testRunner.When("Execute the generic tests", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 619
|
|
testRunner.Then("Check the generic test results", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
|
#line hidden
|
|
}
|
|
this.ScenarioCleanup();
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore
|
|
#endregion
|