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