Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AddNewTraject.cs =================================================================== diff -u -rfe779ce11a2c1c62320fd2f6e5f989bd752b19b9 -r360d90253c5cb2f281cf695f19efb2c0d4999da7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AddNewTraject.cs (.../AddNewTraject.cs) (revision fe779ce11a2c1c62320fd2f6e5f989bd752b19b9) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AddNewTraject.cs (.../AddNewTraject.cs) (revision 360d90253c5cb2f281cf695f19efb2c0d4999da7) @@ -125,31 +125,34 @@ Init(); - Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.AddAssessmentSectionButton' at Center.", repo.RiskeerMainWindow.Ribbon.AddAssessmentSectionButtonInfo, new RecordItemIndex(0)); + Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(0)); + Delay.Duration(1000, false); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.AddAssessmentSectionButton' at Center.", repo.RiskeerMainWindow.Ribbon.AddAssessmentSectionButtonInfo, new RecordItemIndex(1)); repo.RiskeerMainWindow.Ribbon.AddAssessmentSectionButton.Click(); - Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectId'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectIdInfo, new RecordItemIndex(1)); + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectId'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectIdInfo, new RecordItemIndex(2)); repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectId.Focus(); - Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectId'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectIdInfo, new RecordItemIndex(2)); + Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectId'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectIdInfo, new RecordItemIndex(3)); repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellTrajectId.Select(); - Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Text' from item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellSignallingValue' and assigning its value to variable 'signallingValue'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellSignallingValueInfo, new RecordItemIndex(3)); + Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Text' from item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellSignallingValue' and assigning its value to variable 'signallingValue'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellSignallingValueInfo, new RecordItemIndex(4)); signallingValue = repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellSignallingValue.Element.GetAttributeValueText("Text"); - Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Text' from item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellLowLimitValue' and assigning its value to variable 'lowLimitValue'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellLowLimitValueInfo, new RecordItemIndex(4)); + Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Text' from item 'DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellLowLimitValue' and assigning its value to variable 'lowLimitValue'.", repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellLowLimitValueInfo, new RecordItemIndex(5)); lowLimitValue = repo.DialogNewTraject.TableTrajects.GenericTrajectIDRow.CellLowLimitValue.Element.GetAttributeValueText("Text"); - Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DialogNewTraject.NormRadioButton' at CenterLeft.", repo.DialogNewTraject.NormRadioButtonInfo, new RecordItemIndex(5)); + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DialogNewTraject.NormRadioButton' at CenterLeft.", repo.DialogNewTraject.NormRadioButtonInfo, new RecordItemIndex(6)); repo.DialogNewTraject.NormRadioButton.Click(Location.CenterLeft); - Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DialogNewTraject.ButtonOk' at Center.", repo.DialogNewTraject.ButtonOkInfo, new RecordItemIndex(6)); + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DialogNewTraject.ButtonOk' at Center.", repo.DialogNewTraject.ButtonOkInfo, new RecordItemIndex(7)); repo.DialogNewTraject.ButtonOk.Click(); - Report.Log(ReportLevel.Info, "Wait", "Waiting 5s to exist. Associated repository item: 'RiskeerMainWindow.DocumentViewContainer'", repo.RiskeerMainWindow.DocumentViewContainer.SelfInfo, new ActionTimeout(5000), new RecordItemIndex(7)); + Report.Log(ReportLevel.Info, "Wait", "Waiting 5s to exist. Associated repository item: 'RiskeerMainWindow.DocumentViewContainer'", repo.RiskeerMainWindow.DocumentViewContainer.SelfInfo, new ActionTimeout(5000), new RecordItemIndex(8)); repo.RiskeerMainWindow.DocumentViewContainer.SelfInfo.WaitForExists(5000); - Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.DocumentViewContainer.Self, false, new RecordItemIndex(8)); + Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.DocumentViewContainer.Self, false, new RecordItemIndex(9)); } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AddNewTraject.rxrec =================================================================== diff -u -rfe779ce11a2c1c62320fd2f6e5f989bd752b19b9 -r360d90253c5cb2f281cf695f19efb2c0d4999da7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AddNewTraject.rxrec (.../AddNewTraject.rxrec) (revision fe779ce11a2c1c62320fd2f6e5f989bd752b19b9) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AddNewTraject.rxrec (.../AddNewTraject.rxrec) (revision 360d90253c5cb2f281cf695f19efb2c0d4999da7) @@ -33,6 +33,15 @@ + + + + + + true 9183e89e-da58-4702-96c4-c8e026c09e87 + + 1bc13e29-2ac6-4d9b-b191-8bf173be6811 + WaitForXMiliseconds.rxrec + true + 7282774b-94ac-4fa5-b607-52a669f7ebaa + + + 1bc13e29-2ac6-4d9b-b191-8bf173be6811 + WaitForXMiliseconds.rxrec + true + c07f4fba-2b65-47d5-8ab2-f4c7a8c093ae + 22827a2a-52ff-4696-b84a-c57de9b4af2e WaitUntilAllCalculationsHaveBeenCarriedOut.rxrec @@ -1852,6 +1864,11 @@ 103381a9-7531-44a7-92ea-2144323f1101 b7ac941c-5b89-48cd-92dd-2974ba18eb21 + + 8b6648ca-2429-462f-8074-96184700bbed + 1bc13e29-2ac6-4d9b-b191-8bf173be6811 + c4d13523-92e2-47e6-9f4a-8cabca3f6785 + 8b6648ca-2429-462f-8074-96184700bbed 22827a2a-52ff-4696-b84a-c57de9b4af2e Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst =================================================================== diff -u -r963b612ef15b3f0475c115f64c56622bed964e59 -r360d90253c5cb2f281cf695f19efb2c0d4999da7 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst (.../AutomatedSystemTests.rxtst) (revision 963b612ef15b3f0475c115f64c56622bed964e59) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst (.../AutomatedSystemTests.rxtst) (revision 360d90253c5cb2f281cf695f19efb2c0d4999da7) @@ -3353,6 +3353,10 @@ + + + + + + + + + + + + + + @@ -5283,6 +5315,16 @@ ref="bbe1b453-6dad-446c-8f21-3104847f3bd8" type="Recording"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /// 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/WaitForXMiliseconds.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/WaitForXMiliseconds.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/WaitForXMiliseconds.cs (revision 360d90253c5cb2f281cf695f19efb2c0d4999da7) @@ -0,0 +1,104 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 WaitForXMiliseconds recording. + /// + [TestModule("c4d13523-92e2-47e6-9f4a-8cabca3f6785", ModuleType.Recording, 1)] + public partial class WaitForXMiliseconds : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static WaitForXMiliseconds instance = new WaitForXMiliseconds(); + + /// + /// Constructs a new instance. + /// + public WaitForXMiliseconds() + { + milisecondsToWait = ""; + } + + /// + /// Gets a static instance of this recording. + /// + public static WaitForXMiliseconds Instance + { + get { return instance; } + } + +#region Variables + + string _milisecondsToWait; + + /// + /// Gets or sets the value of variable milisecondsToWait. + /// + [TestVariable("94623a49-2f71-47ad-afa6-ea0884186048")] + public string milisecondsToWait + { + get { return _milisecondsToWait; } + set { _milisecondsToWait = 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 = 300; + Keyboard.DefaultKeyPressTime = 20; + Delay.SpeedFactor = 1.00; + + Init(); + + Report.Log(ReportLevel.Info, "Delay", "Waiting for time from variable $milisecondsToWait.", new RecordItemIndex(0)); + Delay.Duration(Duration.Parse(milisecondsToWait), false); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/WaitForXMiliseconds.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/WaitForXMiliseconds.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/WaitForXMiliseconds.rxrec (revision 360d90253c5cb2f281cf695f19efb2c0d4999da7) @@ -0,0 +1,65 @@ + + + + 1 + + + False + + + True + + + 1 + + + True + + + + + + + + + + + + + + + + + + + + + + + + + WaitForXMiliseconds.UserCode.cs + + + +