This is a migrated thread and some comments may be shown as answers.

Global Elements

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 27 Apr 2016, 06:19 PM

Is it possible to have "Global" elements?  So like a root page (Layout\Masterpage\etc) contains all the common site elements.  These elements all have unique IDs...and I do need to access them from different pages.

Seems like I have to keep adding the same element to different Elements->All Pages->Page

I see the + Arrow where I can add what looks like a global group called Predefined Elements, but the Edit element is greyed out, and the Find Logic in the properties doesn't seem to be changable.

What am I missing here?

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 29 Apr 2016, 08:32 AM
Hi Steve,

The predefined elements are part of the Element Mapping feature. The idea is if you deal with an application still in development you can just predefine your elements to build the test cases earlier. Then once application development is completed you just connect each predefined element with the actual one in the application similar to recording experience and your tests are ready to execute. You can read more about that approach here and here.

As to elements being global, they actually are since you can access each element from each test case, including from code, all within the scope of the project. The Elements Explorer organizes the elements per pages and frames though so it identifies the page/frame specifics to group the elements accordingly. You may want to look at the pages merge logic described here to understand the merging specifics if you want to control that.

Regards,
Konstantin Petkov
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Konstantin Petkov
Telerik team
Share this question
or