[Solved] Why does baseurls gets hard coded during initial recording of a frame in Telerik Test Studio?

0 Answers 7 Views
Elements Frames Test Execution Test Recording
Mackie
Top achievements
Rank 1
Iron
Mackie asked on 09 Apr 2026, 04:26 PM

We have two web application one for development which is http://Server1/MyApp  and one for regression test execution which is http://Server2/MyApp. We have web tests that we initially recorded on http://Server1/MyApp and then we run regression testing against our application on http://Server2/MyApp but fails because it couldn't find a frame because the baseurl of that from was  http://Server1/MyApp/frame1.aspx

Ivaylo
Telerik team
commented on 10 Apr 2026, 08:05 AM

Hello Mackie,

This is expected when running the same recorded tests against multiple environments. Your test was recorded on http://Server1/MyApp, so the iFrame is mapped by default with its full URL (for example, http://Server1/MyApp/frame1.aspx). When you run on http://Server2/MyApp, the frame cannot be found because the host does not match.

To make tests work across environments, use BaseURL:

  1. Set the project BaseURL to http://Server1 and record. Navigation steps will be stored as relative URLs (for example, “/MyApp”).
  2. Before execution, switch the project BaseURL to http://Server2 and run the same test.

If you run via a Test List, note that Test Lists have their own BaseURL property. If set, it overrides the project BaseURL.

For the iFrame specifically: In Elements Explorer, select the Frame node and set UsesBaseUrlHost = True. Then Test Studio will automatically swap only the host part of the frame URL when you change BaseURL. More on how to use baseURL with frames you can find in this KB article.

No answers yet. Maybe you can help?

Tags
Elements Frames Test Execution Test Recording
Asked by
Mackie
Top achievements
Rank 1
Iron
Share this question
or