Kaydet (Commit) 79315f96 authored tarafından Liu Zhe's avatar Liu Zhe

#120352# - Automated Test:Rename GUI test package name into testcase.gui

üst 348af57d
...@@ -24,16 +24,17 @@ ...@@ -24,16 +24,17 @@
/** /**
* *
*/ */
package testcase.formula.catalog; package testcase.gui.formula.catalog;
import static testlib.AppUtil.*; import static testlib.gui.AppUtil.*;
import static testlib.UIMap.*; import static testlib.gui.UIMap.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import testlib.Log;
import testlib.gui.Log;
/** /**
* *
......
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
*/ */
package testcase.performance.benchmark; package testcase.gui.performance.benchmark;
import static org.openoffice.test.vcl.Tester.*; import static org.openoffice.test.vcl.Tester.*;
import static testlib.AppUtil.*; import static testlib.gui.AppUtil.*;
import static testlib.UIMap.*; import static testlib.gui.UIMap.*;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
...@@ -220,7 +220,7 @@ public class Filter { ...@@ -220,7 +220,7 @@ public class Filter {
{ {
System.out.println(fileName + " Load Show"); System.out.println(fileName + " Load Show");
long tr = 0; long tr = 0;
String file = testFile(fileName); String file = Testspace.prepareData(fileName);
startcenter.menuItem("File->Open...").select(); startcenter.menuItem("File->Open...").select();
FilePicker_Path.setText(file); FilePicker_Path.setText(file);
FilePicker_Open.click(); FilePicker_Open.click();
...@@ -280,7 +280,7 @@ public class Filter { ...@@ -280,7 +280,7 @@ public class Filter {
{ {
System.out.println(fileName + " Load Finish"); System.out.println(fileName + " Load Finish");
long tr = 0; long tr = 0;
String file = testFile(fileName); String file = Testspace.prepareData(fileName);
startcenter.menuItem("File->Open...").select(); startcenter.menuItem("File->Open...").select();
// submitOpenDlg(file); // submitOpenDlg(file);
FilePicker_Path.setText(file); FilePicker_Path.setText(file);
...@@ -338,7 +338,7 @@ public class Filter { ...@@ -338,7 +338,7 @@ public class Filter {
// System.out.println(fileName); // System.out.println(fileName);
long tr = 0; long tr = 0;
sleep(2); sleep(2);
String file = testFile(fileName_i); String file = Testspace.prepareData(fileName_i);
startcenter.menuItem("File->Open...").select(); startcenter.menuItem("File->Open...").select();
submitOpenDlg(file); submitOpenDlg(file);
sleep(8); sleep(8);
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* *
*/ */
package testcase.performance.benchmark; package testcase.gui.performance.benchmark;
import java.io.File; import java.io.File;
import java.io.BufferedReader; import java.io.BufferedReader;
...@@ -44,18 +44,13 @@ import org.junit.Before; ...@@ -44,18 +44,13 @@ import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.openoffice.test.common.FileUtil; import org.openoffice.test.common.FileUtil;
import testlib.CalcUtil; import testlib.gui.CalcUtil;
import static org.openoffice.test.vcl.Tester.sleep; import static org.openoffice.test.vcl.Tester.sleep;
import static org.openoffice.test.vcl.Tester.typeKeys; import static org.openoffice.test.vcl.Tester.typeKeys;
import static testlib.AppUtil.*; import static testlib.gui.AppUtil.*;
import static testlib.UIMap.SC_InsertColumnsRowsdialog; import static testlib.gui.CalcUtil.*;
import static testlib.UIMap.app; import static testlib.gui.UIMap.*;
import static testlib.UIMap.dialog;
import static testlib.UIMap.startcenter;
import static testlib.UIMap.writer;
import static testlib.CalcUtil.*;
import static testlib.UIMap.*;
public class GenerateReports { public class GenerateReports {
static public void computeResults(String resultDir) static public void computeResults(String resultDir)
......
...@@ -18,15 +18,17 @@ ...@@ -18,15 +18,17 @@
* under the License. * under the License.
* *
*************************************************************/ *************************************************************/
package testcase.sc.sheet; package testcase.gui.sc.sheet;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static testlib.UIMap.*; import static testlib.gui.UIMap.*;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import testlib.Log;
import testlib.gui.Log;
/** /**
* Before running the testing class, you need specify the AOO location firstly with system property openoffice.home. * Before running the testing class, you need specify the AOO location firstly with system property openoffice.home.
......
...@@ -22,20 +22,21 @@ ...@@ -22,20 +22,21 @@
/** /**
* *
*/ */
package testcase.sc.subtotals; package testcase.gui.sc.subtotals;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.openoffice.test.vcl.Tester.*; import static org.openoffice.test.vcl.Tester.*;
import static testlib.AppUtil.*; import static org.openoffice.test.common.Testspace.*;
import static testlib.UIMap.*; import static testlib.gui.AppUtil.*;
import static testlib.gui.UIMap.*;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import testlib.CalcUtil; import testlib.gui.CalcUtil;
import testlib.Log; import testlib.gui.Log;
/** /**
* *
...@@ -49,7 +50,7 @@ public class SubtotalsFunctions { ...@@ -49,7 +50,7 @@ public class SubtotalsFunctions {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
app.start(); app.start();
String file = testFile("sc/SubtotalsSampleFile.ods"); String file = prepareData("sc/SubtotalsSampleFile.ods");
startcenter.menuItem("File->Open...").select(); startcenter.menuItem("File->Open...").select();
submitOpenDlg(file); submitOpenDlg(file);
sleep(2); sleep(2);
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
package testcase.sc.validity; package testcase.gui.sc.validity;
import static testlib.AppUtil.*; import static testlib.gui.AppUtil.*;
import static testlib.UIMap.*; import static testlib.gui.UIMap.*;
import java.io.File; import java.io.File;
...@@ -39,8 +39,8 @@ import org.openoffice.test.vcl.IDList; ...@@ -39,8 +39,8 @@ import org.openoffice.test.vcl.IDList;
import org.openoffice.test.vcl.widgets.VclMessageBox; import org.openoffice.test.vcl.widgets.VclMessageBox;
import testlib.CalcUtil; import testlib.gui.CalcUtil;
import testlib.Log; import testlib.gui.Log;
public class ValidityDateSupport1024Columns { public class ValidityDateSupport1024Columns {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment