README for DOM API Test Execution

Solaris     WinNT     Linux     Macintosh

Solaris
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 Indicates whether to execute tests in single-thread mode[S]     or multi-thread mode[M].  Takes values S/M .
BW_HTMLTEST URL where redirect.html, test.html files are located. Used if you run tests through TestLoader applet.
BW_XMTEST URL where redirectxml.html, test.xml files are located. Used if you
run tests through TestLoader applet


To Invoke a specific test case

sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName
NOTE:All Test Cases are recorded in file BWTestClass.lst.ORIG

ASSUMPTION: I assume that u have copied the files test.xml, redirectxml.html, redirect.html, test.html to your DOCUMENT_ROOT of your WebServer.
The URL it tries to load is http://[servername]/redirect.html.
If it is set in users public_html then open file autorun.sh and change DOCROOT accordingly.



Windows NT
  1. Assumes you have installed PERL and the following variables are set in your environment:
  2. open mozilla.bat
  3. make changes to variables
  4. execute mozilla.bat from command prompt this will create new console and set up the environment for this command prompt
  5. Edit BWProperties file and change the locations for variables

  6. NOTE: Since on Windows file separator is a `\`, it should be escaped by
              another '\'. So if a file is in c:\mozilla\tests then it would be written as c:\\mozilla\\tests.

  7. There are several ways to run tests:
  8. 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.