Bug 121383 Set script for the chart, preview, system throws exception.
Set script for the chart, preview, system throws exception. Steps: 1.Create a line chart 2.Open the script page 3.input "importPackage(Packages.org.eclipse.birt.chart.model.component.impl); function beforeDrawSeries(series, renderer, scriptContext) { series.setCurveFitting(CurveFittingImpl.create()); series.getLabel().getCaption().getColor().set(12, 232, 182); }" Actual Resutls: 1.Preview in html , system throws exception. Exception in: ReportEngineService.runReport( ) Error happended while runntine the report Expected Results: 1.System can be previewed correctly.
testsuites/org.eclipse.birt.report.tests.chart/src/org/eclipse/birt/report/tests/chart/AllTests.java
{
	public static Test suite( )
	{
		TestSuite suite = new TestSuite( "Test for org.eclipse.birt.report.tests.chart"); 
		
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.AreaChart_3D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.LineChart_3D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.OverlayAreaChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.OverlayAreaChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.OverlayLineChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.OverlayLineChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PercentStackedAreaChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PercentStackedAreaChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PercentStackedBarChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PercentStackedBarChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PercentStackedLineChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PercentStackedLineChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PieChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.PieChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.ScatterChart.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.SideBySideBarChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.SideBySideBarChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.StackedAreaChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.StackedAreaChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.StackedBarChart_2D.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.StackedBarChart_2DWithDepth.class );
		suite.addTestSuite( org.eclipse.birt.report.tests.chart.acceptance.StackedBarChart_3D.class );