Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Application Testing Guide
Previous Page Home Next Page

Creating a test from a URL recording

The URL Recorder creates a recording of the HTTP protocol from URLs entered and links navigated in a Web browser application used to generate performance tests.

The URL Recorder supports the following Web browser applications:

  • Internet Explorer
  • Mozilla
  • Firefox

By default, the system Web browser application is used by the URL Recorder. The default Web browser application and port used by the URL Recorder is configurable in the URL Recorder preferences:

  1. Select Window > Preferences... from the file menu.
  2. Select the Test > TPTP URL > URL Recorder preference page.
  3. Configure the Application to Record by selecting one of the supported Web browser applications and the location of its executable.
  4. Configure the Proxy Recorder by defining the port of the URL Recorder. The Web browser application is automatically configured with the URL Recorder as a proxy on this port for the duration of the recording.
  5. Click OK to save the preferences.

Note: The Agent Controller or Integrated Agent Controller (local host only) is required to be configured and running.

Performance tests are created from new URL recordings with the New Test From Recording wizard:

  1. Open the Test Perspective, right-click in the Test Navigator, select New > Test Element... > Test From Recording, and click Next. Alternatively, click the New Test From Recording button in the toolbar of the Recorder Control View.
  2. Select Create the test from a new recording.
  3. Select the URL Recorder to record the new URL recording.
  4. Optionally, click Advanced >> and confirm the TPTP URL Test Generator is selected to create the new performance test from the new URL recording.
  5. Click Next.
  6. If there are no projects in the workspace, define the project name, project location, and name of the new performance test. Otherwise, select the parent folder and define the name of the new performance test.
  7. Click Finish to open the Recorder Control View to control and monitor the URL Recorder and launch the Web browser application configured with the URL Recorder to create the new URL recording.
  8. Clear the Web browser application's cache:
    • Internet Explorer:
      1. Select Tools > Internet Options from the file menu.
      2. Click Delete Files
      3. Select Delete all offline content and click OK.
      4. Click OK to close the Internet Options dialog.
    • Mozilla:
      1. Select Edit > Preferences from the file menu.
      2. Expand Advanced and click Cache.
      3. Click Clear Cache.
      4. Click OK to close the Preferences dialog.
    • Firefox:
      1. Select Tools > Clear Private Data... from the file menu.
      2. Select Cache.
      3. Click Clear Private Data Now to close the Clear Private Data dialog.
  9. Enter the URLs in the address box and navigate links in the the Web browser application to record the HTTP protocol. Note, secure URLs (for example, https://) may cause the Web browser application to display a security alert that should be accepted to proceed with the URL recording.
  10. Once the URL recording is complete, close the Web browser application or click the Stop Recording button in the toolbar of the Recorder Control View to stop the recording and create the new performance test from the new URL recording.
  11. The Confirm Open Editor dialog may appear (see the Window > Preferences... > Test > Open Editor preference), confirming if the new performance test is to be opened in the URL Test editor.

In addition, performance tests can be created from existing URL recordings with the New Test From Recording wizard:

  1. Open the Test Perspective, right-click in the Test Navigator, select New > Test Element... > Test From Recording, and click Next. Alternatively, click the New Test From Recording button in the toolbar of the Recorder Control View.
  2. Select Create the test from an existing URL recording.
  3. Select the URL Recorder to record the new URL recording.
  4. Optionally, click Advanced >> and confirm the TPTP URL Test Generator is selected to create the new performance test from the new URL recording.
  5. Click Next.
  6. Select the existing URL recording and click Next.
  7. Select the parent folder and define the name of the new performance test.
  8. Click Finish to create the new performance test from the existing URL recording.
  9. The Confirm Open Editor dialog may appear (see the Window > Preferences... > Test > Open Editor preference), confirming if the new performance test is to be opened in the URL Test editor.

Alternatively, performance tests can be created from existing URL recording files with the New Test From Recording wizard:

  1. Right-click the existing URL recording file (*.recmodel) in the Project Explorer and select Generate Test or Alt+Shift+T, G.
  2. Select TPTP URL Test Generator to create the new performance test from the existing URL recording file and click Next.
  3. Select the parent folder and define the name of the new performance test.
  4. Click Finish to create the new performance test from the existing URL recording file.
  5. The Confirm Open Editor dialog may appear (see the Window > Preferences... > Test > Open Editor preference), confirming if the new performance test is to be opened in the URL Test editor.

Related concepts
Recorder Control View

Related tasks
Creating a test from a recording


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire