Index: testcommon/.classpath =================================================================== --- testcommon/.classpath (revision 1555649) +++ testcommon/.classpath (working copy) @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + Index: testcommon/source/org/openoffice/test/OpenOffice.java =================================================================== --- testcommon/source/org/openoffice/test/OpenOffice.java (revision 1555649) +++ testcommon/source/org/openoffice/test/OpenOffice.java (working copy) @@ -48,6 +48,7 @@ private static Logger LOG = Logger.getLogger(OpenOffice.class.getName()); private static final String[] DEFAULT_HOME = new String[] { + "C:/Program Files (x86)/OpenOffice 4", "C:/Program Files/OpenOffice.org 3", "C:/Program Files (x86)/OpenOffice.org 3", "/Applications/OpenOffice.org.app/Contents", Index: testgui/source/bvt/gui/OoxmlExport.java =================================================================== --- testgui/source/bvt/gui/OoxmlExport.java (revision 0) +++ testgui/source/bvt/gui/OoxmlExport.java (working copy) @@ -0,0 +1,118 @@ +/************************************************************** + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + *************************************************************/ + +/** + * + */ +package bvt.gui; + + +import static org.openoffice.test.common.Testspace.*; +import static org.openoffice.test.vcl.Tester.*; +import static testlib.gui.AppTool.*; +import static testlib.gui.UIMap.*; + + +import java.io.File; +import java.util.Arrays; + +import org.junit.AfterClass; + +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; + +import org.openoffice.test.common.Logger; +import org.openoffice.test.common.Testspace; + + + +/** + * + */ +public class OoxmlExport { + + @Rule + public Logger log = Logger.getLogger(this); + + @BeforeClass + public static void beforeClass() { + app.clean(); + } + + @AfterClass + public static void afterClass() { + app.stop(); + } + + @Before + public void before() { + app.stop(); + app.start(); + } + + + /** + * Test Open/SaveAs ooxml file by Aoo + * + * @throws Exception + */ + + + @Test + public void testSaveAs() throws Exception { + //for example + //the path is "D:\\aoo\\utaoo\\testspace\\ooxmlsamples" + File reportDir = Testspace.getFile("ooxmlsamples"); + File[] files = reportDir.listFiles(); + Arrays.sort(files); + int nfiles= files.length; + for( int i=0;iODF boolean flag = false; Index: testuno/source/org/openoffice/test/uno/UnoApp.java =================================================================== --- testuno/source/org/openoffice/test/uno/UnoApp.java (revision 1555649) +++ testuno/source/org/openoffice/test/uno/UnoApp.java (working copy) @@ -64,11 +64,11 @@ private static OpenOffice defaultOpenOffice = null; - static { - defaultOpenOffice = new OpenOffice(); - defaultOpenOffice.addArgs("-nofirststartwizard", "-norestore", "-quickstart=no"); - defaultOpenOffice.setUnoUrl(OpenOffice.DEFAULT_UNO_URL); - } + //static { + // defaultOpenOffice = new OpenOffice(); + // defaultOpenOffice.addArgs("-nofirststartwizard", "-norestore", "-quickstart=no"); + // defaultOpenOffice.setUnoUrl(OpenOffice.DEFAULT_UNO_URL); + //} public UnoApp() { this.openOffice = defaultOpenOffice;