* the exception
*/
@Test
public void testAddEditDeleteAttribute() throws Exception
{
final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );
SWTBotUtils.selectEntry( bot, browserTree, false, "DIT", "Root DSE", "ou=system", "ou=users",
"cn=Barbara Jensen" );
final SWTBotTree entryEditorTree = SWTBotUtils.getEntryEditorTree( bot, "cn=Barbara Jensen,ou=users,ou=system" );
entryEditorTree.setFocus();
// add description attribute
entryEditorTree.contextMenu( "New Attribute..." ).click();
bot.comboBoxWithLabel( "Attribute type:" ).setText( "description" );
bot.button( "Finish" ).click();
bot.text( "" ).setText( "This is the 1st description." );
entryEditorTree.getTreeItem( "objectClass" ).click();
// add second value
entryEditorTree.getTreeItem( "description" ).click();
entryEditorTree.contextMenu( "New Value" ).click();
bot.text( "" ).setText( "This is the 2nd description." );
entryEditorTree.getTreeItem( "objectClass" ).click();
// edit second value
entryEditorTree.select( 7 );
entryEditorTree.contextMenu( "Edit Value" ).click();
bot.text( "This is the 2nd description." ).setText( "This is the 3rd description." );
entryEditorTree.getTreeItem( "objectClass" ).click();
// delete second value
entryEditorTree.select( 7 );
entryEditorTree.contextMenu( "Delete Value" ).click();
bot.shell( "Delete Value" );
bot.button( "OK" ).click();
// edit 1st value
entryEditorTree.select( 6 );
entryEditorTree.contextMenu( "Edit Value" ).click();
bot.text( "This is the 1st description." ).setText( "This is the final description." );
entryEditorTree.getTreeItem( "objectClass" ).click();
// delete 1st value/attribute
entryEditorTree.select( 6 );
entryEditorTree.contextMenu( "Delete Value" ).click();
bot.shell( "Delete Value" );
bot.button( "OK" ).click();
}