Index: System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj =================================================================== diff -u -r1bbff0dc763992cedf6a20ed6858e9ef0723d764 -rf918e1e5bdb3ef8312edc1320ffab841a3b759f4 --- System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision 1bbff0dc763992cedf6a20ed6858e9ef0723d764) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/AutomatedSystemTests.csproj (.../AutomatedSystemTests.csproj) (revision f918e1e5bdb3ef8312edc1320ffab841a3b759f4) @@ -606,6 +606,9 @@ true 3ffb81e6-7244-4c09-8e0b-3de2aa64a020 + + 39893f55-3c63-49ba-9bfc-a613860aa36e + 9a4c4116-ea50-4483-9928-f57623ba3542 Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsPropertiesPanel/CollapseRowItemsInPropertiesPanel.cs =================================================================== diff -u --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsPropertiesPanel/CollapseRowItemsInPropertiesPanel.cs (revision 0) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsPropertiesPanel/CollapseRowItemsInPropertiesPanel.cs (revision f918e1e5bdb3ef8312edc1320ffab841a3b759f4) @@ -0,0 +1,63 @@ +/* + * Created by Ranorex + * User: rodriqu_dd + * Date: 29/10/2021 + * Time: 08:22 + * + * To change this template use Tools > Options > Coding > Edit standard headers. + */ +using System; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; +using System.Drawing; +using System.Threading; +using System.Linq; +using WinForms = System.Windows.Forms; + +using Ranorex; +using Ranorex.Core; +using Ranorex.Core.Testing; + +namespace AutomatedSystemTests.Modules.ActionsPropertiesPanel +{ + /// + /// Description of CollapseRowItemsInPropertiesPanel. + /// + [TestModule("9FAAAB93-1756-4755-9753-200E0BF3E602", ModuleType.UserCode, 1)] + public class CollapseRowItemsInPropertiesPanel : ITestModule + { + /// + /// Constructs a new instance. + /// + public CollapseRowItemsInPropertiesPanel() + { + // Do not delete - a parameterless constructor is required! + } + + /// + /// Performs the playback of actions in this module. + /// + /// You should not call this method directly, instead pass the module + /// instance to the method + /// that will in turn invoke this method. + void ITestModule.Run() + { + Mouse.DefaultMoveTime = 0; + Keyboard.DefaultKeyPressTime = 0; + Delay.SpeedFactor = 0.0; + + AutomatedSystemTestsRepository myRepository = global::AutomatedSystemTests.AutomatedSystemTestsRepository.Instance; + Adapter propertiesPanelAdapter = myRepository.RiskeerMainWindow.ContainerMultipleViews.PropertiesPanelContainer.Table.Self; + + IEnumerable rowsList = propertiesPanelAdapter.As().Rows; + IEnumerable rowsMustBeCollapsed = rowsList.Where(rw=>rw.Element.GetAttributeValueText("AccessibleState").ToString().Contains("Expanded")); + + foreach (var rw in rowsMustBeCollapsed.Reverse()) { + rw.Focus(); + rw.Select(); + rw.PressKeys("{Left}"); + } + } + } +} Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsPropertiesPanel/ExpandRowItemsInPropertiesPanel.cs =================================================================== diff -u -r1bbff0dc763992cedf6a20ed6858e9ef0723d764 -rf918e1e5bdb3ef8312edc1320ffab841a3b759f4 --- System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsPropertiesPanel/ExpandRowItemsInPropertiesPanel.cs (.../ExpandRowItemsInPropertiesPanel.cs) (revision 1bbff0dc763992cedf6a20ed6858e9ef0723d764) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Modules/ActionsPropertiesPanel/ExpandRowItemsInPropertiesPanel.cs (.../ExpandRowItemsInPropertiesPanel.cs) (revision f918e1e5bdb3ef8312edc1320ffab841a3b759f4) @@ -71,22 +71,6 @@ rw.PressKeys("{Right}"); } } - - - //IEnumerable rowsList = propertiesPanelAdapter.As
().Rows; - // - //IEnumerable rowsMustBeExpanded = rowsList.Where(rw=>rw.Element.GetAttributeValueText("AccessibleState").ToString().Contains("Collapsed")); - //bool expNeeded = rowsMustBeExpanded.Any(); - //while (expNeeded) { - // foreach (var rw in rowsMustBeExpanded) { - // rw.Focus(); - // rw.Select(); - // rw.PressKeys("{Right}"); - // } - // rowsList = myRepository.RiskeerMainWindow.ContainerMultipleViews.PropertiesPanelContainer.Table.Self.As
().Rows.Except(rowsList); - // rowsMustBeExpanded = rowsList.Where(rw=>rw.Element.GetAttributeValueText("AccessibleState").ToString().Contains("Collapsed")); - // expNeeded = rowsMustBeExpanded.Any(); - //} } } } Index: System tests/AutomatedSystemTests/AutomatedSystemTests/Script27.rxtst =================================================================== diff -u -r1bbff0dc763992cedf6a20ed6858e9ef0723d764 -rf918e1e5bdb3ef8312edc1320ffab841a3b759f4 --- System tests/AutomatedSystemTests/AutomatedSystemTests/Script27.rxtst (.../Script27.rxtst) (revision 1bbff0dc763992cedf6a20ed6858e9ef0723d764) +++ System tests/AutomatedSystemTests/AutomatedSystemTests/Script27.rxtst (.../Script27.rxtst) (revision f918e1e5bdb3ef8312edc1320ffab841a3b759f4) @@ -358,6 +358,15 @@ + + + + + + + + + + + + + @@ -1528,6 +1549,9 @@ name="ExpandRowItemsInPropertiesPanel" ref="de336d4d-6903-4666-935e-4619a8a89c40" type="UserCode"> + + + + + + @@ -5024,6 +5052,15 @@ + + + + + + + + + + + + @@ -5708,6 +5758,10 @@ name="SelectGenericItemInProjectExplorer"> + + @@ -5744,6 +5798,10 @@ name="SelectGenericItemInProjectExplorer"> + + @@ -5896,6 +5954,10 @@ name="HideRanorexProgressDialog"> + + @@ -6567,7 +6629,7 @@ @@ -6644,7 +6706,7 @@ 950 @@ -6683,7 +6745,7 @@ 950 @@ -6722,7 +6784,7 @@ 800 @@ -6736,12 +6798,12 @@ 500
- 3 + 4
- 3 + 4
- 3 + 4
- 3 + 4
- 500 + 1000 - 3 + 4