Global settings for Project URLs

6 posts, 1 answers
  1. Anshul
    Anshul avatar
    16 posts
    Member since:
    Sep 2010

    Posted 12 Jan 2011 Link to this post

    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
     
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 12 Jan 2011 Link to this post

    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
  3. Anshul
    Anshul avatar
    16 posts
    Member since:
    Sep 2010

    Posted 13 Jan 2011 Link to this post

    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
  4. Answer
    Cody
    Admin
    Cody avatar
    3360 posts

    Posted 13 Jan 2011 Link to this post

    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
  5. Ryan
    Ryan avatar
    2 posts
    Member since:
    Mar 2011

    Posted 28 Mar 2011 Link to this post

    This link appears to be broken?
  6. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 28 Mar 2011 Link to this post

    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
Back to Top