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

Global settings for Project URLs

5 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anshul
Top achievements
Rank 1
Anshul asked on 12 Jan 2011, 08:57 AM
Hi Telerik Team,

I want to make my recorded URL dynamic,
e.g. ActiveBrowser.NavigateTo("http://"+Data["Server"]+"/"+Data["VirtualDirectory"]+"/"+"Login.aspx")

where ever my URLs are there in whole project scripts i can bind the excel datasource and make it dynamic like above example but the problem is with one script one datasource(excel sheet) can be bind that is a limitation of tool. In my project i have to bind other dtasources also with this datasource file for one script.

I want to set some global settings for all URLs in my project without any datasource binding.

Suggest me any solution to overcome this problem.
Thanks in Advance.

Regards,
Anshul
 

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 12 Jan 2011, 06:41 PM
Hello Anshul,
   instead of DataBinding  NavigateTo steps you should use BaseURL. Here's a KB article that describes how to do that:
http://www.telerik.com/automated-testing-tools/support/kb/running-a-test-against-multiple-urls-using-baseurl.aspx
    
Check out the article and let me know if this solution doesn't suit your needs for some reason.

Also, don't hesitate to contact me if you have any other questions!

All the best,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Anshul
Top achievements
Rank 1
answered on 13 Jan 2011, 06:58 AM
Hi,

Its a good feature to work only with 'NavigateURL' property.
I tried with Base URL as Global settings it works 'Awesome' and solved so many problems...but created main problem that is it doesn't work with 'PopupURL' property.
I have found the alternative also.....that is making the 'PopupURL' property step as 'ContinueOnFailure' and it works but now my script is executing all the steps successfully but result is showing 'fail' because of 'ContinueOnFailure'.

Suggest me any solution which works with 'PopupUrl' and 'NavigateUrl' properties along with 'BaseUrl' property

Thanks,
Anshul
0
Accepted
Cody
Telerik team
answered on 14 Jan 2011, 12:15 AM
Hello Anshul,

You are very correct about the URL for Connect-to-Popup test steps. I have logged feature request 104948 to track this. i'm going to try to convince development this is actually a bug so we can address it sooner. We'll see if I am successful in that attempt.

In the meantime you can work around this by removing the server portion from the PopupUrl property as shown in the attached screenshot. Leave just the Page part of the URL in there. Also make sure that IsUrlParial is set to True, which is the default.

Greetings,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Ryan
Top achievements
Rank 1
answered on 28 Mar 2011, 12:12 PM
This link appears to be broken?
0
Anthony
Telerik team
answered on 28 Mar 2011, 06:29 PM
Hello Ryan,

If you are referring to the KB article referenced below about BaseURLs, here is the updated link:

http://www.telerik.com/automated-testing-tools/support/kb/test-automation/running-a-test-against-multiple-urls-using-baseurl.aspx

Kind regards,
Anthony
the Telerik team
Tags
General Discussions
Asked by
Anshul
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Anshul
Top achievements
Rank 1
Cody
Telerik team
Ryan
Top achievements
Rank 1
Anthony
Telerik team
Share this question
or