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

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

6 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 01 Nov 2011, 06:19 AM
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.

6 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 01 Nov 2011, 01:49 PM
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
0
Rakesh
Top achievements
Rank 1
answered on 02 Nov 2011, 04:10 AM
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?
0
Plamen
Telerik team
answered on 02 Nov 2011, 10:04 AM
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
0
Rakesh
Top achievements
Rank 1
answered on 04 Nov 2011, 04:19 AM
thank you 
0
Nate
Top achievements
Rank 1
answered on 08 Nov 2011, 11:28 PM
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.
0
Plamen
Telerik team
answered on 09 Nov 2011, 01:25 PM
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
Tags
General Discussions
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Rakesh
Top achievements
Rank 1
Nate
Top achievements
Rank 1
Share this question
or