Differences

This shows you the differences between two versions of the page.

Link to this comparison view

state_ui [2016/09/22 02:36] (current)
Line 1: Line 1:
 +State UI displays a snapshot of AUT. Below shows a portion of the window with context menu displayed on a UI control.
  
 +{{http://​testoptimal.com/​img/​WinUI_ElemCtxMenu.jpg}}
 +
 +The UI control is highlighted when you mouse over. You can display the properties of the UI control by right mouse context menu "​New/​Edit Element"​ which should bring up the following UI Control Property dialog window:
 +
 +{{http://​testoptimal.com/​img/​WinUI_Elem.jpg}}
 +
 +At the dialog window above, you can define an UI element which can then be referenced in mScript function as the locator like '​map=myBtn'​.
 +
 +The locator is defaulted to //id=xyz// if the control has AutomationId assigned. Otherwise, it is defaulted to an xpath using the bounds of the control like ////​Control[@Bounds=120,​20,​20,​10] //.
 +
 +You can also manually enter the locator using any of the control'​s properties. If you need to see the control'​s hierarchy, you can bring up the list of controls in XML with right mouse context menu of the window (right mouse click on white space of the window).
 +
 +{{http://​testoptimal.com/​img/​WinUI_CtxMenu.jpg}}
 +
 +For each control property, there is a text field to the right which is used to specify a specific value you are expecting which gets validated each time this screen/​state is visited.
 +
 +If you are building the model for an existing AUT, you can create transitions on the control that has been defined as an element in the above steps. You can do with the right mouse context menu item "New Transition"​ for the control. A new transition will be created in the model.(An experimental feature)
Print/export
QR Code
QR Code state_ui (generated for current page)