Change of single test case reflects every test case or not?

7 posts, 0 answers
  1. Rakesh
    Rakesh avatar
    9 posts
    Member since:
    Oct 2011

    Posted 01 Nov 2011 Link to this post

    Does we have any option in telerik test studio by changing single test cases (i have to change the same field in every test cases) will reflects every test case or not ?


    I am generating scripts with the staging URL, where as Client wants to test it with Live URL..For doing this, We need to change the URL in every test case. Instead of doing this can we have a option to change the URL of all the cases by modifying at one place.
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 01 Nov 2011 Link to this post

    Hello Rakesh,

    It sounds like you are after our BaseUrl feature. The BaseUrl feature is intended to be used for the same application running on different servers. You only need to alter your "Navigate to" step for the BaseUrl to work.

    For example: double click the "Navigate to" step and enter only a forward slash(/) in the NavigateUrl field(see screenshot). Now when you need to execute the test against different Url, just alter the BaseUrl field in "Project Settings->Recording Options" to the desired Url. Note that your application must be structured the same on each server, with only the server name differing.

    Let me know if you require additional assistance on this.

    Greetings,
    Plamen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Rakesh
    Rakesh avatar
    9 posts
    Member since:
    Oct 2011

    Posted 01 Nov 2011 Link to this post

    Hello Plamen,

    The information you have sent is useful for me but my actual issue was i want every test case url should be change automatically by changing one test url,  is it possible?
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 02 Nov 2011 Link to this post

    Hello Rakesh,

    Unfortunately it is not possible to change all URLs in the test automatically by changing one test URL. As I already explained the closest thing we have at the moment is our BaseUrl feature, which is useful in your case where you want to execute the same tests with the Live URL, but first you need to change or re-record your "Navigate to" steps manually.

    Best wishes,
    Plamen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Rakesh
    Rakesh avatar
    9 posts
    Member since:
    Oct 2011

    Posted 03 Nov 2011 Link to this post

    thank you 
  6. Nate
    Nate avatar
    32 posts
    Member since:
    Feb 2011

    Posted 08 Nov 2011 Link to this post

    This is possible. You can achieve this via two methods. The first is using the BaseURL path that was previously mentioned (you will need to configure this in the Project and Test list options. The second method is to create a test, that is comprised of a single step with the Navigate command. Add this as a "Test as Step" at the beginning of each test. Then when you change the URL in that test and all of your other tests will be changed.
  7. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 09 Nov 2011 Link to this post

    Hello Nate,

    Thank you for pointing out the Test as Step approach. It works great in some cases, but sometimes it's not appropriate to use it.

    1. If you have more complicated test with more then one "Navigate to" step.
    For example:
    step1 - Navigate to:  http://www.google.com 
    step2 - do smth...
    step3 - Navigate to:  http://www.google.com/news
    In this case you'll need to add another Test and another Test as Step. 

    2. If a recorded test step interacts with an element inside an iFrame, you will not be able to use the UsesBaseUrlHost property to take the host portion of the project's BaseURL and you'll need to change the Frame Url manually. 

    In cases like these our BaseUrl feature is the best option.     

    Best wishes,
    Plamen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top