How To Minimize Automation effort on controls which are ...
Posted: Thu Feb 15, 2018 12:42 pm
How To Minimize Automation effort on controls which are tested against WPF attribute "visible" or "enabled" with parameter "true" or "false"
There is a bunch of controls, e.g. 16 pieces. They are located on one page of the UI, the order is like a Matrix.
They have AutomationId glued, also the Window has an AutomationId so that the controls can be found easiyl.
The WPFP controls are configured with Attributes to enable/disable or show/hide them with extra steering buttons.
First approach in a TestSuite could be (maximum of entries in Ranorex repo for XPathes)
Click event to XPath
Action to change the behavior of the control so that it will be visible (with the extra steering button)
Click event to XPath
Revert behavior with steering button so that control will be hidden
Click event to XPath
Second approach could be using "UserMethods"
Third method could be use DataDriven Testing with csv files
Thanks in advance for any hint.
BR
Klaus
There is a bunch of controls, e.g. 16 pieces. They are located on one page of the UI, the order is like a Matrix.
They have AutomationId glued, also the Window has an AutomationId so that the controls can be found easiyl.
The WPFP controls are configured with Attributes to enable/disable or show/hide them with extra steering buttons.
First approach in a TestSuite could be (maximum of entries in Ranorex repo for XPathes)
Click event to XPath
Code: Select all
.//form[@automationid='Test']/button[@automationid='CommandButton2' and @visible='False']
Click event to XPath
Code: Select all
.//form[@automationid='Test']/button[@automationid='CommandButton2' and @visible='True']
Click event to XPath
Code: Select all
.//form[@automationid='Test']/button[@automationid='CommandButton2' and @visible='False']
Second approach could be using "UserMethods"
Third method could be use DataDriven Testing with csv files
Thanks in advance for any hint.
BR
Klaus