TestSmith Object Maps

TestSmith Object Maps are textual representations of component hierarchies or html document object models. The map entries are formatted as TestSmith command parameters so they can be easily used to create TestSmith commands, if required.



GUI Map
A GUI map is a representation of a main frame window. The map is created as a text file in the /Maps sub-directory of the main TestSmith directory. The name of the map file is derived from the title of the mapped window (from the main title bar) plus the .tsgui extension.

Example: GUI Map of Internet Explorer

HTML/DOM Map
An HTML DOM map is a representation of the document object model (DOM) of a browser page or page-frame. The map is created as a text file in the /Maps sub-directory of the main TestSmith directory. The name of the map file will be the title of the mapped page (from the <TITLE> tag, or from the URL if no title is specified) plus the .tsdom extension.
Care should be taken to rename .tsdom files when mapping multiple frames on the same page, as the file name will be the same in all cases and the file will be overwritten by each subsequent map created.

HTML/DOM mapping is only available during a recording session.

Example: HTML/DOM Map of Google Home Page



Maps are generated by selecting the "Make GUI Map" or "Make HTML/DOM Map" items of the "Tools" menu. Maps cannot be created during a TestSmith playback session.

Warning: If you are likely to view a map immediately on creation you should ensure the default editor used for viewing text files is open on the desktop prior to beginning the recording session. If the editor is not open the action of opening it, and all subsequent actions within it will be recorded to your script.

Advanced Tip
To get a partial GUI map of a window, i.e. the map of an inner window object, position the mouse pointer over the window of interest, and while the focus is still on TestSmith press the Ctrl+Alt+G key combination. No selection prompt will be shown in this case but a map of the object beneath the mouse pointer will be created immediately as a .tsgui file.