Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj =================================================================== diff -u -reabec55eb593f80339fc3f0fe10ab395437aa57c -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision eabec55eb593f80339fc3f0fe10ab395437aa57c) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -162,6 +162,18 @@ true 4a953aa8-5f5c-4bf0-92db-7ab2d99cd6ac + + a6aa9891-7b17-448b-bd52-f69c71b53d62 + SetDetailedAssessmentValueForRow.rxrec + true + 31dd2ae8-99e2-433c-b17e-3c3b6bc252ff + + + a6aa9891-7b17-448b-bd52-f69c71b53d62 + SetDetailedAssessmentValueForRow.rxrec + true + f4e1c91c-d051-492f-af16-e0356367e1d4 + 772256b0-c236-4c14-95ed-d0682f4b713d ValidateCategoryBoundaryInPropertiesPanel.rxrec @@ -426,15 +438,15 @@ true 83c1d0c2-3e84-4874-9d4d-515e0dca156e - + 731610be-3ce8-4f1d-8c8d-98ec88fef6e9 - SelectDetailedAssessmentForRow.rxrec + SelectDetailedAssessmentTypeForRow.rxrec true e70f1c00-c1c2-4507-a588-d018c54868b4 - + 731610be-3ce8-4f1d-8c8d-98ec88fef6e9 - SelectDetailedAssessmentForRow.rxrec + SelectDetailedAssessmentTypeForRow.rxrec true 487f6ed8-b5f5-4fb1-924f-bc9cd1a1e518 @@ -1175,6 +1187,11 @@ ead7dbbc-6b97-49df-999c-7ea29e40cd4c 6fcd729a-b24a-42d7-8636-f8d75a283109 + + 8b6648ca-2429-462f-8074-96184700bbed + a6aa9891-7b17-448b-bd52-f69c71b53d62 + 8ba1a78d-5071-4845-bc94-8ab1fa70f8c1 + 8b6648ca-2429-462f-8074-96184700bbed 772256b0-c236-4c14-95ed-d0682f4b713d @@ -1285,7 +1302,7 @@ cd7df858-0e65-4fa4-b41f-594ad71f9cec d37f64f8-25dc-4a23-8dbd-257a13f39617 - + 8b6648ca-2429-462f-8074-96184700bbed 731610be-3ce8-4f1d-8c8d-98ec88fef6e9 30a2f45d-ee95-4cb0-9ee5-87d71ca20ca5 Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst =================================================================== diff -u -reabec55eb593f80339fc3f0fe10ab395437aa57c -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst (.../AutomatedSystemTests.rxtst) (revision eabec55eb593f80339fc3f0fe10ab395437aa57c) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst (.../AutomatedSystemTests.rxtst) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -1,4 +1,4 @@ - + @@ -1037,7 +1037,7 @@ @@ -1421,6 +1421,26 @@ name="LoopFMs"> + + + + + + + + @@ -6253,7 +6273,7 @@ @@ -7466,6 +7486,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -7915,7 +7980,7 @@ @@ -8030,7 +8095,7 @@ @@ -9533,7 +9598,7 @@ @@ -9918,7 +9983,7 @@ @@ -10736,6 +10801,31 @@ ref="3c2d44f5-31b5-4584-91c8-1ad748affc77" type="Recording"> + + + + + + + + + + + + + + + + + name="SelectDetailedAssessmentTypeForRow"> + name="SelectDetailedAssessmentTypeForRow"> + name="SelectDetailedAssessmentTypeForRow"> + name="SelectDetailedAssessmentTypeForRow"> + + + + + + + + + name="SelectDetailedAssessmentTypeForRow"> + name="SelectDetailedAssessmentTypeForRow"> + name="SelectDetailedAssessmentTypeForRow"> DetailedAssessmentTypeItem + + FailureProbabilityToAssign + + + ExpectedFailureProbability + @@ -18802,27 +18914,6 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/CalculatePathInPropertiesPanelOfBoundaryCategory.cs =================================================================== diff -u -reabec55eb593f80339fc3f0fe10ab395437aa57c -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/CalculatePathInPropertiesPanelOfBoundaryCategory.cs (.../CalculatePathInPropertiesPanelOfBoundaryCategory.cs) (revision eabec55eb593f80339fc3f0fe10ab395437aa57c) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/CalculatePathInPropertiesPanelOfBoundaryCategory.cs (.../CalculatePathInPropertiesPanelOfBoundaryCategory.cs) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -125,14 +125,13 @@ [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] void ITestModule.Run() { - Mouse.DefaultMoveTime = 300; + Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; - Delay.SpeedFactor = 1.00; + Delay.SpeedFactor = 0.00; Init(); BuildPathInPPToCategoryBoundary(); - Delay.Milliseconds(0); } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/CalculatePathInPropertiesPanelOfBoundaryCategory.rxrec =================================================================== diff -u -reabec55eb593f80339fc3f0fe10ab395437aa57c -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/CalculatePathInPropertiesPanelOfBoundaryCategory.rxrec (.../CalculatePathInPropertiesPanelOfBoundaryCategory.rxrec) (revision eabec55eb593f80339fc3f0fe10ab395437aa57c) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/CalculatePathInPropertiesPanelOfBoundaryCategory.rxrec (.../CalculatePathInPropertiesPanelOfBoundaryCategory.rxrec) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -7,7 +7,7 @@ 1 - False + True True Fisheye: Tag c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c refers to a dead (removed) revision in file `System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentForRow.UserCode.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c refers to a dead (removed) revision in file `System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentForRow.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c refers to a dead (removed) revision in file `System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentForRow.rxrec'. Fisheye: No comparison available. Pass `N' to diff? Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.UserCode.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.UserCode.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.UserCode.cs (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -0,0 +1,37 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// Your custom recording code should go in this file. +// The designer will only add methods to this file, so your custom code won't be overwritten. +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +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.Repository; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests +{ + public partial class SelectDetailedAssessmentTypeForRow + { + /// + /// This method gets called right after the recording has been started. + /// It can be used to execute recording specific initialization code. + /// + private void Init() + { + // Your recording specific initialization code goes here. + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.cs (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -0,0 +1,120 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// DO NOT MODIFY THIS FILE! It is regenerated by the designer. +// All your modifications will be lost! +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +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; +using Ranorex.Core.Repository; + +namespace AutomatedSystemTests +{ +#pragma warning disable 0436 //(CS0436) The type 'type' in 'assembly' conflicts with the imported type 'type2' in 'assembly'. Using the type defined in 'assembly'. + /// + ///The SelectDetailedAssessmentTypeForRow recording. + /// + [TestModule("30a2f45d-ee95-4cb0-9ee5-87d71ca20ca5", ModuleType.Recording, 1)] + public partial class SelectDetailedAssessmentTypeForRow : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static SelectDetailedAssessmentTypeForRow instance = new SelectDetailedAssessmentTypeForRow(); + + /// + /// Constructs a new instance. + /// + public SelectDetailedAssessmentTypeForRow() + { + } + + /// + /// Gets a static instance of this recording. + /// + public static SelectDetailedAssessmentTypeForRow Instance + { + get { return instance; } + } + +#region Variables + + /// + /// Gets or sets the value of variable rowIndex. + /// + [TestVariable("3191cedb-5ef9-4f31-85c1-c8b9bb6a46f0")] + public string rowIndex + { + get { return repo.rowIndex; } + set { repo.rowIndex = value; } + } + + /// + /// Gets or sets the value of variable textItemDropDownMenu. + /// + [TestVariable("d82001f1-20c0-4080-a06d-9f1f8ee3a56d")] + public string textItemDropDownMenu + { + get { return repo.textItemDropDownMenu; } + set { repo.textItemDropDownMenu = value; } + } + +#endregion + + /// + /// Starts the replay of the static recording . + /// + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + public static void Start() + { + TestModuleRunner.Run(Instance); + } + + /// + /// Performs the playback of actions in this recording. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 20; + Delay.SpeedFactor = 0.00; + + Init(); + + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNthInfo, new RecordItemIndex(0)); + repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth.Focus(); + + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNthInfo, new RecordItemIndex(1)); + repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth.Select(); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth' at CenterRight.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNthInfo, new RecordItemIndex(2)); + repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth.Click(Location.CenterRight); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DropDownMenuItemList.GenericDropDownItem' at Center.", repo.DropDownMenuItemList.GenericDropDownItemInfo, new RecordItemIndex(3)); + repo.DropDownMenuItemList.GenericDropDownItem.Click(); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SelectDetailedAssessmentTypeForRow.rxrec (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -0,0 +1,136 @@ + + + + 1 + + + True + + + True + + + 1 + + + True + + + + + + + + + + + + + + /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename='Gedetailleerde toets per vak Row '+$rowIndex] + + + + + + + + + + + + + /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Gedetailleerde toets per vak Row '] + + + + + + + + + + + + + /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename='Gedetailleerde toets per vak Row '+$rowIndex] + + + + + + + + + + + /list[@controlid='1000']/listitem[@text=$textItemDropDownMenu] + + + + + + + + + + + + SelectDetailedAssessmentForRow.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SetCustomAssessmentValueAtRow.cs =================================================================== diff -u -r4175216dc2ad4278c64f7e5eff2d13cdb34a81a1 -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/SetCustomAssessmentValueAtRow.cs (.../SetCustomAssessmentValueAtRow.cs) (revision 4175216dc2ad4278c64f7e5eff2d13cdb34a81a1) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SetCustomAssessmentValueAtRow.cs (.../SetCustomAssessmentValueAtRow.cs) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -96,36 +96,21 @@ [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] void ITestModule.Run() { - Mouse.DefaultMoveTime = 300; + Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; - Delay.SpeedFactor = 1.00; + Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(0)); repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.Focus(); - Delay.Milliseconds(0); - //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth' at CenterRight.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(1)); - //repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.DoubleClick(Location.CenterRight); - //Delay.Milliseconds(0); + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(1)); + repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.Select(); - //Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Back}' with focus on 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(2)); - //repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.PressKeys("{Back}"); - //Delay.Milliseconds(0); - - //Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$expectedCustomAssessmentValue' with focus on 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(3)); - //repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.PressKeys(expectedCustomAssessmentValue); - //Delay.Milliseconds(0); - - Report.Log(ReportLevel.Info, "Set value", "Setting attribute AccessibleValue to '$expectedCustomAssessmentValue' on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(4)); + Report.Log(ReportLevel.Info, "Set value", "Setting attribute AccessibleValue to '$expectedCustomAssessmentValue' on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(2)); repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.Element.SetAttributeValue("AccessibleValue", expectedCustomAssessmentValue); - Delay.Milliseconds(0); - //Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}' with focus on 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNthInfo, new RecordItemIndex(5)); - //repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.CustomAssessmentValueRowNth.PressKeys("{Return}"); - //Delay.Milliseconds(0); - } #region Image Feature Data Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SetCustomAssessmentValueAtRow.rxrec =================================================================== diff -u -r4175216dc2ad4278c64f7e5eff2d13cdb34a81a1 -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/SetCustomAssessmentValueAtRow.rxrec (.../SetCustomAssessmentValueAtRow.rxrec) (revision 4175216dc2ad4278c64f7e5eff2d13cdb34a81a1) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SetCustomAssessmentValueAtRow.rxrec (.../SetCustomAssessmentValueAtRow.rxrec) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -7,7 +7,7 @@ 1 - False + True True @@ -49,72 +49,26 @@ id="62a2b33d-d577-40b8-b792-2d97e236d481"> - + searchpropertyid="075e7398-eb1d-48fd-8755-ff109e3df732"> + sourcename="RepositoryEditor"> /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Toets op maatfaalkans Row '] - - - - - - - - - /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Toets op maatfaalkans Row '] - - - - - - - - - - - - - /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Toets op maatfaalkans Row '] - - - + + + - - - - - - - - /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Toets op maatfaalkans Row '] - - - + /// This method gets called right after the recording has been started. + /// It can be used to execute recording specific initialization code. + /// + private void Init() + { + // Your recording specific initialization code goes here. + } + + public void Set_value_DetailedAsssessmentTypeRowNth(RepoItemInfo cellInfo) + { + System.Globalization.CultureInfo currentCulture = CultureInfo.CurrentCulture; + Report.Log(ReportLevel.Info, "Set value", "Setting attribute AccessibleValue to '$assessmentValueToAssign' on item 'cellInfo'.", cellInfo); + assessmentValueToAssign = Double.Parse(assessmentValueToAssign).ToString(currentCulture); + cellInfo.FindAdapter().Element.SetAttributeValue("AccessibleValue", assessmentValueToAssign); + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SetDetailedAssessmentValueForRow.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SetDetailedAssessmentValueForRow.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SetDetailedAssessmentValueForRow.cs (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -0,0 +1,119 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// This file was automatically generated by RANOREX. +// DO NOT MODIFY THIS FILE! It is regenerated by the designer. +// All your modifications will be lost! +// http://www.ranorex.com +// +/////////////////////////////////////////////////////////////////////////////// + +using System; +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; +using Ranorex.Core.Repository; + +namespace AutomatedSystemTests +{ +#pragma warning disable 0436 //(CS0436) The type 'type' in 'assembly' conflicts with the imported type 'type2' in 'assembly'. Using the type defined in 'assembly'. + /// + ///The SetDetailedAssessmentValueForRow recording. + /// + [TestModule("8ba1a78d-5071-4845-bc94-8ab1fa70f8c1", ModuleType.Recording, 1)] + public partial class SetDetailedAssessmentValueForRow : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static SetDetailedAssessmentValueForRow instance = new SetDetailedAssessmentValueForRow(); + + /// + /// Constructs a new instance. + /// + public SetDetailedAssessmentValueForRow() + { + assessmentValueToAssign = ""; + } + + /// + /// Gets a static instance of this recording. + /// + public static SetDetailedAssessmentValueForRow Instance + { + get { return instance; } + } + +#region Variables + + string _assessmentValueToAssign; + + /// + /// Gets or sets the value of variable assessmentValueToAssign. + /// + [TestVariable("3d41c7f7-4aea-4ded-b952-9a31e437e726")] + public string assessmentValueToAssign + { + get { return _assessmentValueToAssign; } + set { _assessmentValueToAssign = value; } + } + + /// + /// Gets or sets the value of variable rowIndex. + /// + [TestVariable("3191cedb-5ef9-4f31-85c1-c8b9bb6a46f0")] + public string rowIndex + { + get { return repo.rowIndex; } + set { repo.rowIndex = value; } + } + +#endregion + + /// + /// Starts the replay of the static recording . + /// + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + public static void Start() + { + TestModuleRunner.Run(Instance); + } + + /// + /// Performs the playback of actions in this recording. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 20; + Delay.SpeedFactor = 0.00; + + Init(); + + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNthInfo, new RecordItemIndex(0)); + repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNth.Focus(); + + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNthInfo, new RecordItemIndex(1)); + repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNth.Select(); + + Set_value_DetailedAsssessmentTypeRowNth(repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNthInfo); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SetDetailedAssessmentValueForRow.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SetDetailedAssessmentValueForRow.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SetDetailedAssessmentValueForRow.rxrec (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -0,0 +1,123 @@ + + + + 1 + + + True + + + True + + + 1 + + + True + + + + + + + + + + + + + + + + /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Gedetailleerde toets per vakfaalkans Row '] + + + + + + + + + + + + + /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Gedetailleerde toets per vakfaalkans Row '] + + + + + + + + + + + + + + Ranorex.Core.Repository.RepoItemInfo, Ranorex.Core, Culture=neutral + + + + + + /form[@automationid='RiskeerMainWindow']/?/container[10]/container[@controltypename='WinFormsAdapter']/container[@controlname='FailureMechanismResultView']/container/table[@controlname='dataGridView']/row[@accessiblename='Row '+$rowIndex]/cell[@accessiblename>'Gedetailleerde toets per vakfaalkans Row '] + + + + + + + + + + + + + + SetDetailedAssessmentValueForRow.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentTypeAtRow.cs =================================================================== diff -u -rb9092a6d41a017143566020596d54b79517379ad -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentTypeAtRow.cs (.../ValidateDetailedAssessmentTypeAtRow.cs) (revision b9092a6d41a017143566020596d54b79517379ad) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentTypeAtRow.cs (.../ValidateDetailedAssessmentTypeAtRow.cs) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -96,15 +96,14 @@ [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] void ITestModule.Run() { - Mouse.DefaultMoveTime = 300; + Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; - Delay.SpeedFactor = 1.00; + Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (AccessibleValue=$expectedDetailedAssessmentCellType) on item 'RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNth'.", repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNthInfo, new RecordItemIndex(0)); Validate.AttributeEqual(repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAsssessmentTypeRowNthInfo, "AccessibleValue", expectedDetailedAssessmentCellType); - Delay.Milliseconds(0); } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentTypeAtRow.rxrec =================================================================== diff -u -r251b30b44f6c68986cf45b085e910a5c2bebe4b4 -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentTypeAtRow.rxrec (.../ValidateDetailedAssessmentTypeAtRow.rxrec) (revision 251b30b44f6c68986cf45b085e910a5c2bebe4b4) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentTypeAtRow.rxrec (.../ValidateDetailedAssessmentTypeAtRow.rxrec) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -7,7 +7,7 @@ 1 - False + True True Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.UserCode.cs =================================================================== diff -u -r251b30b44f6c68986cf45b085e910a5c2bebe4b4 -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.UserCode.cs (.../ValidateDetailedAssessmentValueAtRow.UserCode.cs) (revision 251b30b44f6c68986cf45b085e910a5c2bebe4b4) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.UserCode.cs (.../ValidateDetailedAssessmentValueAtRow.UserCode.cs) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -8,6 +8,7 @@ /////////////////////////////////////////////////////////////////////////////// using System; +using System.Globalization; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; @@ -35,12 +36,22 @@ public void ValidateDetailedAssessmentCell(RepoItemInfo cellInfo, string expectedValue) { - expectedValue = expectedValue.Replace(" ", String.Empty).Replace(".", String.Empty); - Report.Log(ReportLevel.Info, "Info", expectedValue, cellInfo); - Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (AccessibleValue='" + expectedValue.ToString() + "') on item 'cellInfo'.", cellInfo); - string foundValue = cellInfo.CreateAdapter(true).GetAttributeValue("AccessibleValue"); - foundValue = foundValue.Replace(" ", String.Empty).Replace(".", String.Empty); - Validate.AreEqual(foundValue, expectedValue); + System.Globalization.CultureInfo currentCulture = CultureInfo.CurrentCulture; + var currentValue = cellInfo.CreateAdapter(true).GetAttributeValue("AccessibleValue"); + currentValue = "1/" + Double.Parse(currentValue.Substring(2,currentValue.Length-2), currentCulture).ToString(); + Report.Log(ReportLevel.Info, "", "Current value: " + currentValue); + Report.Log(ReportLevel.Info, "", "Expected value: " + expectedValue); + if (currentValue==expectedValue) { + Validate.AreEqual(currentValue, expectedValue); + } + else { + Report.Log(ReportLevel.Info, "Validation", "Value found: " + currentValue + " is not equal to expected value: " + expectedValue + "\r\nEvaluating whether they are almost (within 0.01%) equal..."); + var expectedDouble = 1.0/(Double.Parse(expectedValue.Substring(2,expectedValue.Length-2), currentCulture)); + var currentDouble = 1.0/(Double.Parse(currentValue.Substring(2,currentValue.Length-2), currentCulture)); + var deviation = Math.Abs(100.0*(expectedDouble - currentDouble) / expectedDouble); + Report.Log(ReportLevel.Info, "Validation", "Deviation = " + deviation + " %"); + Validate.IsTrue(deviation<0.01); + } } } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.cs =================================================================== diff -u -rb9092a6d41a017143566020596d54b79517379ad -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.cs (.../ValidateDetailedAssessmentValueAtRow.cs) (revision b9092a6d41a017143566020596d54b79517379ad) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.cs (.../ValidateDetailedAssessmentValueAtRow.cs) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -96,14 +96,13 @@ [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] void ITestModule.Run() { - Mouse.DefaultMoveTime = 300; + Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; - Delay.SpeedFactor = 1.00; + Delay.SpeedFactor = 0.00; Init(); ValidateDetailedAssessmentCell(repo.RiskeerMainWindow.DocumentViewContainer.FailureMechanismResultView.TableDataGridView.DetailedAssessmentValueRowNthInfo, expectedDetailedAssessmentCellValue); - Delay.Milliseconds(0); } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.rxrec =================================================================== diff -u -r251b30b44f6c68986cf45b085e910a5c2bebe4b4 -rc8786fc85e911ac4446122b9c1fbbb8f1ee8c57c --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.rxrec (.../ValidateDetailedAssessmentValueAtRow.rxrec) (revision 251b30b44f6c68986cf45b085e910a5c2bebe4b4) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateDetailedAssessmentValueAtRow.rxrec (.../ValidateDetailedAssessmentValueAtRow.rxrec) (revision c8786fc85e911ac4446122b9c1fbbb8f1ee8c57c) @@ -7,7 +7,7 @@ 1 - False + True True