Unable to play back Web UI tests when certain web applications are redirected to a different URL

When you record a Web UI test and enter the URL of the web application that you want to test, the application might be redirected to a different URL. When you play back this recorded Web UI test, the playback fails.

Cause

When you record a Web UI test by starting a web application that redirects to a different URL, the following changes occur:

  • The Web UI recorder captures the redirected URL instead of the URL of the web application.
  • The URL field in the Application Details pane of Launch application is updated with the redirected URL while recording.

When you play back the recorded Web UI test, the URL of the Launch application node differs from the URL that you use to start the web application during the recording.

Resolution

In the recorded Web UI test, you must change the redirected URL to the URL of the web application in the Application Details pane of Launch application.