Test application domain support
HCL DevOps Test UI (Test UI) is an object-oriented automated testing tool that tests Java™, HTML, .NET, Windows®, SAP, and Siebel applications.
Test UI recognizes two different kinds of nesting of objects, a parent-child nesting and an owner-owned nesting. A parent-child nesting occurs when one object is contained within another, such as a button on a form. An owner-owned nesting occurs when the owned object has its own top-level window, such as a dialog that is owned by a top-level window.
Test UI supports some instances of nesting of objects from different domains. That means you can test an object of one domain that is nested inside an object of another domain, and Test UI will accurately understand the objects and their domains. If a nesting of one domain within another is not supported, Test UI will model the objects consistently but may not accurately understand the domain for the nested objects. For example, Test UI does not support the nesting of a .Net control within a Windows® application. In this case, Test UI is likely to see the .Net controls as if they were Windows® controls (because .Net controls are often implemented using the underlying mechanisms of Window controls). Another example is a Windows-based dialog that appears on top of a Java™ application. In this case, the Java™ domain does not understand the windows dialogs, or even acknowledge that they exist. And since by default Test UI does not dynamically enable a Java™ application as if it were a Windows® application, there is no Windows® domain in that process. So in this instance, the dialogs are not testable objects without scripting.
The following list describes the cases of nested domains that are supported.
HTML - ActiveX as child -- This is an HTML page that contains ActiveX controls.
HTML - Windows® Owned -- Some common dialogs displayed by Internet Explorer will appear as Windows® domain objects. Note that these dialogs have no reasonable Mozilla equivalent and will therefore produce a script that is not cross-browser.
VB.Net - ActiveX as child -- This is a VB.Net Winforms application that utilizes legacy ActiveX controls.
VB.Net - HTML as child -- This is a VB.Net WinForms application that utilizes an embedded Internet Explorer browser control.
VB.Net - HTML as owned -- This is VB.Net WinForms application that utilizes an embedded Internet Explorer browser control that in turn displays a dialog composed of HTML (shown by calling ShowModalDialog in JavaScript™).
VB.Net - Windows® as owned -- This a VB.Net WinForms application that displays some form of non-WinForm dialog. For example, when a VB.Net application displays a common dialog (File Open, Print, etc.) or messagebox.
Java™ - HTML as child -- This a Java™ SWT application that utilizes an embedded Internet Explorer browser control.
Java™ - HTML as owned -- This a Java™ SWT application that utilizes an embedded Internet Explorer browser control that in turn displays a dialog composed of HTML (shown by calling ShowModalDialog in JavaScript™).
Windows® - HTML as child -- This is a generic Windows® application (possibly VB 6.0 or MFC) that utilizes an embedded Internet Explorer browser control.
Windows® - HTML as owned -- This is a generic windows application (possibly VB 6.0 or MFC) that utilizes an embedded Internet Explorer browser control that in turn displays a dialog composed of HTML (shown by calling ShowModalDialog in JavaScript™).
Nested domains in the object map
You can see that objects are of different test domains by looking at the object map. In the object map, each object is listed by its object type and domain type. For example, the following object:
Java™: Button: close-order: javax.swing.JButton
is a Java™ button that is a javax.swing.JButton object type. The "Java™:" prefix shows that the object is in the Java™ test domain. The test domain of every object is always the first thing shown on each object listed in the map, as shown in the example above. If a child object has a different domain than the parent object, you will see two different prefixes in their entries in the object map.