* @throws Exception the exception
*/
public void testCreateEntryWithSlash() throws Exception
{
final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );
SWTBotTreeItem systemNode = SWTBotUtils.selectNode( bot, browserTree, "DIT", "Root DSE", "ou=system" );
systemNode.expand();
systemNode.expand();
// open "New Entry" wizard
SWTBotMenu contextMenu = browserTree.contextMenu( "New Entry..." );
contextMenu.click();
// select entry creation method
bot.radio( "Create entry from scratch" ).click();
bot.button( "Next >" ).click();
// select object classes
bot.table( 0 ).select( "krb5Principal" );
bot.button( "Add" ).click();
bot.table( 0 ).select( "person" );
bot.button( "Add" ).click();
bot.button( "Next >" ).click();
// specify DN
SWTBotCombo typeCombo = bot.comboBoxWithLabel( "RDN:" );
typeCombo.setText( "krb5PrincipalName" );
SWTBotText valueText = bot.text( "" );
valueText.setText( "kadmin/changepw@DOMAIN" );
bot.button( "Next >" ).click();
// wait for check that entry doesn't exist yet
bot.waitUntil( new DefaultCondition()
{
public boolean test() throws Exception
{
return bot.tree( 0 ) != null;
}
public String getFailureMessage()
{
return "Could not find entry editor";
}
} );
// click to finish editing of sn
SWTBotTree tree = bot.tree( 0 );
SWTBotTreeItem krbNode = SWTBotUtils.selectNode( bot, tree, "krb5PrincipalName" );
krbNode.click();
// enter sn value
tree.select( "sn" );
bot.text( "" ).setText( "test" );
// click to finish editing of sn
krbNode.click();
// enter cn value
tree.select( "cn" );
bot.text( "" ).setText( "test" );
// click to finish editing of cn
krbNode.click();
// click finish to create the entry
bot.button( "Finish" ).click();
// wait till entry is created and selected in the tree