Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 3.16 KB

element-mapping.md

File metadata and controls

72 lines (50 loc) · 3.16 KB
title page_title description position
Elements Mapping (IntelliMap)
Elements Mapping (IntelliMap)
Elements Mappting in Test Studio. I have predefined elements in a mockup application - how to map these to the actual application in Test Studio
6

Elements Mapping (IntelliMap)

Once your application is ready for testing you can map your predefined elements to the actual elements. In order to proceed select the predefined element you would like to map and select Element Mapping button:

![Element Mapping TS][6]

**Standalone version**
![Element Mapping TS][15]

**VS plugin**

The mapping dialog window appears allowing you to select between a Web or WPF test.

  • For Web: type New URL or choose from Recent URLs and click Start Mapping button.
  • For WPF: select new WPF app using the browse button or choose from Recent Apps and click Start Mapping button.
![Web][7]

**Web**
![WPF][8]

**WPF**

The example shown here is for a Web test, but for a WPF test the actions are exactly the same.

Select Recording browser and click Record.

Choose Recording Browser

Test Studio will navigate to the URL, attach the recorder and enable Highlighting so you can directly highlight the desired element and click on Select Element as shown below:

Select Element

You select the predefined element you would like to map (1) from the Elements section, confirm the find logic (2) and click on Map Element button (3).

Map Element

Please note in the example above we are working with only one predefined element in the Elements section. However you can have many predefined elements listed there. You need to be careful when mapping with an actual element which predefined element is selected. In order to avoid confusion it will be best to use descriptive friendly names to your predefined elements.

In case you would like to build more robust find logic before mapping the predefined element you can add an Expression Item.

Add Expression Item

Another filter is added so you can tweak the element's find logic.

find logic

You can undo all the changes and revert to the default find expression using the Restore Default Expression button.

Restore Default Expression