/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation. All rights reserved. This program and
 * the accompanying materials are made available under the terms of the Eclipse
 * Public License v1.0 which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Actuate Corporation - initial API and implementation
 ******************************************************************************/

package org.eclipse.birt.report.tests.engine;

import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.eclipse.birt.report.tests.engine.smoke.sampleReport.SampleReportTest;

import junit.framework.Test;
import junit.framework.TestSuite;

/**
 * All test cases for tests Engine
 */
public class AllTests extends utility.BaseTestCase
{

	public static void main( String[] args )
	{
		Test t = AllTests.suite( );
		System.out.println( t );
	}

	public static Test suite( )
	{
		TestSuite suite = new TestSuite(
				"Test for org.eclipse.birt.report.tests.engine" ); //$NON-NLS-1$

		List classes = new ArrayList( );
		AllTests allTests = new AllTests( );

		classes.addAll( allTests
				.getClasses( "org.eclipse.birt.report.tests.engine.api" ) ); //$NON-NLS-1$
		classes
				.addAll( allTests
						.getClasses( "org.eclipse.birt.report.tests.engine.regression" ) ); //$NON-NLS-1$
		classes
				.add( "org.eclipse.birt.report.tests.engine.smoke.sampleReport.SampleReportTest" ); //$NON-NLS-1$
		classes
				.remove( "org.eclipse.birt.report.tests.engine.api.EngineResourceLocator" );
		classes
				.remove( "org.eclipse.birt.report.tests.engine.api.TestRenderOptionBase" );
		Iterator iter = classes.iterator( );
		while ( iter.hasNext( ) )
		{
			String next = (String) iter.next( );

			try
			{
				Class c = Class.forName( next );
				int modifier = c.getModifiers( );
				if ( Modifier.isPublic( modifier )
						&& !Modifier.isStatic( modifier ) )
				{
					suite.addTestSuite( c );
				}
			}
			catch ( ClassNotFoundException e )
			{
				assert false;
			}
		}

		return suite;
	}
}
@@ -681,90 +681,8 @@
 t;%0A%0A
-import org.eclipse.birt.report.tests.engine.smoke.sampleReport.SampleReportTest;%0A%0A
 impo
@@ -1254,32 +1254,137 @@
 ; //$NON-NLS-1$%0A
+%09%09classes.add( %22org.eclipse.birt.report.tests.engine.api.script.element.ElementTest%22 ); //$NON-NLS-1$%0A%09%09%0A
 %09%09classes%0A%09%09%09%09.a
@@ -1689,16 +1689,30 @@
 ator%22 );
+ //$NON-NLS-1$
 %0A%09%09class
@@ -1793,16 +1793,30 @@
 Base%22 );
+ //$NON-NLS-1$
 %0A%09%09Itera

Add script element test