зеркало из https://github.com/mozilla/gecko-dev.git
New perl automated script.
This commit is contained in:
Родитель
c484cf50dc
Коммит
252a214c3b
|
@ -1,4 +1,5 @@
|
||||||
BW_TESTDIR=/workspace/mozilla/java/dom/tests/src
|
BW_TESTDIR=/home/user/Blackwood/src/JavaDOM/CoreLevel1/src
|
||||||
BW_TESTFILE=BWTestClass.lst
|
BW_TESTFILE=BWTestClass.lst
|
||||||
BW_LOGDIR=/workspace/mozilla/java/dom/tests/src/log
|
BW_LOGDIR=/home/user/Blackwood/src/JavaDOM/CoreLevel1/src/log
|
||||||
BW_LOGFILE=BWTest.log
|
BW_LOGFILE=BWTest.log
|
||||||
|
BW_THREADMODE=S
|
||||||
|
|
|
@ -0,0 +1,106 @@
|
||||||
|
/**
|
||||||
|
* @author Raju Pallath
|
||||||
|
* @version 1.0
|
||||||
|
*
|
||||||
|
* This class is the Base Thread Class for all test cases.
|
||||||
|
* Using this, we can run test cases ina multi threaded fashion.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.mozilla.dom.test;
|
||||||
|
|
||||||
|
public class BWTestThread extends Thread
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param str Thread Name
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public BWTestThread (String astr)
|
||||||
|
{
|
||||||
|
|
||||||
|
super(astr);
|
||||||
|
threadName = astr;
|
||||||
|
if (threadName == null)
|
||||||
|
threadName = "defaultThread";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the Test Case ClassObject which has to be launched by this thread.
|
||||||
|
* and the Base Document Object.
|
||||||
|
* all these objects extend from BWBaseTest class.
|
||||||
|
*
|
||||||
|
* @param aobj Test Class Object reference
|
||||||
|
* (subclassed from BWBaseTest).
|
||||||
|
* @param atargetObj Base Document Object Reference
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void setTestObject(Object aobj, Object atargetObj)
|
||||||
|
{
|
||||||
|
classObj = aobj;
|
||||||
|
targetObj = atargetObj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Test Case Object Reference.
|
||||||
|
*
|
||||||
|
* @return Test Object Reference
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public Object getTestObject()
|
||||||
|
{
|
||||||
|
return classObj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Thread Name
|
||||||
|
*
|
||||||
|
* @return thread name string
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public String getThreadName()
|
||||||
|
{
|
||||||
|
return threadName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Thread Run Method
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
if (classObj == null) return;
|
||||||
|
if (targetObj == null) return;
|
||||||
|
try {
|
||||||
|
Thread.sleep (10);
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
|
execute();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public synchronized void execute()
|
||||||
|
{
|
||||||
|
if (((BWBaseTest)classObj).execute(targetObj)) {
|
||||||
|
TestLoader.txtPrint(threadName, "PASSED");
|
||||||
|
} else {
|
||||||
|
TestLoader.txtPrint(threadName, "FAILED");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Object classObj=null;
|
||||||
|
private Object targetObj=null;
|
||||||
|
private String threadName=null;
|
||||||
|
}
|
|
@ -1,4 +1,7 @@
|
||||||
|
This document describes steps required to run the Test Suite for JavaDOM API.
|
||||||
|
|
||||||
|
For Solaris
|
||||||
|
===========
|
||||||
1) open mozilla.csh
|
1) open mozilla.csh
|
||||||
|
|
||||||
2) make changes to variables
|
2) make changes to variables
|
||||||
|
@ -11,21 +14,23 @@
|
||||||
this will set up the environment
|
this will set up the environment
|
||||||
|
|
||||||
4) Edit BWProperties file and change the locations for variables
|
4) Edit BWProperties file and change the locations for variables
|
||||||
BW_TESTDIR
|
BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is
|
||||||
BW_LOGDIR
|
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) Run the Makefile
|
5) Copy test.html and test.xml files to your Web-Servers DOCUMENT_ROOT
|
||||||
|
|
||||||
6) Copy test.html and test.xml files to your Web-Servers DOCUMENT_ROOT
|
|
||||||
(By default it is assumed that they can be accessed as
|
(By default it is assumed that they can be accessed as
|
||||||
http://<server name>/text.html).
|
http://<server name>/text.html).
|
||||||
or
|
or
|
||||||
http://<server name>/~<username>/text.html).
|
http://<server name>/~<username>/text.html).
|
||||||
|
|
||||||
7) Invoke autorun.sh from command prompt.
|
6) Invoke autorun.sh from command prompt.
|
||||||
sh autorun.sh
|
sh autorun.sh
|
||||||
|
|
||||||
8) The results are recorded in HTML file BWTest.html
|
7) The results are recorded in HTML file BWTest.html
|
||||||
and in log file BWTest.log
|
and in log file BWTest.log
|
||||||
Individual test Log files are also found in 'log' directory.
|
Individual test Log files are also found in 'log' directory.
|
||||||
|
|
||||||
|
@ -35,10 +40,7 @@
|
||||||
To Invoke a specific test case
|
To Invoke a specific test case
|
||||||
sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName
|
sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName
|
||||||
|
|
||||||
NOTE: All Test Cases are recorded in file BWTestClass.lst.ORIG
|
NOTE: All Test Cases are reocorded in file BWTestClass.lst.ORIG
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
Assumption:
|
Assumption:
|
||||||
|
|
||||||
|
@ -51,3 +53,52 @@ Assumption:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
=============================================================================
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
|
|
@ -0,0 +1,201 @@
|
||||||
|
<!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></center>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</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>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<b><font size=+1>source mozilla.csh this will set up the environment</font></b></li>
|
||||||
|
</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 <font color="#FF6666">test.html</font> and <font color="#FF6666">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>
|
||||||
|
|
||||||
|
<hr NOSHADE WIDTH="100%"> <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 and 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]/test.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>
|
||||||
|
<hr SIZE=4 NOSHADE WIDTH="100%">
|
||||||
|
<br><i><u><font color="#990000"><font size=+3>Windows NT</font></font></u></i>
|
||||||
|
<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">test.html</font>and <font color="#CC6600">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>
|
||||||
|
|
||||||
|
<hr SIZE=4 NOSHADE WIDTH="100%">
|
||||||
|
<br><b><font size=+1> </font></b>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -108,7 +108,7 @@ public class TestLoader
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("could not read Line from file fname...");
|
System.out.println("could not read Line from file " + fname);
|
||||||
line=null;
|
line=null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,6 +119,13 @@ public class TestLoader
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if test have to be run in single Thread mode(S) or
|
||||||
|
// multi Thread mode (M)
|
||||||
|
//
|
||||||
|
String threadMode = propTable.getProperty("BW_THREADMODE");
|
||||||
|
if (threadMode == null)
|
||||||
|
threadMode = "S";
|
||||||
|
|
||||||
for (int i=0; i<fileVect.size(); i++)
|
for (int i=0; i<fileVect.size(); i++)
|
||||||
{
|
{
|
||||||
String s = (String)fileVect.elementAt(i);
|
String s = (String)fileVect.elementAt(i);
|
||||||
|
@ -140,17 +147,33 @@ public class TestLoader
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If single thread execution
|
||||||
|
if (threadMode.compareTo("S") == 0)
|
||||||
|
{
|
||||||
if (((BWBaseTest)classObj).execute(targetObj)) {
|
if (((BWBaseTest)classObj).execute(targetObj)) {
|
||||||
txtPrint(s, "PASSED");
|
txtPrint(s, "PASSED");
|
||||||
} else {
|
} else {
|
||||||
txtPrint(s, "FAILED");
|
txtPrint(s, "FAILED");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (returnType == 1)
|
// if any return type expected, then it is returned.
|
||||||
|
// This is just a provision kept for latter use
|
||||||
|
//
|
||||||
|
//if (returnType == 1)
|
||||||
|
//{
|
||||||
|
// return (((BWBaseTest)classObj).returnObject());
|
||||||
|
//}
|
||||||
|
} else {
|
||||||
|
BWTestThread t = new BWTestThread(s);
|
||||||
|
if (t != null)
|
||||||
{
|
{
|
||||||
return (((BWBaseTest)classObj).returnObject());
|
t.setTestObject(classObj, targetObj);
|
||||||
|
t.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
txtPrint("Parent Thread Done", "PASSED");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_appendData_String_0 extends BWBaseTest implements
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -80,6 +81,10 @@ public class CharacterDataImpl_appendData_String_0 extends BWBaseTest implements
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_appendData_String_1 extends BWBaseTest implements
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -85,6 +86,10 @@ public class CharacterDataImpl_appendData_String_1 extends BWBaseTest implements
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_0 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_deleteData_int_int_0 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_1 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_deleteData_int_int_1 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_2 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_deleteData_int_int_2 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_3 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_deleteData_int_int_3 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_4 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_deleteData_int_int_4 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_5 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_deleteData_int_int_5 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_6 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_deleteData_int_int_6 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_7 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_deleteData_int_int_7 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_deleteData_int_int_8 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_deleteData_int_int_8 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_getData extends BWBaseTest implements Execution
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -84,6 +85,10 @@ public class CharacterDataImpl_getData extends BWBaseTest implements Execution
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_insertData_int_String_0 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_insertData_int_String_0 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_insertData_int_String_1 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_insertData_int_String_1 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_insertData_int_String_2 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_insertData_int_String_2 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_insertData_int_String_3 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_insertData_int_String_3 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_insertData_int_String_4 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_insertData_int_String_4 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_insertData_int_String_5 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ public class CharacterDataImpl_insertData_int_String_5 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_0 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_0 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_1 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -93,6 +94,10 @@ public class CharacterDataImpl_replaceData_int_int_String_1 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_10 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_10 extends BWBaseTest
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_11 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -96,6 +97,10 @@ System.out.println("str is " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_12 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_12 extends BWBaseTest
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_13 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -96,6 +97,10 @@ System.out.println("str is " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_14 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_14 extends BWBaseTest
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_15 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -97,6 +98,10 @@ System.out.println("str is " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_16 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_16 extends BWBaseTest
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_17 extends BWBaseTest
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -95,6 +96,10 @@ System.out.println("str is " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_2 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_2 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_3 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_3 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_4 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_4 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_5 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -96,6 +97,10 @@ System.out.println("str is " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_6 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_6 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_7 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_7 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_8 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_8 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_replaceData_int_int_String_9 extends BWBaseTest i
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -90,6 +91,10 @@ public class CharacterDataImpl_replaceData_int_int_String_9 extends BWBaseTest i
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_setData_String_0 extends BWBaseTest implements Ex
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -80,6 +81,10 @@ public class CharacterDataImpl_setData_String_0 extends BWBaseTest implements Ex
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,13 +66,14 @@ public class CharacterDataImpl_setData_String_1 extends BWBaseTest implements Ex
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
TestLoader.logErrPrint("Could not Create TextNode " + str);
|
TestLoader.logErrPrint("Could not Create TextNode " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
} else {
|
} else {
|
||||||
String newstr="Original Text is replaced wiht this text";
|
String newstr="Original Text is replaced with this text";
|
||||||
tn.setData(newstr);
|
tn.setData(newstr);
|
||||||
String getstr = tn.getData();
|
String getstr = tn.getData();
|
||||||
if (getstr == null) {
|
if (getstr == null) {
|
||||||
|
@ -85,6 +86,10 @@ public class CharacterDataImpl_setData_String_1 extends BWBaseTest implements Ex
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_0 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -88,6 +89,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_1 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_2 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_3 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_4 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_5 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_6 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -86,6 +87,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_7 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ System.out.println("x is " + x);
|
||||||
System.out.println("getstr is " + getstr);
|
System.out.println("getstr is " + getstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class CharacterDataImpl_substringData_int_int_8 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -87,6 +88,10 @@ public class CharacterDataImpl_substringData_int_int_8 extends BWBaseTest implem
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException " );
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class DocumentImpl_createElement_String_1 extends BWBaseTest implements E
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Element e = d.createElement("HR");
|
Element e = d.createElement("HR");
|
||||||
if (e == null) {
|
if (e == null) {
|
||||||
TestLoader.logErrPrint("Document 'createElement(HR) is NULL..");
|
TestLoader.logErrPrint("Document 'createElement(HR) is NULL..");
|
||||||
|
@ -74,6 +75,10 @@ public class DocumentImpl_createElement_String_1 extends BWBaseTest implements E
|
||||||
} else {
|
} else {
|
||||||
TestLoader.logErrPrint("Document 'createElement(HR)' is not NULL..");
|
TestLoader.logErrPrint("Document 'createElement(HR)' is not NULL..");
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,12 +66,17 @@ public class DocumentImpl_createEntityReference_String_1 extends BWBaseTest impl
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "newEntity";
|
String str = "newEntity";
|
||||||
EntityReference er = d.createEntityReference(str);
|
EntityReference er = d.createEntityReference(str);
|
||||||
if (er == null) {
|
if (er == null) {
|
||||||
TestLoader.logErrPrint("Could not Create EntityReference with name " + str);
|
TestLoader.logErrPrint("Could not Create EntityReference with name " + str);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_removeAttributeNode_Attr_0 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr");
|
Attr a = d.createAttribute("dummyattr");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -85,6 +86,10 @@ public class ElementImpl_removeAttributeNode_Attr_0 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_removeAttributeNode_Attr_1 extends BWBaseTest implement
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr_1");
|
Attr a = d.createAttribute("dummyattr_1");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -91,6 +92,10 @@ public class ElementImpl_removeAttributeNode_Attr_1 extends BWBaseTest implement
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -68,6 +68,7 @@ public class ElementImpl_removeAttribute_String_0 extends BWBaseTest implements
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr_3");
|
Attr a = d.createAttribute("dummyattr_3");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -82,6 +83,10 @@ public class ElementImpl_removeAttribute_String_0 extends BWBaseTest implements
|
||||||
e.setAttributeNode(a);
|
e.setAttributeNode(a);
|
||||||
e.removeAttribute(null);
|
e.removeAttribute(null);
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_removeAttribute_String_1 extends BWBaseTest implements
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr_4");
|
Attr a = d.createAttribute("dummyattr_4");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -85,6 +86,10 @@ public class ElementImpl_removeAttribute_String_1 extends BWBaseTest implements
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_setAttributeNode_Attr_0 extends BWBaseTest implements E
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Element e = d.getDocumentElement();
|
Element e = d.getDocumentElement();
|
||||||
if (e == null) {
|
if (e == null) {
|
||||||
TestLoader.logErrPrint("Document Element is NULL..");
|
TestLoader.logErrPrint("Document Element is NULL..");
|
||||||
|
@ -79,6 +80,10 @@ public class ElementImpl_setAttributeNode_Attr_0 extends BWBaseTest implements E
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_setAttributeNode_Attr_1 extends BWBaseTest implements E
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr_5");
|
Attr a = d.createAttribute("dummyattr_5");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -91,6 +92,10 @@ public class ElementImpl_setAttributeNode_Attr_1 extends BWBaseTest implements E
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_setAttribute_String_String_0 extends BWBaseTest impleme
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Element e = d.getDocumentElement();
|
Element e = d.getDocumentElement();
|
||||||
if (e == null) {
|
if (e == null) {
|
||||||
TestLoader.logErrPrint("Document Element is NULL..");
|
TestLoader.logErrPrint("Document Element is NULL..");
|
||||||
|
@ -74,6 +75,10 @@ public class ElementImpl_setAttribute_String_String_0 extends BWBaseTest impleme
|
||||||
} else {
|
} else {
|
||||||
e.setAttribute(null, null);
|
e.setAttribute(null, null);
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_setAttribute_String_String_1 extends BWBaseTest impleme
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr_6");
|
Attr a = d.createAttribute("dummyattr_6");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -84,6 +85,10 @@ public class ElementImpl_setAttribute_String_String_1 extends BWBaseTest impleme
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_setAttribute_String_String_2 extends BWBaseTest impleme
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Element e = d.getDocumentElement();
|
Element e = d.getDocumentElement();
|
||||||
if (e == null) {
|
if (e == null) {
|
||||||
TestLoader.logErrPrint("Document Element is NULL..");
|
TestLoader.logErrPrint("Document Element is NULL..");
|
||||||
|
@ -78,9 +79,13 @@ public class ElementImpl_setAttribute_String_String_2 extends BWBaseTest impleme
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.PASSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return BWBaseTest.PASSED;
|
return BWBaseTest.PASSED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class ElementImpl_setAttribute_String_String_3 extends BWBaseTest impleme
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
Attr a = d.createAttribute("dummyattr_7");
|
Attr a = d.createAttribute("dummyattr_7");
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
TestLoader.logErrPrint("Document createAttribute FAILED... ");
|
||||||
|
@ -85,6 +86,10 @@ public class ElementImpl_setAttribute_String_String_3 extends BWBaseTest impleme
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NamedNodeMapImpl_removeNamedItem_String_0 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String attrName = "TARGET";
|
String attrName = "TARGET";
|
||||||
Attr a = d.createAttribute(attrName);
|
Attr a = d.createAttribute(attrName);
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
|
@ -98,6 +99,10 @@ public class NamedNodeMapImpl_removeNamedItem_String_0 extends BWBaseTest implem
|
||||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
TestLoader.logErrPrint("Document is NULL..");
|
TestLoader.logErrPrint("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NamedNodeMapImpl_removeNamedItem_String_1 extends BWBaseTest implem
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String attrName = "TARGET";
|
String attrName = "TARGET";
|
||||||
Attr a = d.createAttribute(attrName);
|
Attr a = d.createAttribute(attrName);
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
|
@ -98,6 +99,10 @@ public class NamedNodeMapImpl_removeNamedItem_String_1 extends BWBaseTest implem
|
||||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
TestLoader.logErrPrint("Document is NULL..");
|
TestLoader.logErrPrint("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NamedNodeMapImpl_setNamedItem_Node_0 extends BWBaseTest implements
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String attrName = "TARGET";
|
String attrName = "TARGET";
|
||||||
Attr a = d.createAttribute(attrName);
|
Attr a = d.createAttribute(attrName);
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
|
@ -98,6 +99,10 @@ public class NamedNodeMapImpl_setNamedItem_Node_0 extends BWBaseTest implements
|
||||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
TestLoader.logErrPrint("Document is NULL..");
|
TestLoader.logErrPrint("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NamedNodeMapImpl_setNamedItem_Node_1 extends BWBaseTest implements
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String attrName = "TARGET";
|
String attrName = "TARGET";
|
||||||
Attr a = d.createAttribute(attrName);
|
Attr a = d.createAttribute(attrName);
|
||||||
if (a == null) {
|
if (a == null) {
|
||||||
|
@ -107,6 +108,10 @@ public class NamedNodeMapImpl_setNamedItem_Node_1 extends BWBaseTest implements
|
||||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
TestLoader.logErrPrint("Document is NULL..");
|
TestLoader.logErrPrint("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NodeImpl_insertBefore_Node_Node_0 extends BWBaseTest implements Exe
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String elname = "SCRIPT";
|
String elname = "SCRIPT";
|
||||||
Element e = d.createElement(elname);
|
Element e = d.createElement(elname);
|
||||||
if (e == null)
|
if (e == null)
|
||||||
|
@ -94,6 +95,10 @@ public class NodeImpl_insertBefore_Node_Node_0 extends BWBaseTest implements Exe
|
||||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NodeImpl_insertBefore_Node_Node_1 extends BWBaseTest implements Exe
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String elname = "SCRIPT";
|
String elname = "SCRIPT";
|
||||||
Element e = d.createElement(elname);
|
Element e = d.createElement(elname);
|
||||||
if (e == null)
|
if (e == null)
|
||||||
|
@ -101,6 +102,10 @@ public class NodeImpl_insertBefore_Node_Node_1 extends BWBaseTest implements Exe
|
||||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NodeImpl_insertBefore_Node_Node_2 extends BWBaseTest implements Exe
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String elname = "SCRIPT";
|
String elname = "SCRIPT";
|
||||||
Element e = d.createElement(elname);
|
Element e = d.createElement(elname);
|
||||||
if (e == null)
|
if (e == null)
|
||||||
|
@ -102,6 +103,10 @@ public class NodeImpl_insertBefore_Node_Node_2 extends BWBaseTest implements Exe
|
||||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NodeImpl_insertBefore_Node_Node_3 extends BWBaseTest implements Exe
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String elname = "SCRIPT";
|
String elname = "SCRIPT";
|
||||||
Element e = d.createElement(elname);
|
Element e = d.createElement(elname);
|
||||||
if (e == null)
|
if (e == null)
|
||||||
|
@ -109,6 +110,10 @@ public class NodeImpl_insertBefore_Node_Node_3 extends BWBaseTest implements Exe
|
||||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class NodeImpl_setNodeValue_String_0 extends BWBaseTest implements Execut
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String name = "nom";
|
String name = "nom";
|
||||||
Attr a = d.createAttribute(name);
|
Attr a = d.createAttribute(name);
|
||||||
if (a == null)
|
if (a == null)
|
||||||
|
@ -82,6 +83,10 @@ public class NodeImpl_setNodeValue_String_0 extends BWBaseTest implements Execut
|
||||||
TestLoader.logErrPrint("Node Value cannot be set to null...");
|
TestLoader.logErrPrint("Node Value cannot be set to null...");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class NodeImpl_setNodeValue_String_1 extends BWBaseTest implements Execut
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String name = "nom";
|
String name = "nom";
|
||||||
Attr a = d.createAttribute(name);
|
Attr a = d.createAttribute(name);
|
||||||
if (a == null)
|
if (a == null)
|
||||||
|
@ -81,6 +82,10 @@ public class NodeImpl_setNodeValue_String_1 extends BWBaseTest implements Execut
|
||||||
TestLoader.logErrPrint("Could Not setNodeValue for node " + name + " to " + newval);
|
TestLoader.logErrPrint("Could Not setNodeValue for node " + name + " to " + newval);
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class ProcessingInstructionImpl_setData_String_0 extends BWBaseTest imple
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String target="xml";
|
String target="xml";
|
||||||
String data="version=\"1.0\"";
|
String data="version=\"1.0\"";
|
||||||
ProcessingInstruction pi = d.createProcessingInstruction(target, data);
|
ProcessingInstruction pi = d.createProcessingInstruction(target, data);
|
||||||
|
@ -80,6 +81,10 @@ public class ProcessingInstructionImpl_setData_String_0 extends BWBaseTest imple
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class ProcessingInstructionImpl_setData_String_1 extends BWBaseTest imple
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String target="xml";
|
String target="xml";
|
||||||
String data="version=\"1.0\"";
|
String data="version=\"1.0\"";
|
||||||
ProcessingInstruction pi = d.createProcessingInstruction(target, data);
|
ProcessingInstruction pi = d.createProcessingInstruction(target, data);
|
||||||
|
@ -81,6 +82,10 @@ public class ProcessingInstructionImpl_setData_String_1 extends BWBaseTest imple
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class TextImpl_splitText_int_0 extends BWBaseTest implements Execution
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -79,6 +80,10 @@ public class TextImpl_splitText_int_0 extends BWBaseTest implements Execution
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class TextImpl_splitText_int_1 extends BWBaseTest implements Execution
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -79,6 +80,10 @@ public class TextImpl_splitText_int_1 extends BWBaseTest implements Execution
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -66,6 +66,7 @@ public class TextImpl_splitText_int_2 extends BWBaseTest implements Execution
|
||||||
Document d = (Document)tobj;
|
Document d = (Document)tobj;
|
||||||
if (d != null)
|
if (d != null)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
String str = "Creating a new Text Node";
|
String str = "Creating a new Text Node";
|
||||||
Text tn = d.createTextNode(str);
|
Text tn = d.createTextNode(str);
|
||||||
if (tn == null) {
|
if (tn == null) {
|
||||||
|
@ -79,6 +80,10 @@ public class TextImpl_splitText_int_2 extends BWBaseTest implements Execution
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (DOMException e) {
|
||||||
|
TestLoader.logErrPrint("Caught DOMException");
|
||||||
|
return BWBaseTest.PASSED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Document is NULL..");
|
System.out.println("Document is NULL..");
|
||||||
return BWBaseTest.FAILED;
|
return BWBaseTest.FAILED;
|
||||||
|
|
|
@ -0,0 +1,483 @@
|
||||||
|
# !/bin/perl
|
||||||
|
#
|
||||||
|
# Created By: Raju Pallath
|
||||||
|
# Creation Date: Aug 2nd 1999
|
||||||
|
#
|
||||||
|
# Ported by: Konstantin S. Ermakov
|
||||||
|
# Ported date: Aug 24th 1999
|
||||||
|
#
|
||||||
|
# This script is used to invoke all test case for DOM API
|
||||||
|
# through apprunner and to recored their results
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
# Attach Perl Libraries
|
||||||
|
###################################################################
|
||||||
|
use Cwd;
|
||||||
|
use File::Copy;
|
||||||
|
use Win32::Process;
|
||||||
|
|
||||||
|
###################################################################
|
||||||
|
|
||||||
|
|
||||||
|
# time in seconds after which the apprunner has to be killed.
|
||||||
|
# by default the apprunner will be up for so much time regardless of
|
||||||
|
# whether over or not. User can either decrease it or increase it.
|
||||||
|
#
|
||||||
|
$DELAY_FACTOR = 25;
|
||||||
|
# time period in seconds of periodically checking: is the apprunner still alive
|
||||||
|
$DELAY_OF_CYCLE = 5;
|
||||||
|
|
||||||
|
$DOCROOT = $ENV{"TEST_URL"};
|
||||||
|
|
||||||
|
# delimiter for logfile
|
||||||
|
$delimiter="###################################################\n";
|
||||||
|
|
||||||
|
# win32 specific values
|
||||||
|
# STILL_ALIVE is a constant defined in winbase.h and indicates what
|
||||||
|
# process still alive
|
||||||
|
$STILL_ALIVE = 0x103;
|
||||||
|
|
||||||
|
$path_separator = ";";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Usage
|
||||||
|
##################################################################
|
||||||
|
sub usage() {
|
||||||
|
|
||||||
|
print "\n";
|
||||||
|
print "##################################################################\n";
|
||||||
|
print " perl autorun.pl [ -t <test case> ]\n";
|
||||||
|
print "\n";
|
||||||
|
print " where <test case> is one of the test cases prefixed with package\n";
|
||||||
|
print " name ex: org.mozilla.dom.AttrImpl_getSpecified\n";
|
||||||
|
print "\n";
|
||||||
|
print "##################################################################\n";
|
||||||
|
print "\n";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Title display
|
||||||
|
##################################################################
|
||||||
|
sub title() {
|
||||||
|
|
||||||
|
print "\n";
|
||||||
|
print "################################################\n";
|
||||||
|
print " Automated Execution of DOM API TestSuite\n";
|
||||||
|
print "################################################\n";
|
||||||
|
print "\n";
|
||||||
|
print "NOTE: You need to copy files test.html and test.xml into \n";
|
||||||
|
print " some document directory of HTTP server. TEST_URL environment \n";
|
||||||
|
print " variable should contain the URL of this directory.\n";
|
||||||
|
print "\n";
|
||||||
|
print "\n";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
#
|
||||||
|
# check which tests to run. XML/HTML or both
|
||||||
|
#
|
||||||
|
##################################################################
|
||||||
|
sub checkRun() {
|
||||||
|
$runtype = "0";
|
||||||
|
while( true ) {
|
||||||
|
print "Run 1) HTML Test suite.\n";
|
||||||
|
print " 2) XML Test suite.\n";
|
||||||
|
print " 3) BOTH HTML and XML.\n";
|
||||||
|
print "Enter choice (1-3) :\n";
|
||||||
|
$runtype = getc;
|
||||||
|
|
||||||
|
if(( $runtype ne "1" ) &&
|
||||||
|
( $runtype ne "2" ) &&
|
||||||
|
( $runtype ne "3" ) )
|
||||||
|
{
|
||||||
|
print "Invaid choice. Range is from 1-3...\n";
|
||||||
|
print "\n";
|
||||||
|
next;
|
||||||
|
} else {
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Append table entries to Output HTML File
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub appendEntries() {
|
||||||
|
print LOGHTML "<tr><td></td><td></td></tr>\n";
|
||||||
|
print LOGHTML "<tr><td></td><td></td></tr>\n";
|
||||||
|
print LOGHTML "<tr bgcolor=\"#FF6666\"><td>Test Status (XML)</td><td>Result</td></tr>\n";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Construct Output HTML file Header
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub constructHTMLHeader() {
|
||||||
|
print LOGHTML "<html><head><title>\n";
|
||||||
|
print LOGHTML "DOMAPI Core Level 1 Test Status\n";
|
||||||
|
print LOGHTML "</title></head><body bgcolor=\"white\">\n";
|
||||||
|
print LOGHTML "<center><h1>\n";
|
||||||
|
print LOGHTML "DOM API Automated TestRun Results\n";
|
||||||
|
$date = localtime;
|
||||||
|
print LOGHTML "</h1><h2>", $date;
|
||||||
|
print LOGHTML "</h2></center>\n";
|
||||||
|
print LOGHTML "<hr noshade>";
|
||||||
|
print LOGHTML "<table bgcolor=\"#99FFCC\">\n";
|
||||||
|
print LOGHTML "<tr bgcolor=\"#FF6666\">\n";
|
||||||
|
print LOGHTML "<td>Test Case</td>\n";
|
||||||
|
print LOGHTML "<td>Result</td>\n";
|
||||||
|
print LOGHTML "</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Construct Output HTML file indicating status of each run
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub constructHTMLBody() {
|
||||||
|
|
||||||
|
open( MYLOG, $LOGTXT );
|
||||||
|
@all_lines = <MYLOG>;
|
||||||
|
close( MYLOG );
|
||||||
|
|
||||||
|
my $line;
|
||||||
|
foreach $line ( sort @all_lines ) {
|
||||||
|
# avoid linebreaks
|
||||||
|
chop $line;
|
||||||
|
# assuming that all lines are kind'of 'aaa=bbb'
|
||||||
|
($class, $status) = split /=/, $line;
|
||||||
|
|
||||||
|
print LOGHTML "<tr><td>",$class,"</td><td>",$status,"</td></tr>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Construct Output HTML file Footer
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub constructHTMLFooter() {
|
||||||
|
print LOGHTML "</table></body></html>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Construct Output HTML file indicating status of each run
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub constructHTML() {
|
||||||
|
constructHTMLHeader;
|
||||||
|
constructHTMLBody;
|
||||||
|
}
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Construct LogFile Header. The Log file is always appended with entries
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub constructLogHeader() {
|
||||||
|
print LOGFILE "\n";
|
||||||
|
print LOGFILE "\n";
|
||||||
|
print LOGFILE $delimiter;
|
||||||
|
$date = localtime;
|
||||||
|
print LOGFILE "Logging Test Run on $date ...\n";
|
||||||
|
print LOGFILE $delimiter;
|
||||||
|
print LOGFILE "\n";
|
||||||
|
|
||||||
|
print "All Log Entries are maintained in LogFile $LOGFILE\n";
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
# Construct LogFile Footer.
|
||||||
|
#
|
||||||
|
#########################################################################
|
||||||
|
sub constructLogFooter() {
|
||||||
|
print "\n";
|
||||||
|
print LOGFILE $delimiter;
|
||||||
|
$date = localtime;
|
||||||
|
print LOGFILE "End of Logging Test $date ...\n";
|
||||||
|
print LOGFILE $delimiter;
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
#
|
||||||
|
# Construct Log String
|
||||||
|
#
|
||||||
|
########################################################################
|
||||||
|
sub constructLogString {
|
||||||
|
my $logstring = shift(@_);
|
||||||
|
print LOGFILE "$logstring\n";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
#
|
||||||
|
# Safely append to file : open, append, close.
|
||||||
|
#
|
||||||
|
########################################################################
|
||||||
|
sub safeAppend {
|
||||||
|
my $file = shift(@_);
|
||||||
|
my $line = shift(@_);
|
||||||
|
open (FILE, ">>$file") or die ("Cann't open $file");
|
||||||
|
print FILE $line;
|
||||||
|
close FILE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# main
|
||||||
|
##################################################################
|
||||||
|
title;
|
||||||
|
|
||||||
|
$curdir = cwd();
|
||||||
|
|
||||||
|
# Prepare file names
|
||||||
|
$LOGFILE = "$curdir/log/BWTestRun.log";
|
||||||
|
$LOGTXT = "$curdir/log/BWTest.txt";
|
||||||
|
$LOGHTML = "$curdir/log/BWTest.html";
|
||||||
|
|
||||||
|
# process command-line parameters
|
||||||
|
# and check for valid usage
|
||||||
|
|
||||||
|
$testparam = "";
|
||||||
|
|
||||||
|
if ( $#ARGV > 1 ) {
|
||||||
|
usage;
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $#ARGV > 0 ) {
|
||||||
|
if ( $ARGV[0] != "-t" ) {
|
||||||
|
usage;
|
||||||
|
die;
|
||||||
|
} else {
|
||||||
|
$testparam = $ARGV[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $testparam eq "" ) {
|
||||||
|
print "WARNING: Your are going to execute the whole test suite....\n";
|
||||||
|
checkRun;
|
||||||
|
}
|
||||||
|
|
||||||
|
$mozhome = @ENV{"MOZILLA_FIVE_HOME"};
|
||||||
|
if ( $mozhome eq "" ) {
|
||||||
|
print "MOZILLA_FIVE_HOME is not set. Please set it and rerun this script....\n";
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! -f "$mozhome/apprunner.exe" ) {
|
||||||
|
print "Could not find 'apprunner.exe' in MOZILLA_FIVE_HOME.\n";
|
||||||
|
print "Please check your setting...\n";
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Here must come a piece of code, that determinates
|
||||||
|
# apprunner instance, removes core, but there's no
|
||||||
|
# core under win32
|
||||||
|
|
||||||
|
# Backup existing .lst file
|
||||||
|
if ( -f "$curdir/BWTestClass.lst" ) {
|
||||||
|
rename "$curdir/BWTestClass.lst", "$curdir/BWTestClass.lst.bak";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if ORIG list file is present
|
||||||
|
# this file contains all test cases
|
||||||
|
if ( ! -f "$curdir/BWTestClass.lst.ORIG" ) {
|
||||||
|
print "\n";
|
||||||
|
print "File BWTestClass.lst.ORIG not found ...\n";
|
||||||
|
print "Check Mozilla Source base and bringover this file....\n";
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
$id=$$;
|
||||||
|
# Check if BWProperties file exists
|
||||||
|
#
|
||||||
|
if ( -f "$mozhome/BWProperties" ) {
|
||||||
|
$newfile="$mozhome/BWProperties.$id";
|
||||||
|
rename "$mozhome/BWProperties", $newfile;
|
||||||
|
}
|
||||||
|
copy "$curdir/BWProperties", "$mozhome/BWProperties";
|
||||||
|
|
||||||
|
# check if output text file of previous run exists.
|
||||||
|
# if so, then save it as .bak
|
||||||
|
#
|
||||||
|
if ( -f "$LOGTXT" ) {
|
||||||
|
$newfile="$LOGTXT.bak";
|
||||||
|
rename $LOGTXT, $newfile;
|
||||||
|
}
|
||||||
|
|
||||||
|
# check if output html file of previous run exists.
|
||||||
|
# if so, then save it as .bak
|
||||||
|
#
|
||||||
|
if ( -f "$LOGHTML" ) {
|
||||||
|
$newfile="$LOGHTML.bak";
|
||||||
|
rename $LOGHTML, $newfile;
|
||||||
|
}
|
||||||
|
|
||||||
|
# construct DOCFILE
|
||||||
|
$DOCFILE = "$DOCROOT/test.html";
|
||||||
|
$runcnt = 1;
|
||||||
|
$filename = "$curdir/BWTestClass.lst.ORIG";
|
||||||
|
|
||||||
|
if ($runtype == 1) {
|
||||||
|
$DOCFILE = "$DOCROOT/test.html";
|
||||||
|
$filename = "$curdir/BWTestClass.lst.html.ORIG";
|
||||||
|
$runcnt = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($runtype == 2) {
|
||||||
|
$DOCFILE = "$DOCROOT/test.xml";
|
||||||
|
$filename = "$curdir/BWTestClass.lst.xml.ORIG";
|
||||||
|
$runcnt = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($runtype == 3) {
|
||||||
|
$DOCFILE = "$DOCROOT/test.html";
|
||||||
|
$filename = "$curdir/BWTestClass.lst.html.ORIG";
|
||||||
|
$runcnt = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Prepare log streams
|
||||||
|
open( LOGFILE, ">>$LOGFILE" ) or die("Can't open LOG file...\n");
|
||||||
|
select LOGFILE; $| = 1; select STDOUT;
|
||||||
|
open( LOGHTML, ">$LOGHTML" ) or die("Can't open HTML file...\n");
|
||||||
|
|
||||||
|
print "Runtype is $runtype \n";
|
||||||
|
constructLogHeader();
|
||||||
|
|
||||||
|
$ENV{"CLASSPATH"} = "$curdir/../classes".$path_separator.$ENV{"CLASSPATH"};
|
||||||
|
|
||||||
|
$LST_OUT = "$curdir/BWTestClass.lst";
|
||||||
|
|
||||||
|
|
||||||
|
$currcnt = 0;
|
||||||
|
while (true) {
|
||||||
|
open( file, $filename ) or die("Can't open $filename...\n");
|
||||||
|
while( $line = <file> ) {
|
||||||
|
chop $line;
|
||||||
|
if ( $testparam ne "" ) {
|
||||||
|
$testcase = $testparam;
|
||||||
|
} else {
|
||||||
|
$testcase = $line;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $testcase =~ /^\s*#/ ) {
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
|
open(LST_OUT, ">$LST_OUT") or die ("Can't open LST_OUT file...\n");
|
||||||
|
print LST_OUT $testcase;
|
||||||
|
close(LST_OUT);
|
||||||
|
|
||||||
|
chdir( $mozhome );
|
||||||
|
print "========================================\n";
|
||||||
|
$logstr="Running TestCase $testcase....";
|
||||||
|
print "$logstr\n";
|
||||||
|
constructLogString "$logstr";
|
||||||
|
|
||||||
|
($nom) = ($testcase =~ /([^\.]*)$/);
|
||||||
|
$testlog = "$curdir/log/$nom.$id.log";
|
||||||
|
|
||||||
|
open( SAVEOUT, ">&STDOUT" );
|
||||||
|
open( SAVEERR, ">&STDERR" );
|
||||||
|
open( STDOUT, ">$testlog" ) or die "Can't redirect stdout";
|
||||||
|
open( STDERR, ">&STDOUT" );
|
||||||
|
Win32::Process::Create($ProcessObj,
|
||||||
|
"$mozhome/apprunner.exe",
|
||||||
|
"$mozhome/apprunner.exe $DOCFILE ",
|
||||||
|
1,
|
||||||
|
NORMAL_PRIORITY_CLASS,
|
||||||
|
"$mozhome" ) || die "cann't start apprunner";
|
||||||
|
close( STDOUT );
|
||||||
|
close( STDERR );
|
||||||
|
open( STDOUT, ">&SAVEOUT" );
|
||||||
|
open( STDERR, ">&SAVEERR" );
|
||||||
|
|
||||||
|
$flag = 0;
|
||||||
|
$cnt = 0;
|
||||||
|
while (true) {
|
||||||
|
sleep($DELAY_OF_CYCLE);
|
||||||
|
|
||||||
|
$ProcessObj->GetExitCode($exit_code);
|
||||||
|
if ( $exit_code != $STILL_ALIVE ) {
|
||||||
|
|
||||||
|
$logstr = "Test terminated with exit code $exit_code.";
|
||||||
|
constructLogString "$logstr";
|
||||||
|
if ( $exit_code != 0 ) {
|
||||||
|
safeAppend $LOGTXT, "$testcase=FAILED\n";
|
||||||
|
$logstr = "Test FAILED...";
|
||||||
|
constructLogString "$logstr";
|
||||||
|
}
|
||||||
|
$logstr = "Check ErrorLog File $testlog ";
|
||||||
|
constructLogString "$logstr";
|
||||||
|
constructLogString "";
|
||||||
|
constructLogString "";
|
||||||
|
|
||||||
|
$flag = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
|
||||||
|
$cnt += $DELAY_OF_CYCLE;
|
||||||
|
if ( $cnt >= $DELAY_FACTOR ) {
|
||||||
|
$flag = 0;
|
||||||
|
$ProcessObj->Kill(0);
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
} # while with sleep
|
||||||
|
|
||||||
|
( $testparam eq "" ) || last;
|
||||||
|
|
||||||
|
} # while ( $line
|
||||||
|
|
||||||
|
( ++$currcnt < $runcnt ) || last;
|
||||||
|
|
||||||
|
if ( $runtype == 3 ) {
|
||||||
|
$DOCFILE="$DOCROOT/test.xml";
|
||||||
|
$filename="$curdir/BWTestClass.lst.xml.ORIG";
|
||||||
|
constructHTML;
|
||||||
|
appendEntries;
|
||||||
|
if ( -f "$LOGTXT" ) {
|
||||||
|
$newfile = "$LOGTXT.bak";
|
||||||
|
rename ($LOGTXT, $newfile) or die( "Cann't clear LOGTXT..." ) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} # while(true)
|
||||||
|
|
||||||
|
constructLogFooter;
|
||||||
|
if ( $runtype == 3 ) {
|
||||||
|
constructHTMLBody;
|
||||||
|
} else {
|
||||||
|
constructHTML;
|
||||||
|
}
|
||||||
|
constructHTMLFooter;
|
||||||
|
|
||||||
|
$newfile="$mozhome/BWProperties.$id";
|
||||||
|
rename "$newfile", "$mozhome/BWProperties";
|
||||||
|
chdir($curdir);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ USER=`logname`
|
||||||
DOCROOT="http://$SERVER/~$USER"
|
DOCROOT="http://$SERVER/~$USER"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Usage
|
# Usage
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -53,6 +54,34 @@ title()
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
#
|
||||||
|
# check whether to run tests in single threaded or multi threaded
|
||||||
|
# mode
|
||||||
|
#
|
||||||
|
##################################################################
|
||||||
|
checkExecutionMode()
|
||||||
|
{
|
||||||
|
executionMode=""
|
||||||
|
propnom="$curdir/BWProperties"
|
||||||
|
executionMode=`grep THREADMODE $propnom | cut -d"=" -f2`
|
||||||
|
|
||||||
|
if [ "$executionMode" != "S" ] &&
|
||||||
|
[ "$executionMode" != "s" ] &&
|
||||||
|
[ "$executionMode" != "M" ] &&
|
||||||
|
[ "$executionMode" != "m" ]
|
||||||
|
then
|
||||||
|
echo "Entry for BW_THREADMODE in BWProperties file is incorrect."
|
||||||
|
echo "It should be set to 'S' or 'M'"
|
||||||
|
echo
|
||||||
|
echo " Make changes to BWProperties file and re-run this script"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
#
|
#
|
||||||
# check which tests to run. XML/HTML or both
|
# check which tests to run. XML/HTML or both
|
||||||
|
@ -376,6 +405,24 @@ then
|
||||||
fi
|
fi
|
||||||
/bin/cp "$curdir/BWProperties" "$MOZILLA_FIVE_HOME/BWProperties"
|
/bin/cp "$curdir/BWProperties" "$MOZILLA_FIVE_HOME/BWProperties"
|
||||||
|
|
||||||
|
# Read the LOGDIR setting from BWProperties and
|
||||||
|
# accordingly set BWTest.txt location
|
||||||
|
#
|
||||||
|
logdir=`grep BW_LOGDIR $curdir/BWProperties | cut -d"=" -f2`
|
||||||
|
if [ ! -d "$logdir" ]
|
||||||
|
then
|
||||||
|
echo
|
||||||
|
echo "Log Directory $logdir does not exist...";
|
||||||
|
echo "Create Directory and re-run this script...";
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
LOGTXT="$logdir/BWTest.txt"
|
||||||
|
|
||||||
|
|
||||||
|
# check BW_THREADMODE setting from BWPropeties file
|
||||||
|
#
|
||||||
|
checkExecutionMode
|
||||||
|
|
||||||
# check if output text file of previous run exists.
|
# check if output text file of previous run exists.
|
||||||
# if so, then save it as .bak
|
# if so, then save it as .bak
|
||||||
|
@ -434,6 +481,8 @@ CLASSPATH="$curdir/../classes:${CLASSPATH}"
|
||||||
currcnt=0
|
currcnt=0
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
||||||
|
|
||||||
for i in `cat $filename`
|
for i in `cat $filename`
|
||||||
do
|
do
|
||||||
if [ ! -z "$testparam" ]
|
if [ ! -z "$testparam" ]
|
||||||
|
@ -449,7 +498,20 @@ do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# if single threaded execution
|
||||||
|
if [ "$executionMode" = "S" ]
|
||||||
|
then
|
||||||
echo $testcase > $curdir/BWTestClass.lst
|
echo $testcase > $curdir/BWTestClass.lst
|
||||||
|
else
|
||||||
|
# if multi-threaded but user has specified particular testcase
|
||||||
|
if [ ! -z "$testparam" ]
|
||||||
|
then
|
||||||
|
echo $testcase > $curdir/BWTestClass.lst
|
||||||
|
else
|
||||||
|
/bin/cp $filename $curdir/BWTestClass.lst
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
cd $MOZILLA_FIVE_HOME
|
cd $MOZILLA_FIVE_HOME
|
||||||
|
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
|
@ -461,6 +523,9 @@ do
|
||||||
nom=`basename $format`
|
nom=`basename $format`
|
||||||
testlog="$curdir/log/$nom.$id.log"
|
testlog="$curdir/log/$nom.$id.log"
|
||||||
./apprunner $DOCFILE 2>$testlog 1>&2 &
|
./apprunner $DOCFILE 2>$testlog 1>&2 &
|
||||||
|
|
||||||
|
# dummy sleep to allow apprunner to show up on process table
|
||||||
|
sleep 3
|
||||||
curpid=`ps -aef | grep apprunner | grep -v grep | awk '{ print $2 }'`
|
curpid=`ps -aef | grep apprunner | grep -v grep | awk '{ print $2 }'`
|
||||||
|
|
||||||
flag=0
|
flag=0
|
||||||
|
@ -517,10 +582,11 @@ do
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if [ $flag -eq 0 ]
|
# if single threaded execution
|
||||||
#then
|
if [ "$executionMode" = "S" ]
|
||||||
# /bin/rm $testlog
|
then
|
||||||
#fi
|
break
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
currcnt=`expr $currcnt + 1`
|
currcnt=`expr $currcnt + 1`
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
set BLACKWOOD_HOME=
|
||||||
|
set MOZILLA_FIVE_HOME=
|
||||||
|
set JAVA_HOME=
|
||||||
|
set TEST_PATH=%BLACKWOOD_HOME%
|
||||||
|
# url of the directory where you placed test.html and test.xml
|
||||||
|
set TEST_URL=
|
||||||
|
|
||||||
|
set PATH=%JAVA_HOME%\bin;%PATH%
|
||||||
|
set PATH=%MOZILLA_FIVE_HOME%;%PATH%
|
||||||
|
|
||||||
|
set CLASSPATH=%MOZILLA_FIVE_HOME%\classes
|
||||||
|
set CLASSPATH=%TEST_PATH%\classes;%CLASSPATH%
|
|
@ -2,20 +2,16 @@ setenv BLACKWOOD_HOME `pwd`/..
|
||||||
setenv MOZILLA_FIVE_HOME `pwd`/../../../../dist/bin
|
setenv MOZILLA_FIVE_HOME `pwd`/../../../../dist/bin
|
||||||
setenv JAVA_HOME /usr/local/java/jdk1.2/solaris
|
setenv JAVA_HOME /usr/local/java/jdk1.2/solaris
|
||||||
setenv TEST_PATH ${BLACKWOOD_HOME}
|
setenv TEST_PATH ${BLACKWOOD_HOME}
|
||||||
setenv XML_PATH /workspace/xml
|
|
||||||
setenv PREFIX /workspace
|
setenv PREFIX /workspace
|
||||||
|
|
||||||
|
|
||||||
setenv LD_LIBRARY_PATH ${JAVA_HOME}/jre/lib/sparc
|
setenv LD_LIBRARY_PATH ${JAVA_HOME}/jre/lib/sparc
|
||||||
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/classic
|
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/classic
|
||||||
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/native_threads
|
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/native_threads
|
||||||
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/workspace/lib:/workspace/mozilla/dist/lib
|
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PREFIX}/lib:${PREFIX}/mozilla/dist/lib
|
||||||
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}
|
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}
|
||||||
|
|
||||||
setenv PATH /bin:/usr/bin:/usr/ccs/bin:/usr/dt/bin
|
|
||||||
setenv PATH ${PATH}:/usr/dist/local/exe:/usr/dist/exe
|
|
||||||
setenv PATH ${JAVA_HOME}/bin:${PATH}
|
setenv PATH ${JAVA_HOME}/bin:${PATH}
|
||||||
setenv PATH ${PATH}:${MOZILLA_FIVE_HOME}:/workspace/bin
|
setenv PATH ${PATH}:${MOZILLA_FIVE_HOME}:${PREFIX}/bin
|
||||||
|
|
||||||
setenv CLASSPATH ${MOZILLA_FIVE_HOME}/classes:${XML_PATH}/xml.jar:.
|
setenv CLASSPATH ${MOZILLA_FIVE_HOME}/classes:${PREFIX}/xml/xml.jar:.
|
||||||
setenv CLASSPATH ${TEST_PATH}/classes:${CLASSPATH}
|
setenv CLASSPATH ${TEST_PATH}/classes:${CLASSPATH}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче