accordingly to reflect the new file. git-svn-id: svn://10.0.0.236/trunk@65039 18797224-902f-48f8-a5cc-f745e15eee43
342 lines
9.7 KiB
HTML
342 lines
9.7 KiB
HTML
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<meta name="GENERATOR" content="Mozilla/4.51 [en] (X11; U; SunOS 5.7 sun4u) [Netscape]">
|
|
</head>
|
|
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
|
|
|
|
|
|
<center>
|
|
<h3>
|
|
<b>README for DOM API Test Execution</b></h3>
|
|
<a href="#solaris">Solaris</a>
|
|
|
|
|
|
<a href="#winnt">WinNT</a>
|
|
|
|
|
|
<a href="#linux">Linux</a>
|
|
|
|
|
|
<a href="#mac">Macintosh</a>
|
|
</center>
|
|
|
|
|
|
<a name=solaris>
|
|
<center>
|
|
<hr NOSHADE WIDTH="100%"></center>
|
|
<i><u><font color="#990000"><font size=+3>Solaris</font></font></u></i>
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>open <font color="#FF6666">mozilla.csh</font></font></b></li>
|
|
|
|
<li>
|
|
<b><font size=+1>make changes to variables</font></b></li>
|
|
</ul>
|
|
|
|
<ul>
|
|
<center><table BORDER COLS=2 WIDTH="80%" BGCOLOR="#99FFCC" NOSAVE >
|
|
<tr NOSAVE>
|
|
<td WIDTH="30%" NOSAVE><b><font color="#FF6666"><font size=+1>TEST_PATH</font></font></b></td>
|
|
|
|
<td><b>Absolute Directory Path where file BWTestClass.lst is located.</b></td>
|
|
</tr>
|
|
|
|
<tr NOSAVE>
|
|
<td NOSAVE><b><font color="#FF6666"><font size=+1>MOZILLA_FIVE_HOME</font></font></b></td>
|
|
|
|
<td><b>Absolute Path where mozilla-bin is located.</b></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><b><font color="#FF6666"><font size=+1>JAVA_HOME</font></font></b></td>
|
|
|
|
<td><b>Absolute Path to JDK dir.</b></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><b><font color="#FF6666"><font size=+1>USE_APPLET_FOR_REGISTRATION</font></font></b></td>
|
|
|
|
<td><b>Set this variable if you wish to use applet for running tests (now
|
|
available under Win32 only). Otherwise hacked DOMAccessor class is
|
|
used.</b></td>
|
|
</tr>
|
|
</table></center>
|
|
|
|
<li>
|
|
<b><font size=+1>source mozilla.csh this will set up the environment</font></b></li>
|
|
|
|
<li>
|
|
<b><font size=+1>Edit BWProperties file and change the locations for variables</font></b></li>
|
|
</ul>
|
|
|
|
<center><table BORDER COLS=2 WIDTH="80%" BGCOLOR="#99FFCC" NOSAVE >
|
|
<tr NOSAVE>
|
|
<td WIDTH="30%" NOSAVE><b><font color="#FF6666"><font size=+1>BW_TESTDIR</font></font></b></td>
|
|
|
|
<td><b>Absolute Directory Path where file BWTestClass.lst is located.</b></td>
|
|
</tr>
|
|
|
|
<tr NOSAVE>
|
|
<td NOSAVE><b><font color="#FF6666"><font size=+1>BW_LOGDIR</font></font></b></td>
|
|
|
|
<td><b>Absolute Directory Path where log files need to be created.</b></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><b><font color="#FF6666"><font size=+1>BW_THREADMODE</font></font></b></td>
|
|
|
|
<td><b>Indicates whether to execute tests in single-thread mode[S]
|
|
or multi-thread mode[M]. Takes values S/M .</b></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><b><font color="#FF6666"><font size=+1>BW_HTMLTEST</font></font></b></td>
|
|
|
|
<td><b>URL where redirect.html, test.html files are located. Used if you run tests through
|
|
TestLoader applet.</b></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><b><font color="#FF6666"><font size=+1>BW_XMTEST</font></font></b></td>
|
|
|
|
<td><b>URL where redirectxml.html, test.xml files are located. Used if you</b>
|
|
<br><b>run tests through TestLoader applet</b></td>
|
|
</tr>
|
|
</table></center>
|
|
|
|
<ul> </ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>Copy <font color="#FF6666">redirect.html, test.html</font> and <font color="#FF6666">redirectxml.html, test.xml</font>
|
|
files to your web-servers DOCUMENT_ROOT ( By default it is assumed that
|
|
they can be accessed as <font color="#3366FF">http://[server name]/text.html</font>
|
|
or <font color="#3366FF">http://[servername]/~[username]/text.html</font>).</font></b></li>
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>Invoke autorun.sh from command prompt.</font></b></li>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>sh autorun.sh</font></b></li>
|
|
</ul>
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>The results are recorded in HTML file <font color="#FF6666">BWTest.html</font>
|
|
and in log file <font color="#FF6666">BWTest.log</font> Individual test
|
|
Log files are also found in 'log' directory.</font></b></li>
|
|
</ul>
|
|
|
|
<p><br><b><font size=+1>To Invoke a specific test case</font></b>
|
|
<blockquote><b><font size=+1>sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName</font></b></blockquote>
|
|
<b><font size=+1><u><font color="#3366FF">NOTE:</font></u>All Test Cases
|
|
are recorded in file BWTestClass.lst.ORIG</font></b>
|
|
<p><font size=+1><u><font color="#3366FF">ASSUMPTION</font></u><b>: I assume
|
|
that u have copied the files test.xml, redirectxml.html, redirect.html, test.html to your DOCUMENT_ROOT
|
|
of your WebServer.</b></font>
|
|
<br><b><font size=+1>The URL it tries to load is http://[servername]/redirect.html.</font></b>
|
|
<br><b><font size=+1>If it is set in users public_html then open file autorun.sh
|
|
and change DOCROOT accordingly.</font></b>
|
|
<p>
|
|
</a>
|
|
|
|
|
|
<hr SIZE=4 NOSHADE WIDTH="100%">
|
|
<a name="winnt">
|
|
<br><i><u><font color="#990000"><font size=+3>Windows NT</font></font></u></i>
|
|
<ol>
|
|
<li>
|
|
<b>Assumes you have installed PERL and the following variables are set
|
|
in your environment:</b></li>
|
|
|
|
<ul>
|
|
<li>
|
|
<font color="#FF6666">MOZILLA_HOME</font> - top directory in mozilla's
|
|
tree</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">JAVA_HOME</font> - path to JDK</li>
|
|
</ul>
|
|
|
|
<li>
|
|
open mozilla.bat</li>
|
|
|
|
<li>
|
|
make changes to variables</li>
|
|
|
|
<ul>
|
|
<li>
|
|
<font color="#FF6666">MOZILLA_BIN</font> - Mozilla's executable file name
|
|
(e.g. mozilla.exe or viewer.exe)</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">TEST_PATH</font> - path to the current directory
|
|
(where mozilla.bat is)</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">TEST_URL</font> - URL where redirect.html and test.html
|
|
are located (complte URL looks like that: $TEST_URL/redirect.html). Is used
|
|
if you run tests through hacked DOMAccessor only.</li>
|
|
</ul>
|
|
|
|
<li>
|
|
execute <b>mozilla.bat</b> from command prompt this will create new console
|
|
and set up the environment for this command prompt</li>
|
|
|
|
<li>
|
|
Edit BWProperties file and change the locations for variables</li>
|
|
|
|
<ul>
|
|
<li>
|
|
<font color="#FF6666">BW_TESTDIR</font> (Absolute Directory Path where
|
|
file BWTestClass.lst is located)</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">BW_LOGDIR</font> (Absolute Directory Path where log
|
|
files need to be created)</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">BW_THREADMODE</font> (Execute tests in single thread
|
|
[S] or multi-thread [M] mode. Takes values S/M.)</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">BW_HTMLTEST</font> (URL where redirect.html file are
|
|
located. Used if you run tests through TestLoader applet)</li>
|
|
|
|
<li>
|
|
<font color="#FF6666">BW_XMLTEST</font> (URL where test.xml file are located.
|
|
Used if you run tests through TestLoader applet)</li>
|
|
</ul>
|
|
|
|
<br>
|
|
|
|
<b>NOTE:</b> Since on Windows file separator is a `\`, it should be escaped by
|
|
<br>
|
|
another '\'. So if a file is in c:\mozilla\tests then it would be written as c:\\mozilla\\tests.
|
|
<br>
|
|
<br>
|
|
|
|
<li>
|
|
There are several ways to run tests:</li>
|
|
|
|
<ul>
|
|
<li>
|
|
Invoke autorun.pl from command prompt.</li>
|
|
|
|
<br><b>perl autorun.pl</b>
|
|
<br>For each test new Mozilla is executed.
|
|
<li>
|
|
For quick testing say</li>
|
|
|
|
<br><b>mozilla.exe file:/TestLoaderHTML.html</b>
|
|
<br>(mozilla.exe file:/TestLoaderXML.html)
|
|
<br>if you use applet for registration
|
|
<li>
|
|
or say</li>
|
|
|
|
<br><b>mozilla.exe file:/redirect.html</b>
|
|
<br>if you use hacked DOMAcceessor.</ul>
|
|
|
|
<li>
|
|
The results are recorded in HTML file BWTest.html and in log file BWTest.log
|
|
Individual test Log files are also found in 'log' directory.</li>
|
|
</ol>
|
|
<!--
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>open <font color="#FF6666">mozilla.bat</font></font></b></li>
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>make changes to variables</font></b></li>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font color="#FF6666"><font size=+1>BLACKWOOD_HOME</font></font></b></li>
|
|
|
|
<li>
|
|
<b><font color="#FF6666"><font size=+1>MOZILLA_FIVE_HOME</font></font></b></li>
|
|
|
|
<li>
|
|
<b><font color="#FF6666"><font size=+1>JAVA_HOME</font></font></b></li>
|
|
|
|
<li>
|
|
<b><font color="#FF6666"><font size=+1>TEST_PATH</font></font></b></li>
|
|
|
|
<li>
|
|
<b><font color="#FF6666"><font size=+1>TEST_URL</font></font></b></li>
|
|
</ul>
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>execute mozilla.bat from command prompt.</font></b></li>
|
|
|
|
<br><b><font size=+1> this will set up the environment for this command
|
|
prompt.</font></b></ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>Edit BWProperties file and change the locations for variables</font></b></li>
|
|
</ul>
|
|
|
|
<center><table BORDER COLS=2 WIDTH="80%" BGCOLOR="#99FFCC" NOSAVE >
|
|
<tr NOSAVE>
|
|
<td WIDTH="30%" NOSAVE><b><font color="#FF6666"><font size=+1>BW_TESTDIR</font></font></b></td>
|
|
|
|
<td><b>Absolute Directory Path where file BWTestClass.lst is located.</b></td>
|
|
</tr>
|
|
|
|
<tr NOSAVE>
|
|
<td NOSAVE><b><font color="#FF6666"><font size=+1>BW_LOGDIR</font></font></b></td>
|
|
|
|
<td><b>Absolute D.irectory Path where log files need to be created.</b></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><b><font color="#FF6666"><font size=+1>BW_THREADMODE</font></font></b></td>
|
|
|
|
<td><b>Indicates whether to execute tests in single-thread mode[S]
|
|
or multi-thread mode[M]. Takes values S/M .</b></td>
|
|
</tr>
|
|
</table></center>
|
|
|
|
<ul> </ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>Copy files <font color="#CC6600">redirect.html, test.html</font>and <font color="#CC6600">redirectxml.html, test.xml</font>
|
|
into some document directory of HTTP server. TEST_URL environment variable
|
|
should contain the URL of this directory.</font></b></li>
|
|
|
|
<br><b><font size=+1> For example, if you placed the files in the
|
|
root directory of HTTP server "<font color="#3333FF">myserver</font>",
|
|
then value of TEST_URL should be "<font color="#3333FF">http://myserver</font>".</font></b></ul>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>Invoke autorun.pl from command prompt.</font></b></li>
|
|
|
|
<ul>
|
|
<li>
|
|
<b><font size=+1>perl autorun.pl</font></b></li>
|
|
</ul>
|
|
</ul>
|
|
|
|
<ul><b><font size=+1>The results are recorded in HTML file <font color="#FF6666">BWTest.html</font>
|
|
and in log file <font color="#FF6666">BWTest.log</font> Individual test
|
|
Log files are also found in 'log' directory.</font></b></ul>
|
|
-->
|
|
</a>
|
|
<hr SIZE=4 NOSHADE WIDTH="100%">
|
|
<br>
|
|
</body>
|
|
</html>
|