|
Removed
Link Here
|
| 1 |
<!DOCTYPE html |
| 2 |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html lang="en-us" xml:lang="en-us"> |
| 4 |
<!-- |
| 5 |
/********************************************************************** |
| 6 |
* Copyright (c) 2008 IBM Corporation. |
| 7 |
* All rights reserved. This content |
| 8 |
* is made available under the terms of the Eclipse Public License v1.0 |
| 9 |
* which accompanies this distribution, and is available at |
| 10 |
* http://www.eclipse.org/legal/epl-v10.html |
| 11 |
* $Id: trecordtest.html,v 1.6 2008/07/17 19:07:28 paules Exp $ |
| 12 |
* |
| 13 |
* Contributors: |
| 14 |
* IBM - Initial contribution |
| 15 |
**********************************************************************/ |
| 16 |
--> |
| 17 |
<head> |
| 18 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 19 |
<meta name="security" content="public" /> |
| 20 |
<meta name="Robots" content="index,follow" /> |
| 21 |
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> |
| 22 |
<meta name="DC.Type" content="task" /> |
| 23 |
<meta name="DC.Title" content="Recording a test" /> |
| 24 |
<meta name="abstract" content="The test creation wizard starts when you record a test. This wizard combines these actions: recording a session with a Web application, generating a test from the recording, and opening the test in the test editor. You can record a test from Internet Explorer (the default on Windows) or from another browser." /> |
| 25 |
<meta name="description" content="The test creation wizard starts when you record a test. This wizard combines these actions: recording a session with a Web application, generating a test from the recording, and opening the test in the test editor. You can record a test from Internet Explorer (the default on Windows) or from another browser." /> |
| 26 |
<meta name="DC.Format" content="XHTML" /> |
| 27 |
<meta name="DC.Identifier" content="recordingatest" /> |
| 28 |
<meta name="DC.Language" content="en-us" /> |
| 29 |
<link rel="stylesheet" type="text/css" href="../css/ibmdita.css" /> |
| 30 |
<link rel="stylesheet" type="text/css" href="../css/book.css" /> |
| 31 |
<title>Recording a test</title> |
| 32 |
</head> |
| 33 |
<body><a name="recordingatest"><!-- --></a> |
| 34 |
<h1 class="topictitle1">Recording a test</h1> |
| 35 |
<div><p>The test creation wizard starts when you record a test. This wizard |
| 36 |
combines these actions: recording a session with a Web application, generating |
| 37 |
a test from the recording, and opening the test in the test editor. You can |
| 38 |
record a test from Internet Explorer (the default on Windows) or from another |
| 39 |
browser.</p> |
| 40 |
<div class="p">Optionally launch the <a href="PLUGINS_ROOT/org.eclipse.tptp.platform.agentcontroller.doc.user/concepts/ac/c_ac_ovr.html">Agent Controller</a> on the local host or default to the <a href="PLUGINS_ROOT/org.eclipse.tptp.platform.agentcontroller.doc.user/concepts/ac/ciacintro.html">Integrated Agent Controller</a> |
| 41 |
<p>If you will record with Internet Explorer, you do not need |
| 42 |
to set your browser preferences. However, this procedure assumes that the |
| 43 |
defaults are set, so you might want to click <span class="menucascade"><span class="uicontrol">Window</span> > <span class="uicontrol">Preferences</span></span>, expand Test, select <span class="uicontrol">HTTP |
| 44 |
Recording</span>, and click <span class="uicontrol">Restore Defaults</span>. </p> |
| 45 |
<div class="p">If |
| 46 |
you will record with Mozilla or Firefox, set your browser preferences as follows: <ol><li>Click <span class="menucascade"><span class="uicontrol">Window</span> > <span class="uicontrol">Preferences</span></span>, and expand <span class="uicontrol">Test</span>.</li> |
| 47 |
<li> Select <span class="uicontrol">URL Recorder</span>, and set <span class="uicontrol">Application |
| 48 |
to Record</span> to <span class="uicontrol">Mozilla</span> or <span class="uicontrol">Firefox</span>.</li> |
| 49 |
<li>Enter the path to, or browse to, the browser executable. </li> |
| 50 |
</ol> |
| 51 |
</div> |
| 52 |
<div class="p">If you will record with another browser:<ol><li>Click <span class="menucascade"><span class="uicontrol">Window</span> > <span class="uicontrol">Preferences</span></span>, and expand <span class="uicontrol">Test</span>.</li> |
| 53 |
<li> Select <span class="uicontrol">URL Recorder</span>, and set <span class="uicontrol">Application |
| 54 |
to Record</span> to <span class="uicontrol">None</span>.</li> |
| 55 |
<li>You will have to manually configure and load your browser; consult the |
| 56 |
browser's proxy configuration documentation on how to do this.</li> |
| 57 |
</ol> |
| 58 |
</div> |
| 59 |
</div> |
| 60 |
<div class="section">To record a test: </div> |
| 61 |
<ol><li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">File</span> > <span class="uicontrol">New</span> > <span class="uicontrol">Other</span></span>.</span></li> |
| 62 |
<li class="stepexpand"><span>In the New window, expand <span class="uicontrol">Test</span>, click <span class="uicontrol">Test |
| 63 |
From Recording</span>, and then click <span class="uicontrol">Next</span>. </span></li> |
| 64 |
<li class="stepexpand"><span>In the Create New Test from Recording window, select <span class="uicontrol">Create |
| 65 |
Test from New Recording</span>, and then click <span class="uicontrol">Next</span>. </span></li> |
| 66 |
<li class="stepexpand"><span> In the list of projects, click the one in which to store this |
| 67 |
test and related files. The <img src="../images/javaicon.gif" alt="Java icon" /> icon identifies projects that are suitable for containing tests. |
| 68 |
Tests stored in other projects will not run. </span> <div class="note"><span class="notetitle">Note:</span> If you have |
| 69 |
not yet created a project, the <span class="uicontrol">Project Name</span> field displays |
| 70 |
a default name of <tt class="sysout">testproj</tt>, which you can change.</div> |
| 71 |
</li> |
| 72 |
<li class="stepexpand"><span>In the <span class="uicontrol">Test file name</span> field, type a |
| 73 |
name for the test, and click <span class="uicontrol">Finish</span>. The standard Navigator |
| 74 |
and the Java Package Explorer use this name, with extensions. You will also |
| 75 |
see this name in the Test Navigator. A progress window opens while your browser |
| 76 |
starts. </span></li> |
| 77 |
<li class="stepexpand"><span>To make sure your recording accurately captures HTTP traffic, clear |
| 78 |
your browser's cache.</span> <div class="p">To clear the Internet Explorer cache: <ol type="a"><li>Click <span class="menucascade"><span class="uicontrol">Tools</span> > <span class="uicontrol">Internet Options</span></span>.</li> |
| 79 |
<li>In the Internet Options window, in the Temporary Internet files area, |
| 80 |
click <span class="uicontrol">Delete Files</span>.</li> |
| 81 |
<li>In the Delete Files window, select <span class="uicontrol">Delete all offline content</span> and |
| 82 |
click <span class="uicontrol">OK</span>. </li> |
| 83 |
<li>Click <span class="uicontrol">OK</span> to close the Internet Options window. </li> |
| 84 |
</ol> |
| 85 |
</div> |
| 86 |
<div class="p">To clear the Mozilla cache:<ol type="a"><li>Click <span class="menucascade"><span class="uicontrol">Edit</span> > <span class="uicontrol">Preferences</span></span>.</li> |
| 87 |
<li>In the Preferences window, expand <span class="uicontrol">Advanced</span> and |
| 88 |
click <span class="uicontrol">Cache</span>.</li> |
| 89 |
<li>In the Set Cache Options area, click <span class="uicontrol">Clear Cache</span>.</li> |
| 90 |
<li>Click <span class="uicontrol">OK</span> to close the Preferences window.</li> |
| 91 |
</ol> |
| 92 |
</div> |
| 93 |
<div class="p">To clear the Firefox cache<ol type="a"><li>Click <span class="menucascade"><span class="uicontrol">Tools</span> > <span class="uicontrol">Options</span> > <span class="uicontrol">Privacy</span> > <span class="uicontrol">Clear Cache</span></span>.</li> |
| 94 |
<li>Click <span class="uicontrol">OK</span> to close the Options window.</li> |
| 95 |
</ol> |
| 96 |
</div> |
| 97 |
</li> |
| 98 |
<li class="stepexpand"><span>In the address box for your browser, type the address of the Web-based |
| 99 |
application to test and activate the link. </span> <div class="note"><span class="notetitle">Note:</span> If you enter |
| 100 |
the address of a secure Web site (one that starts with <kbd class="userinput">https:</kbd>), |
| 101 |
your browser might display a security alert. Depending on the security certificate |
| 102 |
for the site, you might be required to accept a security risk to proceed with |
| 103 |
the recording.</div> |
| 104 |
</li> |
| 105 |
<li class="stepexpand"><span> Perform the user tasks that you want to test. </span></li> |
| 106 |
<li class="stepexpand"><span>After you finish performing the tasks, stop recording. To stop |
| 107 |
recording, close your browser or click on the <span class="uicontrol">Stop Recording</span> |
| 108 |
button on the right side of the Recorder Control |
| 109 |
view bar. </span> A progress window opens while the test is generated. </li> |
| 110 |
<li>The <b>Confirm Open Editor</b> dialog may appear (see the <b>Window</b> > <b>Preferences...</b> > <b>Test</b> > <b>Open Editor</b> preference), confirming if the new performance test suite is to be opened in the URL Test editor.</li> |
| 111 |
|
| 112 |
</ol> |
| 113 |
<div class="section">By default, when you have finished recording an interaction with a browser-based application, |
| 114 |
the Recorder Control view displays the message <tt class="sysout">Test |
| 115 |
generation completed</tt> and the URL Recorder automatically starts the URL Test Generator, which produces a test from the recording. |
| 116 |
(You can modify this behavior - specify that a different test generator be started, or that none be started - |
| 117 |
by editing the URL Recorder preferences.)</div> |
| 118 |
</div> |
| 119 |
|
| 120 |
</body> |
| 121 |
</html> |