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

RESTful interfaces for pages/elements

3 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 25 Feb 2014, 05:08 PM
Hi guys

I'm working with some restul pages, the problem I'm running into is how to tell test studio that it should ignore ids. For example if I have a users page and /users/1 is returns a detailed users page with the contents of user id 1, but if I I'm working with a dozen users then I'm going to get pages in my test studio project for /users/1 through 12.

Is there a way to get test studio handle this so I have use the same elements for each /users/<id> page? 

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 28 Feb 2014, 05:05 PM
Hello Jon,

You can achieve this by modifying the recording options. You can set Test Studio to use only the base url for example.

Please check out this article (elements compare mode section).

Hope that helps.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jon
Top achievements
Rank 1
answered on 03 Mar 2014, 05:35 PM
HI Boyan, Thanks for the reply.

I think there is some confusion. I running into duplicate pages and elements in test studio. For example, when testing a MVC style application I experience the following URLs:
/users/1
/users/2
/users/3
/other/1
/other/2
/other/3

The problem is that I still need to be able to access all of these, but the numbers on the end are recognized as new pages, but they're still the users/other page. The number represents the ID. Is there a way to ignore the ID's portion?
0
Accepted
Boyan Boev
Telerik team
answered on 06 Mar 2014, 02:14 PM
Hi Jon,

Did you change the recording option from project settings to BaseUrl for example (see the attached screen shot)?

Jing video demonstrating the issue may also help us to better understand what is happening.

Let me know if this helped.

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