Global Elements

2 posts, 0 answers
  1. Steve
    Steve avatar
    1886 posts
    Member since:
    Dec 2008

    Posted 27 Apr 2016 Link to this post

    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?


  2. Konstantin Petkov
    Konstantin Petkov avatar
    1911 posts

    Posted 29 Apr 2016 Link to this post

    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.

    Konstantin Petkov
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top