You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by li...@apache.org on 2012/08/13 02:53:46 UTC

svn commit: r1372228 - /incubator/ooo/trunk/main/test/testgui/source/testcase/gui/AOOTest.java

Author: liuzhe
Date: Mon Aug 13 00:53:46 2012
New Revision: 1372228

URL: http://svn.apache.org/viewvc?rev=1372228&view=rev
Log:
Rename it and remove obsolete JavaDoc

Added:
    incubator/ooo/trunk/main/test/testgui/source/testcase/gui/AOOTest.java
      - copied, changed from r1371576, incubator/ooo/trunk/main/test/testgui/source/testcase/gui/SayHelloToOO.java

Copied: incubator/ooo/trunk/main/test/testgui/source/testcase/gui/AOOTest.java (from r1371576, incubator/ooo/trunk/main/test/testgui/source/testcase/gui/SayHelloToOO.java)
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/test/testgui/source/testcase/gui/AOOTest.java?p2=incubator/ooo/trunk/main/test/testgui/source/testcase/gui/AOOTest.java&p1=incubator/ooo/trunk/main/test/testgui/source/testcase/gui/SayHelloToOO.java&r1=1371576&r2=1372228&rev=1372228&view=diff
==============================================================================
--- incubator/ooo/trunk/main/test/testgui/source/testcase/gui/SayHelloToOO.java (original)
+++ incubator/ooo/trunk/main/test/testgui/source/testcase/gui/AOOTest.java Mon Aug 13 00:53:46 2012
@@ -36,17 +36,17 @@ import testlib.gui.CalcUtil;
 import testlib.gui.Log;
 
 /**
- * Before running the testing class, you need specify the AOO location firstly with system property openoffice.home.
- * 
- * @author test
+ * If AOO is not installed in the default directory, please specify the system property in your command line. <br/>
+ * -Dopenoffice.home="Your OpenOffice installation directory which contains soffice.bin"
  *
  */
-public class SayHelloToOO {
+public class AOOTest {
 
 	/**
-	 * TestCapture helps us to do
+	 * Add Log to enable the following capabilities.
 	 * 1. Take a screenshot when failure occurs.
 	 * 2. Collect extra data when OpenOffice crashes.
+	 * 3. Log any detail information.
 	 */
 	@Rule
 	public Log LOG = new Log();
@@ -58,8 +58,8 @@ public class SayHelloToOO {
 	 */
 	@Before
 	public void setUp() throws Exception {
-		//Start OpenOffice
-		app.start(); 
+		//Start OpenOffice with a clean user profile
+		app.start(true); 
 	}
 
 	/**
@@ -68,15 +68,14 @@ public class SayHelloToOO {
 	 */
 	@After
 	public void tearDown() throws Exception {
-		//Close OpenOffice
-		app.close();
+		
 	}
 	
 	/**
-	 * Implement the case
+	 * Implement test steps 
 	 */
 	@Test
-	public void helloOO() {
+	public void testHello() {
 		startcenter.menuItem("File->New->Spreadsheet").select();
 		calc.waitForExistence(10, 3);
 		typeKeys("Hello");