зеркало из https://github.com/mozilla/pjs.git
21d83ae88b
Added some new tests. |
||
---|---|---|
.. | ||
api | ||
log | ||
BWBaseTest.java | ||
BWJavaTemplate.README | ||
BWJavaTemplate.html | ||
BWJavaTemplate.java | ||
BWProperties | ||
BWStaticDoc.java | ||
BWTestClass.lst | ||
BWTestClass.lst.ORIG | ||
BWTestClass.lst.bak | ||
BWTestClass.lst.html.ORIG | ||
BWTestClass.lst.xml.ORIG | ||
BWTestThread.java | ||
DOMAccessorImpl.java | ||
DOMFactory.java | ||
Execution.java | ||
Makefile | ||
Makefile.solaris | ||
Makefile.win | ||
ParamCombination.java | ||
README | ||
README.html | ||
ReflectionTest.java | ||
TestDOMAccessorApplet.java | ||
TestDOMAccessorApplet1.java | ||
TestDocLoadListener.java | ||
TestLoader.java | ||
autorun.pl | ||
autorun.sh | ||
mozilla.bat | ||
mozilla.csh | ||
test.html | ||
test.xml | ||
testa.html | ||
testb.html |
README
This document describes steps required to run the Test Suite for JavaDOM API. For Solaris =========== 1) open mozilla.csh 2) make changes to variables BLACKWOOD_HOME MOZILLA_FIVE_HOME JAVA_HOME TEST_PATH 3) source mozilla.csh this will set up the environment 4) Edit BWProperties file and change the locations for variables BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is located) BW_LOGDIR (Absolute Directory Path where log files need to be created) BW_THREADMODE (Execute tests in single thread [S] or multi-thread [M] mode. Takes values S/M.) 5) Copy test.html and test.xml files to your Web-Servers DOCUMENT_ROOT (By default it is assumed that they can be accessed as http://<server name>/text.html). or http://<server name>/~<username>/text.html). 6) Invoke autorun.sh from command prompt. sh autorun.sh 7) 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. --------------------------------------------------------------------------- To Invoke a specific test case sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName NOTE: All Test Cases are reocorded in file BWTestClass.lst.ORIG Assumption: I assume that u have copied the files test.xml and test.html to your DOCUMENT_ROOT of your WebServer. The URL it tries to load is http://<servername>/test.html. If it is set in users public_html then open file autorun.sh and change DOCROOT accordingly. ============================================================================= For WIN32 =========== Assumes you have installed PERL 1) open mozilla.bat 2) make changes to variables BLACKWOOD_HOME - the path to the parent directory of this one MOZILLA_FIVE_HOME JAVA_HOME TEST_PATH TEST_URL- as explained below 3) execute mozilla.bat from command prompt this will set up the environment for this command prompt 4) Edit BWProperties file and change the locations for variables BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is located) BW_LOGDIR (Absolute Directory Path where log files need to be created) BW_THREADMODE (Execute tests in single thread [S] or multi-thread [M] mode. Takes values S/M.) 5) Copy files test.html and test.xml into some document directory of HTTP server. TEST_URL environment variable should contain the URL of this directory. For example, if you placed the files in the root directory of HTTP server "myserver", then value of TEST_URL should be "http://myserver". 6) Invoke autorun.pl from command prompt. perl autorun.pl 7) 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. --------------------------------------------------------------------------- To Invoke a specific test case perl autorun.pl -t org.mozilla.dom.test.AttrImpl_getName NOTE: All Test Cases are recorded in file BWTestClass.lst.ORIG ---------------------------------------------------------------------------