Kaydet (Commit) 4374dd7f authored tarafından Liu Zhe's avatar Liu Zhe

#120732 - [VCLAuto patch] Fixed problems: Screenshot is not valid. Some scripts…

#120732 - [VCLAuto patch] Fixed problems: Screenshot is not valid. Some scripts are not stable. Add load/new documents interface.

Patch by: Li Lin Yi <lilinyi921734@gmail.com>
Review by: Liu Zhe <aliuzhe@gmail.com>
üst b407e333
...@@ -37,6 +37,8 @@ import java.util.StringTokenizer; ...@@ -37,6 +37,8 @@ import java.util.StringTokenizer;
public class Tester { public class Tester {
static Robot robot; static Robot robot;
static double factor = Double.parseDouble(System.getProperty("sleep.factor", "1.0"));
static { static {
try { try {
robot = new Robot(); robot = new Robot();
...@@ -55,9 +57,9 @@ public class Tester { ...@@ -55,9 +57,9 @@ public class Tester {
* *
* @param delay * @param delay
*/ */
public static void sleep(double delay) { public static void sleep(double seconds) {
try { try {
Thread.sleep((long) (delay * 1000)); Thread.sleep((long) (seconds * factor * 1000));
} catch (InterruptedException e) { } catch (InterruptedException e) {
} }
} }
......
...@@ -51,7 +51,8 @@ public class VclApp { ...@@ -51,7 +51,8 @@ public class VclApp {
} }
public VclApp(OpenOffice openOffice) { public VclApp(OpenOffice openOffice) {
this("localhost", openOffice.getAutomationPort()); // this("localhost", openOffice.getAutomationPort());
this("127.0.0.1", openOffice.getAutomationPort()); // In case "localhost" is modified incorrectly
this.openOffice = openOffice; this.openOffice = openOffice;
} }
...@@ -87,7 +88,7 @@ public class VclApp { ...@@ -87,7 +88,7 @@ public class VclApp {
openOffice.kill(); openOffice.kill();
openOffice.cleanUserInstallation(); openOffice.cleanUserInstallation();
openOffice.start(); openOffice.start();
SystemUtil.sleep(5); SystemUtil.sleep(10);
} else { } else {
openOffice.start(); openOffice.start();
} }
...@@ -96,6 +97,20 @@ public class VclApp { ...@@ -96,6 +97,20 @@ public class VclApp {
communicationManager.start(); communicationManager.start();
} }
public void loadDocument(String file) {
dispatch(".uno:Open");
VclComboBox FilePicker_Path = new VclComboBox("SVT_HID_FILEDLG_AUTOCOMPLETEBOX");
FilePicker_Path.setText(file);
VclButton FilePicker_Open = new VclButton("fpicker:PushButton:DLG_SVT_EXPLORERFILE:BTN_EXPLORERFILE_OPEN");
FilePicker_Open.click();
VclWindow writer = new VclWindow("SW_HID_EDIT_WIN");
writer.waitForExistence(10, 2);
}
public void newDocument(String type) {
dispatch(type);
}
public OpenOffice getOpenOffice() { public OpenOffice getOpenOffice() {
return this.openOffice; return this.openOffice;
} }
......
...@@ -53,12 +53,12 @@ public class BVTFileType { ...@@ -53,12 +53,12 @@ public class BVTFileType {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
app.start(); app.start(true);
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
...@@ -100,7 +100,7 @@ public class BVTFileType { ...@@ -100,7 +100,7 @@ public class BVTFileType {
String saveTo = getPath("temp/" + file); String saveTo = getPath("temp/" + file);
// Create a new text document // Create a new text document
app.dispatch("private:factory/swriter"); app.dispatch("private:factory/swriter");
sleep(3); writer.waitForExistence(10, 2);
// Input some text by keyboard // Input some text by keyboard
writer.focus(); writer.focus();
...@@ -238,7 +238,7 @@ public class BVTFileType { ...@@ -238,7 +238,7 @@ public class BVTFileType {
String text = "Hello Openoffice"; String text = "Hello Openoffice";
app.dispatch("private:factory/simpress?slot=6686"); app.dispatch("private:factory/simpress?slot=6686");
PresentationWizard.ok(); PresentationWizard.ok();
sleep(1); impress.waitForExistence(10, 2);
impress.click(0.01, 0.01); impress.click(0.01, 0.01);
typeKeys(text); typeKeys(text);
sleep(2); sleep(2);
...@@ -256,7 +256,6 @@ public class BVTFileType { ...@@ -256,7 +256,6 @@ public class BVTFileType {
app.dispatch(".uno:Open"); app.dispatch(".uno:Open");
submitOpenDlg(saveTo); submitOpenDlg(saveTo);
impress.waitForExistence(10, 2); impress.waitForExistence(10, 2);
sleep(2);
impress.click(3, 3); impress.click(3, 3);
typeKeys("<tab><enter>"); typeKeys("<tab><enter>");
app.dispatch(".uno:SelectAll"); app.dispatch(".uno:SelectAll");
...@@ -316,7 +315,7 @@ public class BVTFileType { ...@@ -316,7 +315,7 @@ public class BVTFileType {
// Create a new drawing document // Create a new drawing document
app.dispatch("private:factory/sdraw"); app.dispatch("private:factory/sdraw");
sleep(3); draw.waitForExistence(10, 2);
// Insert a picture fully filled with green // Insert a picture fully filled with green
app.dispatch(".uno:InsertGraphic"); app.dispatch(".uno:InsertGraphic");
...@@ -393,7 +392,7 @@ public class BVTFileType { ...@@ -393,7 +392,7 @@ public class BVTFileType {
// Create a new math // Create a new math
app.dispatch("private:factory/smath"); app.dispatch("private:factory/smath");
sleep(3); math_EditWindow.waitForExistence(10, 2);
// Verify if the Elements window is active // Verify if the Elements window is active
assertTrue(math_ElementsWindow.exists(3)); assertTrue(math_ElementsWindow.exists(3));
......
...@@ -53,12 +53,12 @@ public class BVTFunction { ...@@ -53,12 +53,12 @@ public class BVTFunction {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
app.start(); app.start(true);
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
@Test @Test
...@@ -89,7 +89,7 @@ public class BVTFunction { ...@@ -89,7 +89,7 @@ public class BVTFunction {
public void testPrintDialog() { public void testPrintDialog() {
// Create a new text document // Create a new text document
app.dispatch("private:factory/swriter"); app.dispatch("private:factory/swriter");
sleep(3); writer.waitForExistence(10, 2);
app.dispatch(".uno:Print"); app.dispatch(".uno:Print");
assertTrue(File_PrintDlg.exists(5)); assertTrue(File_PrintDlg.exists(5));
File_PrintDlg.cancel(); File_PrintDlg.cancel();
...@@ -158,7 +158,7 @@ public class BVTFunction { ...@@ -158,7 +158,7 @@ public class BVTFunction {
// Create a new text document // Create a new text document
app.dispatch("private:factory/swriter"); app.dispatch("private:factory/swriter");
sleep(3); writer.waitForExistence(10, 2);
// Insert a picture fully filled with green // Insert a picture fully filled with green
writer.click(400, 400); writer.click(400, 400);
...@@ -193,7 +193,7 @@ public class BVTFunction { ...@@ -193,7 +193,7 @@ public class BVTFunction {
// Create a new text document // Create a new text document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
sleep(3); calc.waitForExistence(10, 2);
// Insert a picture fully filled with green // Insert a picture fully filled with green
app.dispatch(".uno:InsertGraphic"); app.dispatch(".uno:InsertGraphic");
...@@ -229,7 +229,7 @@ public class BVTFunction { ...@@ -229,7 +229,7 @@ public class BVTFunction {
// Create a new text document // Create a new text document
app.dispatch("private:factory/simpress?slot=6686"); app.dispatch("private:factory/simpress?slot=6686");
PresentationWizard.ok(); PresentationWizard.ok();
sleep(3); impress.waitForExistence(10, 2);
// Insert a picture fully filled with green // Insert a picture fully filled with green
app.dispatch(".uno:InsertGraphic"); app.dispatch(".uno:InsertGraphic");
...@@ -339,7 +339,7 @@ public class BVTFunction { ...@@ -339,7 +339,7 @@ public class BVTFunction {
}; };
// Create a new text document // Create a new text document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
sleep(3); calc.waitForExistence(10, 2);
CalcUtil.selectRange("C5"); CalcUtil.selectRange("C5");
typeKeys("1<enter>"); typeKeys("1<enter>");
...@@ -474,7 +474,7 @@ public class BVTFunction { ...@@ -474,7 +474,7 @@ public class BVTFunction {
// Create a new drawing document // Create a new drawing document
app.dispatch("private:factory/sdraw"); app.dispatch("private:factory/sdraw");
sleep(3); draw.waitForExistence(10, 2);
// Insert a chart // Insert a chart
app.dispatch(".uno:InsertObjectChart"); app.dispatch(".uno:InsertObjectChart");
...@@ -498,7 +498,7 @@ public class BVTFunction { ...@@ -498,7 +498,7 @@ public class BVTFunction {
// Create a new text document // Create a new text document
app.dispatch("private:factory/swriter"); app.dispatch("private:factory/swriter");
sleep(3); writer.waitForExistence(10, 2);
// Insert a chart // Insert a chart
app.dispatch(".uno:InsertObjectChart"); app.dispatch(".uno:InsertObjectChart");
...@@ -522,7 +522,7 @@ public class BVTFunction { ...@@ -522,7 +522,7 @@ public class BVTFunction {
// Create a new spreadsheet document // Create a new spreadsheet document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
sleep(3); calc.waitForExistence(10, 2);
// Insert a chart // Insert a chart
app.dispatch(".uno:InsertObjectChart"); app.dispatch(".uno:InsertObjectChart");
...@@ -548,7 +548,7 @@ public class BVTFunction { ...@@ -548,7 +548,7 @@ public class BVTFunction {
// Create a new presentation document // Create a new presentation document
app.dispatch("private:factory/simpress?slot=6686"); app.dispatch("private:factory/simpress?slot=6686");
PresentationWizard.ok(); PresentationWizard.ok();
sleep(3); impress.waitForExistence(10, 2);
// Insert a chart // Insert a chart
app.dispatch(".uno:InsertObjectChart"); app.dispatch(".uno:InsertObjectChart");
...@@ -572,7 +572,7 @@ public class BVTFunction { ...@@ -572,7 +572,7 @@ public class BVTFunction {
// Create a new drawing document // Create a new drawing document
app.dispatch("private:factory/sdraw"); app.dispatch("private:factory/sdraw");
sleep(3); draw.waitForExistence(10, 2);
// Insert a table // Insert a table
app.dispatch(".uno:InsertTable"); app.dispatch(".uno:InsertTable");
...@@ -580,6 +580,7 @@ public class BVTFunction { ...@@ -580,6 +580,7 @@ public class BVTFunction {
sleep(3); sleep(3);
// Verify if the table toolbar is active // Verify if the table toolbar is active
typeKeys("123"); // Insert text to focus on table, to avoid Bug 120171 on linux
assertTrue(Table_Toolbar.exists(3)); assertTrue(Table_Toolbar.exists(3));
// Focus on edit pane // Focus on edit pane
...@@ -598,7 +599,7 @@ public class BVTFunction { ...@@ -598,7 +599,7 @@ public class BVTFunction {
// Create a new text document // Create a new text document
app.dispatch("private:factory/swriter"); app.dispatch("private:factory/swriter");
sleep(3); writer.waitForExistence(10, 2);
// Insert a table // Insert a table
app.dispatch(".uno:InsertTable"); app.dispatch(".uno:InsertTable");
...@@ -629,7 +630,7 @@ public class BVTFunction { ...@@ -629,7 +630,7 @@ public class BVTFunction {
// Create a new presentation document // Create a new presentation document
app.dispatch("private:factory/simpress?slot=6686"); app.dispatch("private:factory/simpress?slot=6686");
PresentationWizard.ok(); PresentationWizard.ok();
sleep(3); impress.waitForExistence(10, 2);
// Insert a table // Insert a table
app.dispatch(".uno:InsertTable"); app.dispatch(".uno:InsertTable");
...@@ -637,6 +638,7 @@ public class BVTFunction { ...@@ -637,6 +638,7 @@ public class BVTFunction {
sleep(3); sleep(3);
// Verify if the table toolbar is active // Verify if the table toolbar is active
typeKeys("123"); // Insert text to focus on table, to avoid Bug 120171 on linux
assertTrue(Table_Toolbar.exists(3)); assertTrue(Table_Toolbar.exists(3));
// // Check the statusbar to verify if the table is inserted // // Check the statusbar to verify if the table is inserted
...@@ -659,7 +661,7 @@ public class BVTFunction { ...@@ -659,7 +661,7 @@ public class BVTFunction {
// Create a new spreadsheet document // Create a new spreadsheet document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
sleep(3); calc.waitForExistence(10, 2);
// Insert source numbers // Insert source numbers
String sourceNumber1 = "5"; String sourceNumber1 = "5";
...@@ -692,7 +694,7 @@ public class BVTFunction { ...@@ -692,7 +694,7 @@ public class BVTFunction {
// Create a new spreadsheet document // Create a new spreadsheet document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
sleep(3); calc.waitForExistence(10, 2);
// Insert source numbers and expected result // Insert source numbers and expected result
String sourceData = "0"; String sourceData = "0";
...@@ -722,7 +724,7 @@ public class BVTFunction { ...@@ -722,7 +724,7 @@ public class BVTFunction {
// Create a new spreadsheet document // Create a new spreadsheet document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
sleep(3); calc.waitForExistence(10, 2);
// Insert source number // Insert source number
String sourceNumber = "-5"; String sourceNumber = "-5";
......
...@@ -55,7 +55,7 @@ public class SmokeTest { ...@@ -55,7 +55,7 @@ public class SmokeTest {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
@Test @Test
......
...@@ -50,25 +50,19 @@ public class AddDeleteSymbolsFromCatalog { ...@@ -50,25 +50,19 @@ public class AddDeleteSymbolsFromCatalog {
// New a formula document // New a formula document
app.dispatch("private:factory/smath"); app.dispatch("private:factory/smath");
sleep(3); // If no sleep, can not find math_SymbolsDlg in mac math_EditWindow.waitForExistence(10, 2);
// Click catalog button // Click catalog button
math_CatalogButton.click(); math_CatalogButton.click();
// Verify if the "Symbols" dialog pop up
assertTrue("Symbols dialog does not pop up", math_SymbolsDlg.exists(3));
// Select "Special", click "Edit" button // Select "Special", click "Edit" button
math_SymbolsDlgListbox.select(2); math_SymbolsDlgListbox.select(2);
math_SymbolsDlgEditButton.click(); math_SymbolsDlgEditButton.click();
// Verify if the "Edit Symbols" dialog pop up
assertTrue("Edit Symbols dialog does not pop up", math_EditSymbolsDlg.exists(3));
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -50,18 +50,15 @@ public class InputCharacterFromCatalogDlg { ...@@ -50,18 +50,15 @@ public class InputCharacterFromCatalogDlg {
// New a formula document // New a formula document
app.dispatch("private:factory/smath"); app.dispatch("private:factory/smath");
sleep(3); // If no sleep, can not find math_SymbolsDlg in mac math_EditWindow.waitForExistence(10, 2);
// Click catalog button // Click catalog button
math_CatalogButton.click(); math_CatalogButton.click();
// Verify if the "Symbols" dialog pop up
assertTrue("Symbols dialog does not pop up", math_SymbolsDlg.exists(3));
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -56,7 +56,7 @@ public class CreateFormulaInDifferentWays { ...@@ -56,7 +56,7 @@ public class CreateFormulaInDifferentWays {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -50,12 +50,13 @@ public class ChartDialogSetting { ...@@ -50,12 +50,13 @@ public class ChartDialogSetting {
// Create a new spreadsheet document // Create a new spreadsheet document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
calc.waitForExistence(10, 2);
app.dispatch(".uno:InsertObjectChart"); app.dispatch(".uno:InsertObjectChart");
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -54,12 +54,12 @@ public class DataPivotTable { ...@@ -54,12 +54,12 @@ public class DataPivotTable {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
app.start(); app.start(true);
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -57,7 +57,7 @@ public class Fitler { ...@@ -57,7 +57,7 @@ public class Fitler {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -50,7 +50,7 @@ public class InsertSheet { ...@@ -50,7 +50,7 @@ public class InsertSheet {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -55,11 +55,12 @@ public class SortDialogSetting { ...@@ -55,11 +55,12 @@ public class SortDialogSetting {
// Create a new spreadsheet document // Create a new spreadsheet document
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
calc.waitForExistence(10, 2);
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -53,14 +53,14 @@ public class SubtotalsFunctions { ...@@ -53,14 +53,14 @@ public class SubtotalsFunctions {
String file = prepareData("sc/SubtotalsSampleFile.ods"); String file = prepareData("sc/SubtotalsSampleFile.ods");
app.dispatch(".uno:Open"); app.dispatch(".uno:Open");
submitOpenDlg(file); submitOpenDlg(file);
sleep(2); calc.waitForExistence(10, 2);
CalcUtil.selectRange("A1:E7"); CalcUtil.selectRange("A1:E7");
app.dispatch(".uno:DataSubTotals"); app.dispatch(".uno:DataSubTotals");
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -57,7 +57,7 @@ public class ValidityDateSupport1024Columns { ...@@ -57,7 +57,7 @@ public class ValidityDateSupport1024Columns {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -50,7 +50,7 @@ public class ValidityDialogDefaultValue { ...@@ -50,7 +50,7 @@ public class ValidityDialogDefaultValue {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -56,13 +56,14 @@ public class ValidityDialogSetting { ...@@ -56,13 +56,14 @@ public class ValidityDialogSetting {
// New a spreadsheet, select cell range, open Validity dialog // New a spreadsheet, select cell range, open Validity dialog
app.dispatch("private:factory/scalc"); app.dispatch("private:factory/scalc");
calc.waitForExistence(10, 2);
CalcUtil.selectRange("A1:C5"); CalcUtil.selectRange("A1:C5");
app.dispatch(".uno:Validation"); app.dispatch(".uno:Validation");
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -48,7 +48,7 @@ public class ValiditySampleFile { ...@@ -48,7 +48,7 @@ public class ValiditySampleFile {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
...@@ -46,12 +46,12 @@ public class HeaderAndFooterSetting{ ...@@ -46,12 +46,12 @@ public class HeaderAndFooterSetting{
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
// app.start(true); // Bug 120476 app.start(true); // Bug 120476
app.start();
// New a impress, insert some slides // New a impress, insert some slides
app.dispatch("private:factory/simpress?slot=6686"); app.dispatch("private:factory/simpress?slot=6686");
PresentationWizard.ok(); PresentationWizard.ok();
impress.waitForExistence(10, 2);
for(int i=0; i<5;i++){ for(int i=0; i<5;i++){
SD_InsertPageButtonOnToolbar.click(); SD_InsertPageButtonOnToolbar.click();
...@@ -64,14 +64,14 @@ public class HeaderAndFooterSetting{ ...@@ -64,14 +64,14 @@ public class HeaderAndFooterSetting{
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
* Test Copy slide with Apply Footer to same file and different file * Test Copy slide with Apply Footer to same file and different file
* @throws Exception * @throws Exception
*/ */
@Test//? @Test
public void testCopySlideWithApplyFooter() throws Exception{ public void testCopySlideWithApplyFooter() throws Exception{
//add header and footer //add header and footer
...@@ -257,7 +257,7 @@ public class HeaderAndFooterSetting{ ...@@ -257,7 +257,7 @@ public class HeaderAndFooterSetting{
* Test footer not show on the first slide. * Test footer not show on the first slide.
* @throws Exception * @throws Exception
*/ */
@Test//?? @Test
public void testFooterNotShowOn1stSlide() throws Exception{ public void testFooterNotShowOn1stSlide() throws Exception{
//add header and footer //add header and footer
...@@ -269,8 +269,12 @@ public class HeaderAndFooterSetting{ ...@@ -269,8 +269,12 @@ public class HeaderAndFooterSetting{
// Check slide 1 // Check slide 1
ImpressSlideSorter.focus(); ImpressSlideSorter.focus();
typeKeys("<up><up><up><up><up>"); // typeKeys("<up><up><up><up><up>"); // Not stable on ubuntu10.04
sleep(1); // If no sleep, error occur // sleep(1); // If no sleep, error occur
for (int i=0; i<5; i++) {
typeKeys("<up>");
sleep(1);
}
app.dispatch(".uno:HeaderAndFooter"); app.dispatch(".uno:HeaderAndFooter");
assertEquals(true,SD_FooterNotShowOn1stSlide.isChecked()); assertEquals(true,SD_FooterNotShowOn1stSlide.isChecked());
......
...@@ -45,13 +45,12 @@ public class OpenDocumentWithHeaderFooter { ...@@ -45,13 +45,12 @@ public class OpenDocumentWithHeaderFooter {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
// app.start(true); // Bug 120476 app.start(true); // Bug 120476
app.start();
} }
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
...@@ -65,7 +64,7 @@ public class OpenDocumentWithHeaderFooter { ...@@ -65,7 +64,7 @@ public class OpenDocumentWithHeaderFooter {
String file = prepareData("sd/AOO3.4HeaderFooter.odp"); String file = prepareData("sd/AOO3.4HeaderFooter.odp");
app.dispatch(".uno:Open"); app.dispatch(".uno:Open");
submitOpenDlg(file); submitOpenDlg(file);
sleep(2); // If no sleep, error occur on mac impress.waitForExistence(10, 2);
//check after reopen //check after reopen
app.dispatch(".uno:HeaderAndFooter"); app.dispatch(".uno:HeaderAndFooter");
...@@ -106,6 +105,7 @@ public class OpenDocumentWithHeaderFooter { ...@@ -106,6 +105,7 @@ public class OpenDocumentWithHeaderFooter {
String file = prepareData("sd/gfdd.ppt"); String file = prepareData("sd/gfdd.ppt");
app.dispatch(".uno:Open"); app.dispatch(".uno:Open");
submitOpenDlg(file); submitOpenDlg(file);
impress.waitForExistence(10, 2);
//check after reopen //check after reopen
app.dispatch(".uno:HeaderAndFooter"); app.dispatch(".uno:HeaderAndFooter");
......
...@@ -52,7 +52,7 @@ public class Table { ...@@ -52,7 +52,7 @@ public class Table {
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
app.close();
} }
/** /**
......
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