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

Consolidated Base URL and URL Navigate for Bamboo management tool

3 Answers 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 28 May 2013, 06:25 PM
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

3 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 30 May 2013, 11:26 PM
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!
0
Jim
Top achievements
Rank 1
answered on 04 Jun 2013, 01:20 PM
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
0
Jim
Top achievements
Rank 1
answered on 04 Jun 2013, 07:23 PM
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.
Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Mario
Telerik team
Jim
Top achievements
Rank 1
Share this question
or