Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -155,6 +155,18 @@ true 25b9d3df-d029-427a-96c4-de8470c01737 + + 39b9d06d-71b7-4758-9b92-32814138b9d3 + NewProject.rxrec + true + 8e04af26-6cb4-4ddc-99d3-815547ab48e0 + + + 39b9d06d-71b7-4758-9b92-32814138b9d3 + NewProject.rxrec + true + 58917d69-2f81-4b87-9767-540983f1b18d + 5d1e103b-c666-4258-a32a-74d8fe397026 OpenProject.rxrec @@ -182,6 +194,18 @@ fe704264-7ebd-4c5a-b96f-f5192c4d2944 + + 0e9d5246-714d-4876-9afc-2774723d4ba2 + SaveAs.rxrec + true + eb6fa76f-56e6-4302-b69f-fae7c7a22318 + + + 0e9d5246-714d-4876-9afc-2774723d4ba2 + SaveAs.rxrec + true + 83eafdce-0d37-4ebe-a02c-7699ea08d396 + b784c65f-eb14-47fb-8870-5baafbb7e6fe SetRelevanceFMInFailureMechanismContributionView.rxrec @@ -218,6 +242,18 @@ true f103591c-470f-43f6-9be6-e6eb74067b9c + + 4321a5dc-dff9-4a99-9273-baf97a3bf99f + ValidateFMRelevanceInFMCView.rxrec + true + a4d32042-c985-4120-9e00-3e75987db2c0 + + + 4321a5dc-dff9-4a99-9273-baf97a3bf99f + ValidateFMRelevanceInFMCView.rxrec + true + 00c2e319-d1e8-45c1-b819-1667dc466f62 + 7be6f2c7-899a-473a-916d-727696d7051f ValidateNode.rxrec @@ -268,6 +304,11 @@ 75c56bbc-55ab-4649-abbf-6157d7ab6a40 3c2d44f5-31b5-4584-91c8-1ad748affc77 + + 8b6648ca-2429-462f-8074-96184700bbed + 39b9d06d-71b7-4758-9b92-32814138b9d3 + f0658d7f-65e3-4f38-afe8-97fd942c1478 + 8b6648ca-2429-462f-8074-96184700bbed 5d1e103b-c666-4258-a32a-74d8fe397026 @@ -278,6 +319,11 @@ 1cb570ed-7031-4292-a572-3c04e9fbc24a 5e81345e-66bc-4e08-8ade-03d386d824fd + + 8b6648ca-2429-462f-8074-96184700bbed + 0e9d5246-714d-4876-9afc-2774723d4ba2 + 9195acd9-b037-4ace-80c3-0f7f64c35452 + 8b6648ca-2429-462f-8074-96184700bbed b784c65f-eb14-47fb-8870-5baafbb7e6fe @@ -293,6 +339,11 @@ 8f7fe1fa-f1ef-4825-8e3a-6a13124b5fbc 825ce2a6-cd3b-42f6-9972-8ced75f1a54f + + 8b6648ca-2429-462f-8074-96184700bbed + 4321a5dc-dff9-4a99-9273-baf97a3bf99f + 3c9b70f2-d794-41d3-b0ce-6da8c1e00475 + 8b6648ca-2429-462f-8074-96184700bbed 7be6f2c7-899a-473a-916d-727696d7051f Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst (.../AutomatedSystemTests.rxtst) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.rxtst (.../AutomatedSystemTests.rxtst) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -3,6 +3,11 @@ + + @@ -12,6 +17,46 @@ name="LoopFMs"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -154,6 +235,34 @@ name="setup"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id="716669cb-8d3f-4f98-a608-2311ffb07430" + name="SaveProject"> + + + + + + + + + + + + + id="f7db21d4-6285-4d3c-a8cb-5a2394ccb2c5" + name="ValidateFMRelevanceInFMCView"> @@ -479,6 +714,56 @@ + + + filename + + + + + + + + filename + + + + + X:\script21\output\relevanceModifiedInFMCView.risk + + + + + + + + filename + + + + + + + + filename + + + + + X:\script21\output\relevanceModifiedInPE.risk + + + + + + + + + + + + + + + + + /// Gets the singleton class instance representing the AutomatedSystemTestsRepository element repository. @@ -53,6 +55,8 @@ _opendialog = new AutomatedSystemTestsRepositoryFolders.OpenDialogAppFolder(this); _activityprogressdialog = new AutomatedSystemTestsRepositoryFolders.ActivityProgressDialogAppFolder(this); _contextmenu = new AutomatedSystemTestsRepositoryFolders.ContextMenuAppFolder(this); + _opslaanals = new AutomatedSystemTestsRepositoryFolders.OpslaanAlsAppFolder(this); + _buttonyesInfo = new RepoItemInfo(this, "ButtonYes", "/form[@title='Confirm Save As']//button[@text='&Yes']", 3000, null, "ac0a8e2f-9815-493c-bc5f-c81dcf12d652"); } #region Variables @@ -108,6 +112,30 @@ } /// + /// The ButtonYes item. + /// + [RepositoryItem("ac0a8e2f-9815-493c-bc5f-c81dcf12d652")] + public virtual Ranorex.Button ButtonYes + { + get + { + return _buttonyesInfo.CreateAdapter(true); + } + } + + /// + /// The ButtonYes item info. + /// + [RepositoryItemInfo("ac0a8e2f-9815-493c-bc5f-c81dcf12d652")] + public virtual RepoItemInfo ButtonYesInfo + { + get + { + return _buttonyesInfo; + } + } + + /// /// The RiskeerMainWindow folder. /// [RepositoryFolder("d918d6a6-a4c6-4c01-a295-0360a81bad96")] @@ -151,6 +179,15 @@ { get { return _contextmenu; } } + + /// + /// The OpslaanAls folder. + /// + [RepositoryFolder("b4da5f61-a7ae-4a2a-bd84-09bffaec5225")] + public virtual AutomatedSystemTestsRepositoryFolders.OpslaanAlsAppFolder OpslaanAls + { + get { return _opslaanals; } + } } /// @@ -171,6 +208,7 @@ AutomatedSystemTestsRepositoryFolders.FailureMechanismContributionViewFolder _failuremechanismcontributionview; AutomatedSystemTestsRepositoryFolders.PropertiesPanelContainerFolder _propertiespanelcontainer; RepoItemInfo _isfmrelevantcellInfo; + RepoItemInfo _copy_of_isfmrelevantcellInfo; /// /// Creates a new RiskeerMainWindow folder. @@ -184,6 +222,7 @@ _failuremechanismcontributionview = new AutomatedSystemTestsRepositoryFolders.FailureMechanismContributionViewFolder(this); _propertiespanelcontainer = new AutomatedSystemTestsRepositoryFolders.PropertiesPanelContainerFolder(this); _isfmrelevantcellInfo = new RepoItemInfo(this, "IsFMRelevantCell", "list//container[@controlname='FailureMechanismContributionView']/?/table/row[@accessiblevalue~$labelFM]/cell[@accessiblename>'Is relevant']", 30000, null, "1029a286-ce5f-4de6-8f9d-d68210aae163"); + _copy_of_isfmrelevantcellInfo = new RepoItemInfo(this, "Copy_of_IsFMRelevantCell", "list//container[@controlname='FailureMechanismContributionView']/?/table/row[@accessiblevalue~$labelFM]/cell[@accessiblename>'Is relevant']", 30000, null, "78b3cba4-3858-49b9-8809-b7f79f03aa5c"); } /// @@ -235,6 +274,30 @@ } /// + /// The Copy_of_IsFMRelevantCell item. + /// + [RepositoryItem("78b3cba4-3858-49b9-8809-b7f79f03aa5c")] + public virtual Ranorex.Cell Copy_of_IsFMRelevantCell + { + get + { + return _copy_of_isfmrelevantcellInfo.CreateAdapter(true); + } + } + + /// + /// The Copy_of_IsFMRelevantCell item info. + /// + [RepositoryItemInfo("78b3cba4-3858-49b9-8809-b7f79f03aa5c")] + public virtual RepoItemInfo Copy_of_IsFMRelevantCellInfo + { + get + { + return _copy_of_isfmrelevantcellInfo; + } + } + + /// /// The ProjectExplorer folder. /// [RepositoryFolder("f5ed0b8b-7145-426f-982e-b89248da6d53")] @@ -481,6 +544,9 @@ public partial class RibbonFolder : RepoGenBaseFolder { AutomatedSystemTestsRepositoryFolders.ButtonContainerFolder _buttoncontainer; + RepoItemInfo _bestandInfo; + RepoItemInfo _buttonmenufilesaveprojectasInfo; + RepoItemInfo _buttonmenufilenewprojectInfo; /// /// Creates a new Ribbon folder. @@ -489,6 +555,9 @@ base("Ribbon", "menubar[@automationid='Ribbon']", parentFolder, 30000, null, true, "c92795a7-9101-49d1-a0da-9036c4491cb2", "") { _buttoncontainer = new AutomatedSystemTestsRepositoryFolders.ButtonContainerFolder(this); + _bestandInfo = new RepoItemInfo(this, "Bestand", "?/?/text[@caption='Bestand']", 30000, null, "8ca7d8de-6c3a-48cd-98e3-444ddf09e011"); + _buttonmenufilesaveprojectasInfo = new RepoItemInfo(this, "ButtonMenuFileSaveProjectAs", "?/?/button[@automationid='ButtonMenuFileSaveProjectAs']", 30000, null, "85528b1e-84f6-40a9-b2b7-58d99c5ad909"); + _buttonmenufilenewprojectInfo = new RepoItemInfo(this, "ButtonMenuFileNewProject", "?/?/button[@automationid='ButtonMenuFileNewProject']", 30000, null, "9b0a050a-4689-4755-8f6d-c46dfe951fe7"); } /// @@ -516,6 +585,78 @@ } /// + /// The Bestand item. + /// + [RepositoryItem("8ca7d8de-6c3a-48cd-98e3-444ddf09e011")] + public virtual Ranorex.Text Bestand + { + get + { + return _bestandInfo.CreateAdapter(true); + } + } + + /// + /// The Bestand item info. + /// + [RepositoryItemInfo("8ca7d8de-6c3a-48cd-98e3-444ddf09e011")] + public virtual RepoItemInfo BestandInfo + { + get + { + return _bestandInfo; + } + } + + /// + /// The ButtonMenuFileSaveProjectAs item. + /// + [RepositoryItem("85528b1e-84f6-40a9-b2b7-58d99c5ad909")] + public virtual Ranorex.Button ButtonMenuFileSaveProjectAs + { + get + { + return _buttonmenufilesaveprojectasInfo.CreateAdapter(true); + } + } + + /// + /// The ButtonMenuFileSaveProjectAs item info. + /// + [RepositoryItemInfo("85528b1e-84f6-40a9-b2b7-58d99c5ad909")] + public virtual RepoItemInfo ButtonMenuFileSaveProjectAsInfo + { + get + { + return _buttonmenufilesaveprojectasInfo; + } + } + + /// + /// The ButtonMenuFileNewProject item. + /// + [RepositoryItem("9b0a050a-4689-4755-8f6d-c46dfe951fe7")] + public virtual Ranorex.Button ButtonMenuFileNewProject + { + get + { + return _buttonmenufilenewprojectInfo.CreateAdapter(true); + } + } + + /// + /// The ButtonMenuFileNewProject item info. + /// + [RepositoryItemInfo("9b0a050a-4689-4755-8f6d-c46dfe951fe7")] + public virtual RepoItemInfo ButtonMenuFileNewProjectInfo + { + get + { + return _buttonmenufilenewprojectInfo; + } + } + + /// /// The ButtonContainer folder. /// [RepositoryFolder("ad33bdf4-926b-4708-9063-9df7f2f47498")] @@ -979,6 +1120,7 @@ public partial class ActivityProgressDialogAppFolder : RepoGenBaseFolder { RepoItemInfo _progressbarInfo; + RepoItemInfo _buttoncancelInfo; /// /// Creates a new ActivityProgressDialog folder. @@ -987,6 +1129,7 @@ base("ActivityProgressDialog", "/form[@controlname='ActivityProgressDialog']", parentFolder, 30000, null, true, "6992b395-923d-4913-be11-dc9d7fa075dc", "") { _progressbarInfo = new RepoItemInfo(this, "ProgressBar", "progressbar[@controlname='progressBar']", 30000, null, "626cf7e9-229f-443b-8711-8359ac8e9d95"); + _buttoncancelInfo = new RepoItemInfo(this, "ButtonCancel", "button[@controlname='buttonCancel']", 30000, null, "ce9d9227-f12e-488e-9ca2-80d899fed485"); } /// @@ -1036,6 +1179,30 @@ return _progressbarInfo; } } + + /// + /// The ButtonCancel item. + /// + [RepositoryItem("ce9d9227-f12e-488e-9ca2-80d899fed485")] + public virtual Ranorex.Button ButtonCancel + { + get + { + return _buttoncancelInfo.CreateAdapter(true); + } + } + + /// + /// The ButtonCancel item info. + /// + [RepositoryItemInfo("ce9d9227-f12e-488e-9ca2-80d899fed485")] + public virtual RepoItemInfo ButtonCancelInfo + { + get + { + return _buttoncancelInfo; + } + } } /// @@ -1312,6 +1479,98 @@ } } + /// + /// The OpslaanAlsAppFolder folder. + /// + [RepositoryFolder("b4da5f61-a7ae-4a2a-bd84-09bffaec5225")] + public partial class OpslaanAlsAppFolder : RepoGenBaseFolder + { + RepoItemInfo _saveasfilenameInfo; + RepoItemInfo _savebuttonInfo; + + /// + /// Creates a new OpslaanAls folder. + /// + public OpslaanAlsAppFolder(RepoGenBaseFolder parentFolder) : + base("OpslaanAls", "/form[@title='Opslaan als']", parentFolder, 30000, null, true, "b4da5f61-a7ae-4a2a-bd84-09bffaec5225", "") + { + _saveasfilenameInfo = new RepoItemInfo(this, "SaveAsFileName", "element[@class='DUIViewWndClassName']//combobox[@class='ComboBox']/text[@accessiblename='File name:']", 30000, null, "29c5aee0-b248-4a91-82b3-a8a9f8f7382e"); + _savebuttonInfo = new RepoItemInfo(this, "SaveButton", "button[@text='&Save']", 30000, null, "d1a05174-5318-4647-9db3-00a286f95fbc"); + } + + /// + /// The Self item. + /// + [RepositoryItem("b4da5f61-a7ae-4a2a-bd84-09bffaec5225")] + public virtual Ranorex.Form Self + { + get + { + return _selfInfo.CreateAdapter(true); + } + } + + /// + /// The Self item info. + /// + [RepositoryItemInfo("b4da5f61-a7ae-4a2a-bd84-09bffaec5225")] + public virtual RepoItemInfo SelfInfo + { + get + { + return _selfInfo; + } + } + + /// + /// The SaveAsFileName item. + /// + [RepositoryItem("29c5aee0-b248-4a91-82b3-a8a9f8f7382e")] + public virtual Ranorex.Text SaveAsFileName + { + get + { + return _saveasfilenameInfo.CreateAdapter(true); + } + } + + /// + /// The SaveAsFileName item info. + /// + [RepositoryItemInfo("29c5aee0-b248-4a91-82b3-a8a9f8f7382e")] + public virtual RepoItemInfo SaveAsFileNameInfo + { + get + { + return _saveasfilenameInfo; + } + } + + /// + /// The SaveButton item. + /// + [RepositoryItem("d1a05174-5318-4647-9db3-00a286f95fbc")] + public virtual Ranorex.Button SaveButton + { + get + { + return _savebuttonInfo.CreateAdapter(true); + } + } + + /// + /// The SaveButton item info. + /// + [RepositoryItemInfo("d1a05174-5318-4647-9db3-00a286f95fbc")] + public virtual RepoItemInfo SaveButtonInfo + { + get + { + return _savebuttonInfo; + } + } + } + } #pragma warning restore 0436 } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rximg =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 Binary files differ Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rxrep =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rxrep (.../AutomatedSystemTestsRepository.rxrep) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTestsRepository.rxrep (.../AutomatedSystemTestsRepository.rxrep) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -103,6 +103,33 @@ /form[@automationid='RiskeerMainWindow']/menubar[@automationid='Ribbon']/container[@automationid='PART_ToolBarPanel'] + + /form[@automationid='RiskeerMainWindow']/menubar[@automationid='Ribbon']/?/?/text[@caption='Bestand'] + + + /form[@automationid='RiskeerMainWindow']/menubar[@automationid='Ribbon']/?/?/button[@automationid='ButtonMenuFileSaveProjectAs'] + + + /form[@automationid='RiskeerMainWindow']/menubar[@automationid='Ribbon']/?/?/button[@automationid='ButtonMenuFileNewProject'] + /form[@automationid='RiskeerMainWindow']/menubar[@automationid='Ribbon'] @@ -137,6 +164,15 @@ searchtimeout="30000ms"> /form[@automationid='RiskeerMainWindow']/list//container[@controlname='FailureMechanismContributionView']/?/table/row[@accessiblevalue~$labelFM]/cell[@accessiblename>'Is relevant'] + + /form[@automationid='RiskeerMainWindow']/list//container[@controlname='FailureMechanismContributionView']/?/table/row[@accessiblevalue~$labelFM]/cell[@accessiblename>'Is relevant'] + /form[@controlname='ActivityProgressDialog']/progressbar[@controlname='progressBar'] + + /form[@controlname='ActivityProgressDialog']/button[@controlname='buttonCancel'] + /form[@controlname='ActivityProgressDialog'] @@ -454,6 +500,60 @@ DAPIxVgFicf/GQCdrAkiuOdOjQAAAABJRU5ErkJggg== + + + /form[@title='Opslaan als']/element[@class='DUIViewWndClassName']//combobox[@class='ComboBox']/text[@accessiblename='File name:'] + + + /form[@title='Opslaan als']/button[@text='&Save'] + + + /form[@title='Opslaan als'] + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlz +AAAOxAAADsQBlSsOGwAAAlFJREFUOE+lk+tLk2EYh/eX9CGipCIyCKLo4HHlzA8SVoR9KogkkKDM +CKRCCwQtKUjtIJSdrKggqQ+CFZmHHGlzzrU552HqNnWbO7zHXT3bBLXQoG74fXvv63c9z8tj+O9p +aDFz55WDmuYBqpp+cLnRzJnqTk5UdlNc8YWic60Ulr6koOTJshw8/RjjkXIMdc9tNLVrNLZp3GqV +qX4dofJZkIpHs5Q3+Tl710fJ7UlO1o5zvNrN0SoXh644yS8zsyZtB4baZjN1bwLcfBvm4oMpTt1w +U3zdybFrDg5ftVNYYaPg0iCmcisHLgxgLLOQe95CRmk369KNGGoaXuAPxAhHNeZFQhGVYFghIDIb +SsUbUPDMyLi9Mg6PhHVMosvqYePW7QJQ38JqE4+DokJEijMX0ZkKaoz6VSwuLxs2b8Nw/+n7hU// +HE0HSYkzH9OZmdeYnNNw+xR+Tir0DP0FoItmWSwnm8M606J5TDQ7pxSs4zKd1tUACW1NLMtxglEd +X0hjYlbD5VWwTSj0j8h8tgjAphUAi+pxZsRySl3FLtQtozK9wxLtfSsAkupqQl1PqQdS6o6kusJ3 +l0yXQ6LNnACkLwckb1yDqDh3YKn6dEq9zy3R45TosMX40PsbQOyiLqiHhLo/eesqIwl1z6L6V3uM +T9Yo73q8rE8A7i0xEOVI4p+HYggATMyByxdnyKPRP6rxbVilw67wcVBOAtambRFvof4hufvzyTGa +yBbJEskUycg1sS/HxN7sPPaI7M7KY1dmKjszUsnJL2LhTf7rGAy/AP7X5rYY5FLEAAAAAElFTkSu +QmCC + + + + /form[@title='Confirm Save As']//button[@text='&Yes'] + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.UserCode.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.UserCode.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.UserCode.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -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 NewProject + { + /// + /// 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/NewProject.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,96 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 NewProject recording. + /// + [TestModule("f0658d7f-65e3-4f38-afe8-97fd942c1478", ModuleType.Recording, 1)] + public partial class NewProject : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static NewProject instance = new NewProject(); + + /// + /// Constructs a new instance. + /// + public NewProject() + { + } + + /// + /// Gets a static instance of this recording. + /// + public static NewProject Instance + { + get { return instance; } + } + +#region Variables + +#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, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.Bestand' at Center.", repo.RiskeerMainWindow.Ribbon.BestandInfo, new RecordItemIndex(0)); + repo.RiskeerMainWindow.Ribbon.Bestand.Click(); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.ButtonMenuFileNewProject' at Center.", repo.RiskeerMainWindow.Ribbon.ButtonMenuFileNewProjectInfo, new RecordItemIndex(1)); + repo.RiskeerMainWindow.Ribbon.ButtonMenuFileNewProject.Click(); + Delay.Milliseconds(0); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/NewProject.rxrec (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,289 @@ + + + + 1 + + + False + + + True + + + 1 + + + True + + + + + + + + + + + + + + /form[@automationid='RiskeerMainWindow']/menubar[@automationid='Ribbon']/?/?/text[@caption='Bestand'] + + + + + + + + + + + + False + + + ButtonMenuFileNewProject + + + Button + + + Button + + + WPF + + + True + + + True + + + True + + + False + + + False + + + button + + + None + + + 24076 + + + + /form[@automationid='RiskeerMainWindow']/button[@automationid='ButtonMenuFileNewProject'] + + + + /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABwTFRgVERwYFhgfHRwhKUUtKSYmKVQ8QDJFZFhpZ2JY +YF9ufJ6GbnWWd19giruLlqOpsbOxa4TC0MGszp6usar/2wBDAR0fHykkKVEtLVGqcmByqqqqqqqq +qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/wAARCADnAOADASIA +AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA +AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 +ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm +p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA +AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx +BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkN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7Y6ir1ABRRRQAHpUcf+sf6D+tSHpUcf+sf6D+tAElFFFABRRRQAUUUUAFFFFABRRRQA +UUUUAFFFFADZFEkbIeAwIql/Zaf3x/3z/wDXoopNJjUmtiza24toyinOTmpFjVXZwPmfGT9KKKYm +7kS2kKIURWQFQnyuQcAkgZB46mj7Hb7ChjyCpU5YkkE5PPrnv1oooAI7SCM5VWJ3B8s5Yk4xnJPp +SGxgKgbXGGLAiRgRnrgg5A9ulFFADzbRFWUqSHADZYknHSpaKKACiiigAPSo4/8AWN9B/WiigCSi +iigAooooAKKKKACiiigAooooAKKKKAP/2Q== + + + + + + + + + + + NewProject.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/OpenViewForFailureMechanismContribution.cs =================================================================== diff -u -r31e9dfe382a070363659e0ef995e8ae6f7406e40 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/OpenViewForFailureMechanismContribution.cs (.../OpenViewForFailureMechanismContribution.cs) (revision 31e9dfe382a070363659e0ef995e8ae6f7406e40) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/OpenViewForFailureMechanismContribution.cs (.../OpenViewForFailureMechanismContribution.cs) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -99,7 +99,7 @@ repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.Faalkansbegroting.DoubleClick(); // Screenshot of FailureMechanismContributionView - Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.FailureMechanismContributionView.Self, false, new RecordItemIndex(3)); + //Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.FailureMechanismContributionView.Self, false, new RecordItemIndex(3)); } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/OpenViewForFailureMechanismContribution.rxrec =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/OpenViewForFailureMechanismContribution.rxrec (.../OpenViewForFailureMechanismContribution.rxrec) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/OpenViewForFailureMechanismContribution.rxrec (.../OpenViewForFailureMechanismContribution.rxrec) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -92,7 +92,7 @@ + /// 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 ConfirmOverwrite(RepoItemInfo buttonInfo) + { + if (buttonInfo.Exists()) + { + Report.Log(ReportLevel.Info, "Mouse", "(Optional Action)\r\nMouse Left Click item 'buttonInfo' at Center.", buttonInfo); + buttonInfo.FindAdapter().Click(); + } + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SaveAs.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SaveAs.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SaveAs.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,129 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 SaveAs recording. + /// + [TestModule("9195acd9-b037-4ace-80c3-0f7f64c35452", ModuleType.Recording, 1)] + public partial class SaveAs : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static SaveAs instance = new SaveAs(); + + /// + /// Constructs a new instance. + /// + public SaveAs() + { + fileNameToSave = "kkdelavaca.risk"; + } + + /// + /// Gets a static instance of this recording. + /// + public static SaveAs Instance + { + get { return instance; } + } + +#region Variables + + string _fileNameToSave; + + /// + /// Gets or sets the value of variable fileNameToSave. + /// + [TestVariable("d40271fe-a08b-44b0-bb48-a991f40e104b")] + public string fileNameToSave + { + get { return _fileNameToSave; } + set { _fileNameToSave = 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, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.Bestand' at Center.", repo.RiskeerMainWindow.Ribbon.BestandInfo, new RecordItemIndex(0)); + repo.RiskeerMainWindow.Ribbon.Bestand.Click(); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.ButtonMenuFileSaveProjectAs' at Center.", repo.RiskeerMainWindow.Ribbon.ButtonMenuFileSaveProjectAsInfo, new RecordItemIndex(1)); + repo.RiskeerMainWindow.Ribbon.ButtonMenuFileSaveProjectAs.Click(); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Set value", "Setting attribute Text to '$fileNameToSave' on item 'OpslaanAls.SaveAsFileName'.", repo.OpslaanAls.SaveAsFileNameInfo, new RecordItemIndex(2)); + repo.OpslaanAls.SaveAsFileName.Element.SetAttributeValue("Text", fileNameToSave); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'OpslaanAls.SaveButton' at Center.", repo.OpslaanAls.SaveButtonInfo, new RecordItemIndex(3)); + repo.OpslaanAls.SaveButton.Click(); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Delay", "Waiting for 50ms.", new RecordItemIndex(4)); + Delay.Duration(50, false); + + ConfirmOverwrite(repo.ButtonYesInfo); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Delay", "Waiting for 100ms.", new RecordItemIndex(6)); + Delay.Duration(100, false); + + Report.Log(ReportLevel.Info, "Wait", "Waiting 5m to not exist. Associated repository item: 'ActivityProgressDialog.ButtonCancel'", repo.ActivityProgressDialog.ButtonCancelInfo, new ActionTimeout(300000), new RecordItemIndex(7)); + repo.ActivityProgressDialog.ButtonCancelInfo.WaitForNotExists(300000); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/SaveAs.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/SaveAs.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/SaveAs.rxrec (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,1905 @@ + + + + 1 + + + False + + + True + + + 1 + + + True + + + + + + kkdelavaca.risk + + + + + + + + + + + /form[@automationid='Window']/menubar[@automationid='Ribbon']/?/?/text[@caption='Bestand'] + + + + + + + + + + + + False + + + Opslaan Als + + + ButtonMenuFileSaveProjectAs + + + + + + + + + False + + + False + + + False + + + + + + + + + System.Windows.Controls.Button + + + Ranorex.Plugin.Wpf.DepoGroup<Fluent.Button> + + + ButtonMenuFileSaveProjectAs + + + DepoGroup<Button> + + + 4f6c6d8c-4b60-4474-9f30-79ecd7800f5f + + + AAEAAAD/////AQAAAAAAAAAHAQAAAAABAAAABQAAAAMLU3lzdGVtLkd1aWQE/v///wtTeXN0ZW0u +R3VpZAsAAAACX2ECX2ICX2MCX2QCX2UCX2YCX2cCX2gCX2kCX2oCX2sAAAAAAAAAAAAAAAgHBwIC +AgICAgICjG1sT2BLdESfMHns14APXwH9/////v///wobGKrI0LlDjY1thgXnLP4B/P////7///8G +qEp7FTaRTJItGA1A07SlAfv////+////faGWhAp7+EKJ47V8Cl+StwH6/////v///0gpI+LNTQ1K +naLgXumYbgcL + + + 494df3db-1c3e-4181-8957-b024ab12e7e6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /form[@automationid='Window']/menubar[@automationid='Ribbon']/?/?/button[@automationid='ButtonMenuFileSaveProjectAs'] + + + + + + + + + + + + + + 0 + + + 0 + + + False + + + Edit + + + 72742 + + + 0 + + + LeftToRightReading + + + Overlapped + + + + + + + + + + + + + + + + + + + + + + + + /form/element[@class='DUIViewWndClassName']//combobox[@class='ComboBox']/text[@controlid='1001'] + + + + yourValue + + + + + + + + + + + False + + + &Save + + + False + + + Button + + + 1 + + + 72670 + + + 0 + + + 17172 + + + Riskeer + + + RightScrollBar, Left, NoParentNotify + + + Tiled, MaximizeBox, Group, Visible, ChildWindow + + + &Save + + + + + + + + + + + + + + + + + + + + + + + + /form/button + + + + /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABwTFRgVERwYFhgfHRwhKUUtKSYmKVQ8QDJFZFhpZ2JY +YF9ufJ6GbnWWd19giruLlqOpsbOxa4TC0MGszp6usar/2wBDAR0fHykkKVEtLVGqcmByqqqqqqqq +qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/wAARCAEaARoDASIA +AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA +AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 +ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm +p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA +AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx +BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK +U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3 +uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDpKKKK +ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA +KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAo +oooAKKKKACiiigAooooAKKKKACiiigAooooAp73/ALzfnRvf+83502igB29/7zfnRvf+83502igB +29/7zfnRvf8AvN+dNooAdvf+8350b3/vN+dNooAdvf8AvN+dG9/7zfnTaKAHb3/vN+dG9/7zfnTa +KAHb3/vN+dG9/wC83502igB29/7zfnRvf+83502igB29/wC8350b3/vN+dNooAdvf+8350b3/vN+ +dNooAdvf+8350b3/ALzfnTaKAHb3/vN+dOjdi4yx/Oo6dF/rBQBZyfWjJ9aSigBcn1oyfWkooAXJ +9aMn1pKKAFyfWjJ9aSigBcn1oyfWkooA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En/ftP8KvUUAUfsV1/0EJP+/af4UfYrr/oISf9+0/wq9RQBR+xXX/QQk/79p/hR9iu +v+ghJ/37T/Cr1FAFH7Fdf9BCT/v2n+FH2K6/6CEn/ftP8KvUUAUfsV1/0EJP+/af4UfYrr/oISf9 ++0/wq9RQBR+xXX/QQk/79p/hR9iuv+ghJ/37T/Cr1FAFH7Fdf9BCT/v2n+FH2K6/6CEn/ftP8KvU +UAUfsV1/0EJP+/af4UfYrr/oISf9+0/wq9RQBR+xXX/QQk/79p/hR9iuv+ghJ/37T/Cr1FAFH7Fd +f9BCT/v2n+FH2K6/6CEn/ftP8KvUUAUfsV1/0EJP+/af4UfYrr/oISf9+0/wq9RQBR+xXX/QQk/7 +9p/hR9iuv+ghJ/37T/Cr1FAFH7Fdf9BCT/v2n+FH2K6/6CEn/ftP8KvUUAUfsV1/0EJP+/af4UfY +rr/oISf9+0/wq9RQB//Z + + + + + + + + + + + + + + + + + Ranorex.Core.Repository.RepoItemInfo, Ranorex.Core, Culture=neutral + + + + + + /form[@title='Confirm Save As']//button[@text='&Yes'] + + + + + + + + + + + + + + + + + + + + Annuleren + + + buttonCancel + + + Annuleren + + + System.Windows.Forms.Button + + + Button + + + False + + + WindowsForms10.BUTTON.app.0.21a1964_r9_ad1 + + + 592044 + + + 0 + + + 27672 + + + Riskeer + + + LeftToRightReading + + + Tiled, MaximizeBox, ClipChildren, ClipSiblings, Visible, ChildWindow + + + Annuleren + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /form[@controlname='ActivityProgressDialog']/button[@controlname='buttonCancel'] + + + + + + + + + + + + SaveAs.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.UserCode.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.UserCode.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.UserCode.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,46 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 ValidateFMRelevanceInFMCView + { + /// + /// 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 ValidateFMinFMCView(RepoItemInfo cellInfo, string expectedRelevance) + { + string currentStates = cellInfo.FindAdapter().As().State.ToString(); + var isCurrentlyRelevant = (currentStates.IndexOf("Checked") != -1)?"True":"False"; + Report.Log(ReportLevel.Info, "Info", "Current relevance is " + isCurrentlyRelevant + ".", cellInfo); + Report.Log(ReportLevel.Info, "Info", "Expected relevance is " + expectedRelevance + ".", cellInfo); + Validate.AreEqual(isCurrentlyRelevant, expectedRelevance); + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,116 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 ValidateFMRelevanceInFMCView recording. + /// + [TestModule("3c9b70f2-d794-41d3-b0ce-6da8c1e00475", ModuleType.Recording, 1)] + public partial class ValidateFMRelevanceInFMCView : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static ValidateFMRelevanceInFMCView instance = new ValidateFMRelevanceInFMCView(); + + /// + /// Constructs a new instance. + /// + public ValidateFMRelevanceInFMCView() + { + fmExpectedRelevance = ""; + } + + /// + /// Gets a static instance of this recording. + /// + public static ValidateFMRelevanceInFMCView Instance + { + get { return instance; } + } + +#region Variables + + string _fmExpectedRelevance; + + /// + /// Gets or sets the value of variable fmExpectedRelevance. + /// + [TestVariable("8f4ca43a-f614-4ad7-898c-4a121072e015")] + public string fmExpectedRelevance + { + get { return _fmExpectedRelevance; } + set { _fmExpectedRelevance = value; } + } + + /// + /// Gets or sets the value of variable labelFM. + /// + [TestVariable("5afdb904-9d2e-4bb5-ae28-38089eda6255")] + public string labelFM + { + get { return repo.labelFM; } + set { repo.labelFM = 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(); + + try { + ValidateFMinFMCView(repo.RiskeerMainWindow.IsFMRelevantCellInfo, fmExpectedRelevance); + Delay.Milliseconds(0); + } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(0)); } + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateFMRelevanceInFMCView.rxrec (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,93 @@ + + + + 1 + + + False + + + True + + + 1 + + + True + + + + + + + + + + + + + + + + + Ranorex.Core.Repository.RepoItemInfo, Ranorex.Core, Culture=neutral + + + + + + /form[@automationid='RiskeerMainWindow']/list//container[@controlname='FailureMechanismContributionView']/?/table/row[@accessiblevalue~$labelFM]/cell[@accessiblename>'Is relevant'] + + + + + + System.String + + + + + + + + + + + + + + + ValidateFMRelevanceInFMCView.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.UserCode.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.UserCode.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.UserCode.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,53 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 ValidateRelevanceFMInFailureMechanismsContributionView + { + /// + /// 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 ValidateCheckStateOfIsRelevantCell(RepoItemInfo cellInfo, string expectedRelevance) + { + string currentStates = cellInfo.CreateAdapter(true).As().State.ToString(); + var isCurrentlyRelevant = (currentStates.IndexOf("Checked") != -1)?"True":"False"; + Report.Log(ReportLevel.Info, "Info", "Current relevance is " + isCurrentlyRelevant + ".", cellInfo); + Report.Log(ReportLevel.Info, "Info", "Relevance should be " + expectedRelevance + ".", cellInfo); + if (isCurrentlyRelevant!=expectedRelevance) { + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'cellInfo' at Center.", cellInfo); + cellInfo.FindAdapter().Click(); + Report.Log(ReportLevel.Info, "Info", "Relevance has been set to " + expectedRelevance + "." , cellInfo); + } else + { + Report.Log(ReportLevel.Info, "Info", "No action required.", cellInfo); + } + } + + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.cs (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,114 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// 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 ValidateRelevanceFMInFailureMechanismsContributionView recording. + /// + [TestModule("da058275-d0cb-43a7-acac-6af07721c9ef", ModuleType.Recording, 1)] + public partial class ValidateRelevanceFMInFailureMechanismsContributionView : ITestModule + { + /// + /// Holds an instance of the AutomatedSystemTestsRepository repository. + /// + public static AutomatedSystemTestsRepository repo = AutomatedSystemTestsRepository.Instance; + + static ValidateRelevanceFMInFailureMechanismsContributionView instance = new ValidateRelevanceFMInFailureMechanismsContributionView(); + + /// + /// Constructs a new instance. + /// + public ValidateRelevanceFMInFailureMechanismsContributionView() + { + fmExpectedRelevance = ""; + } + + /// + /// Gets a static instance of this recording. + /// + public static ValidateRelevanceFMInFailureMechanismsContributionView Instance + { + get { return instance; } + } + +#region Variables + + string _fmExpectedRelevance; + + /// + /// Gets or sets the value of variable fmExpectedRelevance. + /// + [TestVariable("308ec504-8d9a-4012-994b-12a9ebd88239")] + public string fmExpectedRelevance + { + get { return _fmExpectedRelevance; } + set { _fmExpectedRelevance = value; } + } + + /// + /// Gets or sets the value of variable labelFM. + /// + [TestVariable("5afdb904-9d2e-4bb5-ae28-38089eda6255")] + public string labelFM + { + get { return repo.labelFM; } + set { repo.labelFM = 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(); + + ValidateCheckStateOfIsRelevantCell(repo.RiskeerMainWindow.IsFMRelevantCellInfo, fmExpectedRelevance); + Delay.Milliseconds(0); + + } + +#region Image Feature Data +#endregion + } +#pragma warning restore 0436 +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.rxrec =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.rxrec (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInFailureMechanismsContributionView.rxrec (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -0,0 +1,93 @@ + + + + 1 + + + False + + + True + + + 1 + + + True + + + + + + + + + + + + + + + + + Ranorex.Core.Repository.RepoItemInfo, Ranorex.Core, Culture=neutral + + + + + + /form[@automationid='RiskeerMainWindow']/list//container[@controlname='FailureMechanismContributionView']/?/table/row[@accessiblevalue~$labelFM]/cell[@accessiblename>'Is relevant'] + + + + + + System.String + + + + + + + + + + + + + + + ValidateRelevanceFMInFailureMechanismsContributionView.UserCode.cs + + + + Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.UserCode.cs =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.UserCode.cs (.../ValidateRelevanceFMInProjectExplorer.UserCode.cs) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.UserCode.cs (.../ValidateRelevanceFMInProjectExplorer.UserCode.cs) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -37,6 +37,9 @@ { int numberOfChildren = fmObjectInfo.FindAdapter().Children.Count; Report.Log(ReportLevel.Info, "Info", "Failure mechanism (FM) node contains " + numberOfChildren + " items.", fmObjectInfo); + foreach (var ch in fmObjectInfo.FindAdapter().Children) { + Report.Log(ReportLevel.Info, "Info", ch.ToString() , fmObjectInfo); + } string currentRelevance = numberOfChildren!=1 ? "True" : "False"; Report.Log(ReportLevel.Info, "Info", "The relevance of the FM is " + currentRelevance + ".", fmObjectInfo); Validate.AreEqual(currentRelevance, expectedRelevance); Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.cs =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.cs (.../ValidateRelevanceFMInProjectExplorer.cs) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.cs (.../ValidateRelevanceFMInProjectExplorer.cs) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -106,59 +106,76 @@ [System.CodeDom.Compiler.GeneratedCode("Ranorex", global::Ranorex.Core.Constants.CodeGenVersion)] void ITestModule.Run() { - Mouse.DefaultMoveTime = 0; + Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; - Delay.SpeedFactor = 0.00; + Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "User", "Validating number of subnodes", new RecordItemIndex(0)); Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName'.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(1)); repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName.Focus(); + Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName'.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(2)); repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName.Select(); + Delay.Milliseconds(0); - Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Right}'.", new RecordItemIndex(3)); + Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName' at Center.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(3)); + repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName.Click(); + Delay.Milliseconds(0); + + Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Right}'.", new RecordItemIndex(4)); Keyboard.Press("{Right}"); + Delay.Milliseconds(0); - Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.ProjectExplorer.Self, false, new RecordItemIndex(4)); + Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(5)); + Delay.Duration(300, false); - Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Left}'.", new RecordItemIndex(5)); - Keyboard.Press("{Left}"); + Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.ProjectExplorer.Self, false, new RecordItemIndex(6)); try { ValidateNumberOfNodesInFM(repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, fmExpectedRelevance); - } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(6)); } + Delay.Milliseconds(0); + } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(7)); } - Report.Log(ReportLevel.Info, "User", "Validating context menu", new RecordItemIndex(7)); + Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Left}'.", new RecordItemIndex(8)); + Keyboard.Press("{Left}"); + Delay.Milliseconds(0); - Report.Log(ReportLevel.Info, "Mouse", "Mouse Right Click item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName' at Center.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(8)); + Report.Log(ReportLevel.Info, "User", "Validating context menu", new RecordItemIndex(9)); + + Report.Log(ReportLevel.Info, "Mouse", "Mouse Right Click item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName' at Center.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(10)); repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName.Click(System.Windows.Forms.MouseButtons.Right); + Delay.Milliseconds(0); - Report.Screenshot(ReportLevel.Info, "User", "", repo.ContextMenu.Self, false, new RecordItemIndex(9)); + Report.Screenshot(ReportLevel.Info, "User", "", repo.ContextMenu.Self, false, new RecordItemIndex(11)); try { ValidateNumberOfItemsInContextMenu(repo.ContextMenu.SelfInfo, fmExpectedRelevance); - } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(10)); } + Delay.Milliseconds(0); + } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(12)); } - Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Escape}'.", new RecordItemIndex(11)); + Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Escape}'.", new RecordItemIndex(13)); Keyboard.Press("{Escape}"); + Delay.Milliseconds(0); - Report.Log(ReportLevel.Info, "User", "Validating property panel when selected", new RecordItemIndex(12)); + Report.Log(ReportLevel.Info, "User", "Validating property panel when selected", new RecordItemIndex(14)); try { - Report.Log(ReportLevel.Info, "Mouse", "(Optional Action)\r\nMouse Left Click item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName' at Center.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(13)); + Report.Log(ReportLevel.Info, "Mouse", "(Optional Action)\r\nMouse Left Click item 'RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName' at Center.", repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInNameInfo, new RecordItemIndex(15)); repo.RiskeerMainWindow.ProjectExplorer.ProjectRootNode.TrajectWithSubstringInName.GenericItemWithSubstringInName.Click(); - } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(13)); } + Delay.Milliseconds(0); + } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(15)); } - Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevant, false, new RecordItemIndex(14)); + Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevant, false, new RecordItemIndex(16)); try { - Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (AccessibleValue=$fmExpectedRelevance) on item 'RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevant'.", repo.RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevantInfo, new RecordItemIndex(15)); + Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (AccessibleValue=$fmExpectedRelevance) on item 'RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevant'.", repo.RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevantInfo, new RecordItemIndex(17)); Validate.AttributeEqual(repo.RiskeerMainWindow.PropertiesPanelContainer.Table.IsRelevantInfo, "AccessibleValue", fmExpectedRelevance, null, false); - } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(15)); } + Delay.Milliseconds(100); + } catch(Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(17)); } } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.rxrec =================================================================== diff -u -rbade2ab4a993b7aee3fadc27572ce67df5013ea8 -r9a7292eb19ad0429d4254dc403f95b8ad606b9a9 --- System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.rxrec (.../ValidateRelevanceFMInProjectExplorer.rxrec) (revision bade2ab4a993b7aee3fadc27572ce67df5013ea8) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/ValidateRelevanceFMInProjectExplorer.rxrec (.../ValidateRelevanceFMInProjectExplorer.rxrec) (revision 9a7292eb19ad0429d4254dc403f95b8ad606b9a9) @@ -7,7 +7,7 @@ 1 - True + False True @@ -81,6 +81,30 @@ id="c037b496-f60f-4ab6-80c8-02122e01b63d"> + + + + + + + + /form[@automationid='RiskeerMainWindow']//container[@controlname='ProjectExplorer']//tree[@controlname='treeView']/tree[@accessiblerole='Outline']/treeitem[1]/treeitem[@accessiblename~$substringTrajectName]/treeitem[@accessiblename~$substringItemName] + + + + + + + + + - - - - - - + + + + + +