Consolidated Base URL and URL Navigate for Bamboo management tool

4 posts, 0 answers
  1. Jim
    Jim avatar
    5 posts
    Member since:
    Mar 2013

    Posted 28 May 2013 Link to this post

    I have a list of tests which were created in a particular environment and going forward we will want to run in many different environments (Different URLs). It isn't that big of a deal when I run them on my local machine; the URLs are driven from a csv file, and I manually update the base URL in the settings of the test lists. 

    However, we are putting these tests in BAMBOO (the release management tool), and are looking to allow the testers the ability to enter in the URL in a centralized location and run the tests on a remote machine. Is this possible to update the base url and data-driven url in a single step? 

    Is there also a way to use local data source to drive the navigate steps? It appears the only option is for an external binding file (csv, xml, etc.)

    Thanks - Jim

  2. Mario
    Admin
    Mario avatar
    8 posts

    Posted 30 May 2013 Link to this post

    Hello Jim,

    Thank you for your questions.

    "Is this possible to update the base url and data-driven url in a single step?"
    It is possible to change the base url through code inside of a script step by using the line:

    Manager.Settings.Current.Web.BaseUrl = "http://www.example.com/";

    In addition to this you would need to follow a similar solution to the coded sample here to write into your data source and edit/add/remove data driven urls as needed.

    "Is there also a way to use local data source to drive the navigate steps? It appears the only option is for an external binding file (csv, xml, etc.)"
    There is currently an option to bind the NavigateUrl property of a navigate step using local data, I hope the attached image will help you do so. Could you also confirm the version of Test Studio you are using?

    Let me know whether my suggestions help.

    Regards,
    Mario
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
  3. Jim
    Jim avatar
    5 posts
    Member since:
    Mar 2013

    Posted 04 Jun 2013 Link to this post

    The local data-driven URL image makes sense, and that's what I was attempting before I posted to the forum. Unfortunately when I create the single column file, the script doesn't allow me to bind it. In all three areas of the Data Driven binding (UseDecoded, NavigateUrl, BaseUrl), the dropdowns are blank. I've used this feature before for data driving other aspects of scripts, just the "Navigate To" step won't allow local data.

    The version is: 2012.2.1420.0
  4. Jim
    Jim avatar
    5 posts
    Member since:
    Mar 2013

    Posted 04 Jun 2013 Link to this post

    UPDATE: I created a brand new Navigate function which allowed the use of local data. My previously existing function did not allow this binding. Issue resolved with a workaround, still not sure why this wasn't working on the other function.
Back to Top