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

Equivalent URLs for main pages added to project

3 Answers 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nataly
Top achievements
Rank 1
Nataly asked on 17 Aug 2010, 10:41 AM
Hello,

We have several independent servers with different URLs on my Project. When I add some element with help of the test recorder this element is placed within some root page in 'Elements' tree. Each root page has direct link as 'Base url'. Is there a way to add alternative links?
I guess that it's Equivalent URLs, am I right? If so that I can't add an url in Equivalent URLs->String Collection Editing. Error appears on clicking "Add" button (please, see attachment).

Could you help me please to add alternative urls to my pages?

Thanks

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 17 Aug 2010, 01:05 PM
Hello Nataly,

I've seen such situations but let me first confirm I understand your case too.

Do you have a test/local site as well as a public one running the same application? In other words do you need to run an exact same set of tests against two sites having different BaseUrl only? If that is the case I'd suggest including that set of tests in a test list, clone that list and finally change the BaseUrl in the cloned list settings. In that case, you will either need to have the BaseUrl set during recording or manually change the NavigateTo steps of the tests to have relative path for the NavigateUrl property. That way on execution the engine will build the final URLs combining the BaseUrl setting with the test's NavigateUrl relative path.

Please let us know whether that helps or if you need further assistance.

Regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nataly
Top achievements
Rank 1
answered on 18 Aug 2010, 09:12 AM
Hello Konstantin,

My problem not in test lists or tests. I have problem with 'Elements' tree.
Please see attached picture.
When I wrote a test against my site1 (192.168.1.1) and added new page (Page1) to project elements it has base url (and other urls on form) related to 192.168.1.1. Then I switch to site2 (192.168.1.2) and add some element which is located on already added Page1, but as the result new page Page2 with different URLs is added to my project. Actually Page1 and Page2 is the same page on my site, but these pages were added from different site's URLs.

When I run my test against site1 only steps referenced to Page1 are passed, the rest steps (referenced to Page2) are failed, although find logic is the same.

The question is how to add alternative URL to page's properties?

Thank you
0
Konstantin Petkov
Telerik team
answered on 18 Aug 2010, 10:34 AM
Hi Nataly,

Thanks for clarifying your scenario.

I just tested a similar scenario and my test passed. I'm running a test with steps over two equal pages having different BaseUrls only. So in general this scenario should be automatically supported.

One may hit a test failure if the element find expression refers the exact Url like a hyperlink href attribute for example. Is that your case and can you please share more details about the exact failure? Can you either post the test log or send it via attachment through a private support ticket?

Regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Nataly
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Nataly
Top achievements
Rank 1
Share this question
or