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

validation against baseURL

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 04 Feb 2013, 10:12 AM

Hi there
     is there any way to validate something against the base URL? I know that I could use a data driven value for the URL and then validate against that but it would be much easier if I could call the value of the baseURL in code and then use that for the validation.


Thanks

Carl

1 Answer, 1 is accepted

Sort by
0
Accepted
Stoich
Telerik team
answered on 04 Feb 2013, 11:22 AM
Hi Carl,
I'm not sure I correctly understand what you're trying to achieve.

Regardless you can access the BaseURL value in code like so:
Manager.Settings.Web.BaseUrl

So if you wanted a step in that writes the BaseURL value to the Log it would look like this:
Log.WriteLine(this.ExecutionContext.Settings.Web.BaseUrl);

Let me know if you require additional assistance with this.

All the best,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Carl
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or