You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2019/06/17 06:12:31 UTC
[directory-studio] branch master updated: Fix test on slow machines
This is an automated email from the ASF dual-hosted git repository.
seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-studio.git
The following commit(s) were added to refs/heads/master by this push:
new 1119014 Fix test on slow machines
1119014 is described below
commit 11190149b07818f1ab61de910483a0d38a60e51c
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Mon Jun 17 08:12:21 2019 +0200
Fix test on slow machines
---
.../studio/test/integration/ui/ImportExportTest.java | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
index fa706cb..66fa2fd 100644
--- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
+++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
@@ -267,13 +267,14 @@ public class ImportExportTest extends AbstractLdapTestUnit
// delete entries
browserViewBot.expandEntry( "DIT", "Root DSE", "ou=system", "ou=special" );
+ BotUtils.sleep( 5000L ); // TODO: wait until all entries are expanded and UI is updated
String[] children =
{ "cn=alias", "cn=referral", "cn=subentry" };
browserViewBot.selectChildrenOfEntry( children, "DIT", "Root DSE", "ou=system", "ou=special" );
DeleteDialogBot dialogBot = browserViewBot.openDeleteDialog();
assertTrue( dialogBot.isVisible() );
dialogBot.clickOkButton();
- BotUtils.sleep( 5000L );
+ BotUtils.sleep( 5000L ); // TODO: wait until all entries are deleted and UI is updated
assertFalse( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=special", "cn=alias" ) );
assertFalse( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=special", "cn=referral" ) );
assertFalse( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=special", "cn=subentry" ) );
@@ -314,7 +315,7 @@ public class ImportExportTest extends AbstractLdapTestUnit
browserViewBot.selectEntry( "DIT", "Root DSE", "ou=system", "ou=special" );
- // export first LDIF (alias and referral)
+ // export first DSML (alias and referral)
ExportWizardBot wizardBot = browserViewBot.openExportDsmlWizard();
assertTrue( wizardBot.isVisible() );
wizardBot.setReturningAttributes( "ref" );
@@ -334,7 +335,7 @@ public class ImportExportTest extends AbstractLdapTestUnit
assertTrue( content1.contains( "<value>ldap://foo.example.com/ou=system</value>" ) );
assertTrue( content1.contains( "dn=\"cn=alias,ou=special,ou=system\"" ) );
- // export second LDIF (subentry)
+ // export second DSML (subentry)
wizardBot = browserViewBot.openExportDsmlWizard();
assertTrue( wizardBot.isVisible() );
wizardBot.setReturningAttributes( "subtreeSpecification" );
@@ -354,18 +355,19 @@ public class ImportExportTest extends AbstractLdapTestUnit
// delete entries
browserViewBot.expandEntry( "DIT", "Root DSE", "ou=system", "ou=special" );
+ BotUtils.sleep( 5000L ); // TODO: wait until all entries are expanded and UI is updated
String[] children =
{ "cn=alias", "cn=referral", "cn=subentry" };
browserViewBot.selectChildrenOfEntry( children, "DIT", "Root DSE", "ou=system", "ou=special" );
DeleteDialogBot dialogBot = browserViewBot.openDeleteDialog();
assertTrue( dialogBot.isVisible() );
dialogBot.clickOkButton();
- BotUtils.sleep( 5000L );
+ BotUtils.sleep( 5000L ); // TODO: wait until all entries are deleted and UI is updated
assertFalse( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=special", "cn=alias" ) );
assertFalse( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=special", "cn=referral" ) );
assertFalse( browserViewBot.existsEntry( "DIT", "Root DSE", "ou=system", "ou=special", "cn=subentry" ) );
- // import LDIFs
+ // import DSML
ImportWizardBot importWizardBot = browserViewBot.openImportDsmlWizard();
importWizardBot.typeFile( file1 );
importWizardBot.clickFinishButton();