validation against baseURL

2 posts, 1 answers
  1. Carl
    Carl avatar
    11 posts
    Member since:
    Apr 2012

    Posted 04 Feb 2013 Link to this post

    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.



  2. Answer
    Stoich avatar
    1 posts

    Posted 04 Feb 2013 Link to this post

    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:

    So if you wanted a step in that writes the BaseURL value to the Log it would look like this:

    Let me know if you require additional assistance with this.

    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top