blob: 258ef71a731a7471061d9732cb94efee7fa6e8a5 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2011" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<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))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Testing on an HTTP Preview server" />
<meta name="abstract" content="Use the HTTP Preview server when you want to quickly test resources in a static Web project. The HTTP Preview server is a Hypertext Transfer Protocol (HTTP) embedded test server that is integrated with the workbench. It is intended for preliminary testing and saves you time to download, install, and set up an HTTP server. However, as your static Web project progresses through its development cycle you are encourage to test and run on an external HTTP server. You can use the HTTP Preview server as a convenient way to check for errors before you do a final test on an external HTTP server." />
<meta name="description" content="Use the HTTP Preview server when you want to quickly test resources in a static Web project. The HTTP Preview server is a Hypertext Transfer Protocol (HTTP) embedded test server that is integrated with the workbench. It is intended for preliminary testing and saves you time to download, install, and set up an HTTP server. However, as your static Web project progresses through its development cycle you are encourage to test and run on an external HTTP server. You can use the HTTP Preview server as a convenient way to check for errors before you do a final test on an external HTTP server." />
<meta content="HTTP preview server, testing static Web projects, runtime environments, HTTP Preview, servers, HTTP Preview server" name="DC.subject" />
<meta content="HTTP preview server, testing static Web projects, runtime environments, HTTP Preview, servers, HTTP Preview server" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/tj2ee.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/twcrtins.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="thttppreview_wst" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Testing on an HTTP Preview server</title>
</head>
<body id="thttppreview_wst"><a name="thttppreview_wst"><!-- --></a>
<h1 class="topictitle1">Testing on an HTTP Preview server</h1>
<div><p>Use the HTTP Preview server when you want to quickly
test resources in a static Web project. The HTTP Preview server is a Hypertext
Transfer Protocol (HTTP) embedded test server that is integrated with the
workbench. It is intended for preliminary testing and saves you time to download,
install, and set up an HTTP server. However, as your static Web project progresses
through its development cycle you are encourage to test and run on an external
HTTP server. You can use the HTTP Preview server as a convenient way to check
for errors before you do a final test on an external HTTP server.</p>
<div class="section" id="thttppreview_wst__context"><a name="thttppreview_wst__context"><!-- --></a>To create and test on an HTTP Preview server for previewing
your resources in a static Web project, complete the following steps:</div>
<a name="thttppreview_wst__steps"><!-- --></a><ol id="thttppreview_wst__steps">
<li class="stepexpand"><span>In the Servers view, right-click and select <span class="uicontrol">New</span> &gt; <span class="uicontrol">Server</span>.
The Define a New Server wizard opens.</span></li>
<li class="stepexpand"><span>Under the <span class="uicontrol">Select the server type</span> list, expand
the <strong>Basic</strong> folder and select <strong>HTTP Preview</strong>. Click <span class="uicontrol">Next</span>.</span>
</li>
<li class="stepexpand"><span>The <span class="uicontrol">Add and Remove</span> page opens. Under the
Available projects list, select the static Web project and click the <span class="uicontrol">Add</span> button.
Click <span class="uicontrol">Finish</span>. </span> The HTTP Preview server is
created in the Servers view.</li>
<li class="stepexpand"><span>In the Project Explorer view, navigate to your static Web project
and right-click your resource you want to test.</span></li>
<li class="stepexpand"><span>Select <span class="menucascade"><span class="uicontrol">Run As</span> &gt; <span class="uicontrol">Run
on Server</span></span>. The Run on Server wizard opens.</span>
</li>
<li class="stepexpand"><span>Verify the <span class="uicontrol">Choose an existing server</span> radio
button is enabled.</span></li>
<li class="stepexpand"><span>Under the <span class="uicontrol">Select the server that you want to use</span> list,
select the recently created HTTP Preview server. Click <span class="uicontrol">Next</span>.</span>
</li>
<li class="stepexpand"><span>The <span class="uicontrol">Add and Remove</span> page opens. Verify the
static Web project you are testing is listed under the <span class="uicontrol">Configured
projects</span>. Click <span class="uicontrol">Finish</span>.</span></li>
</ol>
<div class="section" id="thttppreview_wst__result"><a name="thttppreview_wst__result"><!-- --></a>The internal Web browser opens and displays the static
Web content.</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/tj2ee.html" title="You can use the workbench to test one or more projects on a server.">Testing applications on a server</a></div>
</div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/twcrtins.html" title="You can create a server to identify the runtime environment that you want to use for testing your project resources. The term creating a server defines creating a pointer from the workbench to an existing installation of an application server.">Creating a server</a></div>
</div>
</div>
</body>
</html>