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

How to handle common elements on multiple pages (Like a header)

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sebastien
Top achievements
Rank 1
Sebastien asked on 10 Jan 2017, 07:42 PM

Hi, 

I've played a little with Telerik Test suite to familiarize myself with the tool.  I've used many other softwares with an object repository before, but here I encounter some problems and I would like to know how to solve them..

 

As an example; I have a webSite that have a common header for all it's pages.  When I use the recording function, I notice that, for each links in the header, it creates a different element in a different page.  Problem that can be solved by changing Setting->Recording->CompareMode to 'Base URL'.  But now, all of the elements that I create are created in the same 'folder' of the element explorer (The base page).

 

Is there a way to have a 'hybrid' solution where some elements are independant of the current page (Like the header/footer) and some elements are dependant of the current page (Like the content of the page) in the object explorer?

 

Worst case scenario, if, because of my needs, I'm forced to always use "Setting->Recording->Compare Mode = Base URL", Is there a way to manually group different elements to add more visibility in my project? (A kind of 'folder', if I can use the term).

 

---

 

Another question that might have the same answer than the first one: 

Now, with more and more webSite that use URL Routing, it is possible to link two or more pages with different URL has being the same page?  

 

Example::

On my webSite, the following URLs are linked to the same page, but are in different languages

- www.MyImaginaryWebSite.com/ClientList
- www.MyImaginaryWebSite.com/ListeDeClients

I would like to avoid creating all the element of that page in double in my element explorer.

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 13 Jan 2017, 02:15 PM
Hi Sebastien,

1. Yes this is expected since when you set the compare mode to BaseURL all the elements are compared only by their BaseURL. You can achieve a hybrid mode by recording the common elements while the compare mode is set to BaseUrl then change it to another one and record all the other steps.

In that case the common elements will be stored under BaseURL page node and the other will be under another page node.

2. No, unfortunately you cannot group elements manually.

3. If the URLs are 

www.MyImaginaryWebSite.com/ClientList
www.MyImaginaryWebSite.com/ListeDeClients

when you set the compare mode to BaseURL all the elements will go under one page: www.MyImaginaryWebSite.com/

Hope that helps.

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Sebastien
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or