Skip to main content
Email Password   helpLost your password?

Click to enlarge

Introduction

Web Replay is an automated software testing tool for Web applications. It helps in detecting bugs and regressions in Web applications by replaying scenarios to test the application.

Using WebReplay, you can automatically navigate to a Web page, fill in form fields, click on the submit (OK) button, and then continue to another Web page.

To use Web Replay, build an XML Scenario File (see below), type the name of the file in the edit box and click on the Replay button.

Background (optional)

Web Replay is based on Microsoft's WebBrowser control (Microsoft� ActiveX� control). It embeds the control into a very simple dialog-based application which loads an XML scenario file and programmatically drives the WebBrowser control (via its COM Interface IWebBrowser2) to execute the scenario.

Using the code

Web Replay provides the following features:

Sample XML Scenario

An XML scenario file looks like this:

<?xml version="1.0" encoding="Windows-1252"?>
<web_replay>
  <scenario>
    <!-- Search something in codeproject -->
    <!-- Scenarios are divided into steps (one step per page download) -->
    <step>
      <!-- Every step can contain one or more actions -->
      <!-- Action can be of type "navigate" = 
             Web Replay will navigate to the given URL -->
      <action type="navigate" url="http://www.codeproject.com" />
    </step>
    <step>
      <!-- Action can be of type "control" = 
             Web Replay will interact with an HTML element -->
      <action type="control" 
             name="target" event="set_value" value="WebReplay" />
      <!-- This field is unnamed; but it has a specific value attribute -->
      <action type="control" name="" value="Go" event="click" />
    </step>
  </scenario>
</web_replay>

To build a scenario file, you need to basically know the names (or ids) of HTML elements within your Web Application. Alternatively, you can use an empty name and use the HTML element's value (for unnamed items).

Points of Interest

How do you test code? Well, just write a test program! Web Replay helps you with this by providing a simple way of testing you Web apps. But it's still a brand new program; the TODO list is long...

Web Replay TODO List

History

V1.0 - $Date: 2005-06-16 11:50:08 +0200 (Thu, 16 Jun 2005) $

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
Generalnice Pin
Donsw
8:46 22 May '09  
GeneralCheck out this WebReplay... Pin
JackNynguen
14:01 10 Apr '08  
Generalnavigate - error Pin
grandmasta1
1:14 16 Nov '07  
GeneralInCisif.net - Web Testing With C# or VB.NET Pin
ftorres
18:17 1 Feb '07  
Generaldialog boxes Pin
Anonymous
11:19 20 Jul '05  
GeneralRe: dialog boxes Pin
Emmanuel Kartmann
23:32 16 Aug '05  
GeneralAutomatically retreving the fields Pin
TrappedVector
4:21 24 Jun '05  
GeneralRe: Automatically retreving the fields Pin
Emmanuel Kartmann
23:47 25 Jun '05  
GeneralRe: Automatically retreving the fields Pin
Emmanuel Kartmann
23:35 16 Aug '05  
Generalselect option Pin
voltek60
14:06 23 Jun '05  
GeneralRe: select option Pin
Emmanuel Kartmann
21:06 23 Jun '05  
GeneralRe: select option Pin
voltek60
21:58 23 Jun '05  
Generalsome wrong in this application where i build it. Pin
winart
16:53 21 Jun '05  
GeneralRe: some wrong in this application where i build it. Pin
Emmanuel Kartmann
20:32 21 Jun '05  
GeneralRe: some wrong in this application where i build it. Pin
winart
0:13 22 Jun '05  
GeneralRe: some wrong in this application where i build it. Pin
Emmanuel Kartmann
21:09 22 Jun '05  
GeneralLook at SWExplorerAutomation Pin
Alex Furman
11:44 17 Jun '05  
GeneralRe: Look at SWExplorerAutomation Pin
Emmanuel Kartmann
3:53 20 Jun '05  
GeneralRe: Look at SWExplorerAutomation Pin
Alex Furman
7:07 20 Jun '05  
GeneralRe: Look at SWExplorerAutomation Pin
Emmanuel Kartmann
6:22 23 Jun '05  
GeneralIs that possible to use on Win CE? Pin
Paul_Lai
23:26 16 Jun '05  
GeneralRe: Is that possible to use on Win CE? Pin
Emmanuel Kartmann
23:51 16 Jun '05  
GeneralMissing file Pin
Todd Smith
13:13 16 Jun '05  
GeneralRe: Missing file Pin
Emmanuel Kartmann
21:41 16 Jun '05  
GeneralVery nice! Pin
netclectic
6:07 16 Jun '05  


Last Updated 16 Jun 2005 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009