Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj =================================================================== diff -u -rd8149d5721c89b0ca55c9cf678c7d6a5085d40e0 -r1722de2dc12ea391dab927bd9e140456311c9cf7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision d8149d5721c89b0ca55c9cf678c7d6a5085d40e0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision 1722de2dc12ea391dab927bd9e140456311c9cf7) @@ -708,6 +708,9 @@ true 5ff88a6f-9100-4693-8203-9c8e81da33bb + + 585b1421-c5f4-43c1-9b02-f83ed721eb88 + 7a96f16b-1a02-468b-995a-4225ecbbea1a @@ -1809,6 +1812,12 @@ db4be10f-ef1c-4e3b-af9c-d3adf1e4dfe0 + + 451d0653-a93b-4305-83ac-406b8bea1f77 + + + ef5b2d51-65fd-4f10-9182-72da3a833f1b + 9ad5f486-19f1-4148-9448-0fb74e0420ab Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsDialogs/PressCancelDialogAtStepText.cs =================================================================== diff -u -r7ab9f40b5bf8b623d0e60db261d99c8e088ef1f3 -r1722de2dc12ea391dab927bd9e140456311c9cf7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsDialogs/PressCancelDialogAtStepText.cs (.../PressCancelDialogAtStepText.cs) (revision 7ab9f40b5bf8b623d0e60db261d99c8e088ef1f3) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsDialogs/PressCancelDialogAtStepText.cs (.../PressCancelDialogAtStepText.cs) (revision 1722de2dc12ea391dab927bd9e140456311c9cf7) @@ -102,8 +102,8 @@ Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ActivityProgressDialog.ButtonCancel' at Center.", repo.ActivityProgressDialog.ButtonCancelInfo, new RecordItemIndex(3)); repo.ActivityProgressDialog.ButtonCancel.Click(); - Report.Log(ReportLevel.Info, "Wait", "Waiting 10s to not exist. Associated repository item: 'ActivityProgressDialog'", repo.ActivityProgressDialog.SelfInfo, new ActionTimeout(10000), new RecordItemIndex(4)); - repo.ActivityProgressDialog.SelfInfo.WaitForNotExists(10000); + Report.Log(ReportLevel.Info, "Wait", "Waiting 30s to not exist. Associated repository item: 'ActivityProgressDialog'", repo.ActivityProgressDialog.SelfInfo, new ActionTimeout(30000), new RecordItemIndex(4)); + repo.ActivityProgressDialog.SelfInfo.WaitForNotExists(30000); Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(5)); Delay.Duration(500, false); Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsDialogs/PressCancelDialogAtStepText.rxrec =================================================================== diff -u -r7ab9f40b5bf8b623d0e60db261d99c8e088ef1f3 -r1722de2dc12ea391dab927bd9e140456311c9cf7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsDialogs/PressCancelDialogAtStepText.rxrec (.../PressCancelDialogAtStepText.rxrec) (revision 7ab9f40b5bf8b623d0e60db261d99c8e088ef1f3) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsDialogs/PressCancelDialogAtStepText.rxrec (.../PressCancelDialogAtStepText.rxrec) (revision 1722de2dc12ea391dab927bd9e140456311c9cf7) @@ -970,7 +970,7 @@ optional="False" searchpropertyid="3703acb5-4eb3-45bd-993f-73c3bcc39a79" waitaction="NotExists" - waittimeout="10000ms"> + waittimeout="30000ms"> Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/Calculation/GetValueParameterInPropertiesPanelGivenPath.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/Calculation/GetValueParameterInPropertiesPanelGivenPath.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/Calculation/GetValueParameterInPropertiesPanelGivenPath.cs (revision 1722de2dc12ea391dab927bd9e140456311c9cf7) @@ -0,0 +1,115 @@ +/* + * Created by Ranorex + * User: rodriqu_dd + * Date: 18/12/2020 + * Time: 18:11 + * + * To change this template use Tools > Options > Coding > Edit standard headers. + */ +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests.Modules.Calculation +{ + /// + /// Description of GetValueParameterInPropertiesPanelGivenPath. + /// + [TestModule("C77B1704-AEA4-41DB-90C0-A00BACB9CFFC", ModuleType.UserCode, 1)] + public class GetValueParameterInPropertiesPanelGivenPath : ITestModule + { + + + string _pathToElementInPropertiesPanel = ""; + [TestVariable("717108e0-7b86-418f-9953-a968ec4f5bef")] + public string pathToElementInPropertiesPanel + { + get { return _pathToElementInPropertiesPanel; } + set { _pathToElementInPropertiesPanel = value; } + } + + + string _valueOfElement = ""; + [TestVariable("b8b2d988-b9c5-4a36-b47d-a548cdc8bb5e")] + public string valueOfElement + { + get { return _valueOfElement; } + set { _valueOfElement = value; } + } + + /// + /// Constructs a new instance. + /// + public GetValueParameterInPropertiesPanelGivenPath() + { + // Do not delete - a parameterless constructor is required! + } + + /// + /// Performs the playback of actions in this module. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 0; + Delay.SpeedFactor = 0.0; + + AutomatedSystemTestsRepository myRepository = global::AutomatedSystemTests.AutomatedSystemTestsRepository.Instance; + Adapter propertiesPanelAdapter = myRepository.RiskeerMainWindow.PropertiesPanelContainer.Table.Self; + Ranorex.Row row = GetRowInPropertiesPanelGivenPath(propertiesPanelAdapter, pathToElementInPropertiesPanel); + + valueOfElement = row.Element.GetAttributeValueText("AccessibleValue"); + } + + public Ranorex.Row GetRowInPropertiesPanelGivenPath(Adapter argumentAdapter, string pathItem) + { + int minimumIndex = 0; + var stepsPathItem = pathItem.Split('>').ToList(); + Ranorex.Row stepRow = argumentAdapter.As().Rows.ToList()[1]; + for (int i=0; i < stepsPathItem.Count; i++) { + // Find the item corresponding to the step + var step = stepsPathItem[i]; + var completeList = argumentAdapter.As
().Rows.ToList(); + var searchList = completeList.GetRange(minimumIndex, completeList.Count-minimumIndex); + var indexStepRow = searchList.FindIndex(rw => rw.GetAttributeValue("AccessibleName").Contains(step)); + stepRow = searchList[indexStepRow]; + + // if step is intermediate + if (i != stepsPathItem.Count - 1) + { + var stateStepRow = stepRow.Element.GetAttributeValueText("AccessibleState"); + // if intermediate step is collapsed + if (stateStepRow.Contains("Collapsed")) { + // Select and expand the intermediate item + Report.Log(ReportLevel.Info, "was collapsed"); + stepRow.Focus(); + stepRow.Select(); + stepRow.PressKeys("{Right}"); + } + } + else + { + // Select the final item + stepRow.Focus(); + stepRow.Select(); + } + // Update the minimum index administration (only search forward) + minimumIndex += 1 + indexStepRow; + } + return stepRow; + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/Validation/Abstract/ValidateCombinedApproxFailureProbabilityAndBeta.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/Validation/Abstract/ValidateCombinedApproxFailureProbabilityAndBeta.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/Validation/Abstract/ValidateCombinedApproxFailureProbabilityAndBeta.cs (revision 1722de2dc12ea391dab927bd9e140456311c9cf7) @@ -0,0 +1,156 @@ +/* + * Created by Ranorex + * User: rodriqu_dd + * Date: 18/12/2020 + * Time: 18:47 + * + * To change this template use Tools > Options > Coding > Edit standard headers. + */ +using System; +using System.Globalization; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests.Modules.Validation.Abstract +{ + /// + /// Description of ValidateCombinedApproxFailureProbabilityAndBeta. + /// + [TestModule("C58BB999-6267-4CDB-B506-9567A6BD06A2", ModuleType.UserCode, 1)] + public class ValidateCombinedApproxFailureProbabilityAndBeta : ITestModule + { + + + string _betaUplift = ""; + [TestVariable("deab0d92-23b4-4e6c-9e83-33a30e0ecd46")] + public string betaUplift + { + get { return _betaUplift; } + set { _betaUplift = value; } + } + + string _probUplift = ""; + [TestVariable("9069fa4a-c94d-432f-bb5c-82aa7d96c55f")] + public string probUplift + { + get { return _probUplift; } + set { _probUplift = value; } + } + + + string _betaHeave = ""; + [TestVariable("be5f7cf3-2536-4bf1-9876-6cb71505a180")] + public string betaHeave + { + get { return _betaHeave; } + set { _betaHeave = value; } + } + + string _probHeave = ""; + [TestVariable("2de942d5-1e24-463c-bc72-f741da714108")] + public string probHeave + { + get { return _probHeave; } + set { _probHeave = value; } + } + + string _betaSellmeijer = ""; + [TestVariable("1a943d9c-3098-4672-9e40-f694caedba9d")] + public string betaSellmeijer + { + get { return _betaSellmeijer; } + set { _betaSellmeijer = value; } + } + + string _probSellmeijer = ""; + [TestVariable("404e1eb2-9994-4d82-b10f-96182d7ab7a1")] + public string probSellmeijer + { + get { return _probSellmeijer; } + set { _probSellmeijer = value; } + } + + string _betaCombined = ""; + [TestVariable("ecd11fb5-b634-49aa-83f7-048c430100fc")] + public string betaCombined + { + get { return _betaCombined; } + set { _betaCombined = value; } + } + + string _approxProbCombined = ""; + [TestVariable("0701eaa4-e25a-430c-b9e8-a8842cb7ff8b")] + public string approxProbCombined + { + get { return _approxProbCombined; } + set { _approxProbCombined = value; } + } + + + /// + /// Constructs a new instance. + /// + public ValidateCombinedApproxFailureProbabilityAndBeta() + { + // Do not delete - a parameterless constructor is required! + } + + /// + /// Performs the playback of actions in this module. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 0; + Delay.SpeedFactor = 0.0; + + System.Globalization.CultureInfo currentCulture = CultureInfo.CurrentCulture; + + double minProbNumeric = 1; + string minProb = ""; + string betaMinProb = ""; + double probUpliftNumeric = NumericValueProbability(probUplift, currentCulture); + if (probUpliftNumeric Options > Coding > Edit standard headers. + */ +using System; +using System.Globalization; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests.Modules.Validation.Abstract +{ + /// + /// Description of ValidateSafetyFactorSTPH. + /// + [TestModule("644BC5EB-6772-4741-A29D-4CA34AF52F36", ModuleType.UserCode, 1)] + public class ValidateSafetyFactorSTPH : ITestModule + { + + + string _betaProbRequirement = ""; + [TestVariable("1fb58f34-12d0-4f72-989e-4e1daf4176b5")] + public string betaProbRequirement + { + get { return _betaProbRequirement; } + set { _betaProbRequirement = value; } + } + + + string _betaApproxProb = ""; + [TestVariable("081afe7a-315e-48bb-9c4f-b14c755344df")] + public string betaApproxProb + { + get { return _betaApproxProb; } + set { _betaApproxProb = value; } + } + + + string _actualSafetyFactor = ""; + [TestVariable("546b6f94-8b56-4a63-889a-da1526aeebd4")] + public string actualSafetyFactor + { + get { return _actualSafetyFactor; } + set { _actualSafetyFactor = value; } + } + + /// + /// Constructs a new instance. + /// + public ValidateSafetyFactorSTPH() + { + // Do not delete - a parameterless constructor is required! + } + + /// + /// Performs the playback of actions in this module. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 0; + Delay.SpeedFactor = 0.0; + + System.Globalization.CultureInfo currentCulture = CultureInfo.CurrentCulture; + + double betaProbRequirementNumeric = Double.Parse(betaProbRequirement, currentCulture); + double betaApproxProbNumeric = Double.Parse(betaApproxProb, currentCulture); + double actualSafetyFactorNumeric = Double.Parse(actualSafetyFactor, currentCulture); + double expectedSafetyFactor = betaApproxProbNumeric / betaProbRequirementNumeric; + Report.Info("Validating that deviation of actual safety factor (" + actualSafetyFactorNumeric + ") from the expected one (" + betaApproxProbNumeric + "/" + betaProbRequirementNumeric + "=" + expectedSafetyFactor + ") is less than the current precision."); + double deviation = Math.Abs(expectedSafetyFactor-actualSafetyFactorNumeric); + Validate.IsTrue(deviation<0.001); + } + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/WorkInProgressDavid.rxtst =================================================================== diff -u -rf5f9ee4edcc2b6d5c5842513ebc9036650e34c6c -r1722de2dc12ea391dab927bd9e140456311c9cf7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/WorkInProgressDavid.rxtst (.../WorkInProgressDavid.rxtst) (revision f5f9ee4edcc2b6d5c5842513ebc9036650e34c6c) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/WorkInProgressDavid.rxtst (.../WorkInProgressDavid.rxtst) (revision 1722de2dc12ea391dab927bd9e140456311c9cf7) @@ -28,13 +28,39 @@ + name="StartAndCancelCalculationsValidatingResults"> + + + + + + + + + + + + + + + + + + @@ -199,6 +245,32 @@ ref="3c2d44f5-31b5-4584-91c8-1ad748affc77" type="Recording"> + + + + + + + + + + + + + + + + + + @@ -547,6 +639,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1149,6 +1364,16 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1903,11 +2196,51 @@ name="RunHBNCalculationsWithClimateScenario"> + + + + + + + + + + + + + + + + @@ -1985,6 +2318,10 @@ + + @@ -2217,6 +2554,26 @@ + + + + + + + + @@ -2364,6 +2721,10 @@ + + @@ -2488,6 +2849,12 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2835,7 +3292,6 @@ + + + + @@ -3067,6 +3531,40 @@ + + + + + + + + + + + + + + @@ -3877,7 +4375,7 @@ + name="StartAndCancelCalculationsValidatingResults"> @@ -4011,6 +4509,114 @@ name="OpenProject"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + iterationLabel + + + relativePathToResultItemInPE + + + fmLabel + + + + + + + + + + + + + + + + + + + + + + + + + +
+ iterationLabel + + relativePathToResultItemInPE + + fmLabel +
+ 12_2_02500 Segment_12004_1D1 + + >12_2_02500>12_2_02500 Segment_12004_1D1>Resultaat + + STPH +
+ 12_2_02500 Segment_12004_1D2 + + >12_2_02500>12_2_02500 Segment_12004_1D2>Resultaat + + STPH +
+ 12_2_02500 Segment_12004_1D3 + + >12_2_02500>12_2_02500 Segment_12004_1D3>Resultaat + + STPH +
+
@@ -6558,21 +7229,45 @@ id="29b58059-0914-464a-b4d4-63f6c7d197c4"> + + + + + + + + + + + + + + + + + + + + + +