Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot GEF element with compartiment(Element of container type)
SWTBot GEF element with compartiment [message #783348] Wed, 25 January 2012 10:07
Thiago Lima is currently offline Thiago Lima
Messages: 2
Registered: January 2012
Junior Member
Helly guys, i'm using swtbot for my tests. I have a grafical aplication (GEF/GMF) in eclipse named TerraME GIMS and i don't know to test the element with compartment.

Take a look in the picture "help". So, situation is: How can i put two element of container type (first and second) inside other element of the same type "env"? Like the picture "help". The name of compartment is: compartmentEnvironment.

I try do this way:

public void canAddEnvironmentToEnvironment(String insideEnv, String outsideEnv) throws Exception{
SWTBotGefEditor editor = bot.gefEditor(bot.activeEditor().getTitle());
editor.doubleClick(outsideEnv);
editor.activateTool("Environment");
editor.mouseMoveLeftClick("EnvironmentCompartment");
editor.directEditType(insideEnv);
bot.toolbarDropDownButtonWithTooltip("Arrange All", 0).click();
}

But don't work. Later of i put the object "first" inside the object "env", all the objects i try put in env go inside the object first or the last object of container type put in it. Like in the picture "wrong".

So, who accept the challenge?
thx guys
  • Attachment: help.jpg
    (Size: 127.33KB, Downloaded 989 times)
  • Attachment: wrong.jpg
    (Size: 127.70KB, Downloaded 972 times)
Previous Topic:Most of the widgets are identified as canvas instead of table
Next Topic:SWTBot GEF element with compartiment
Goto Forum:
  


Current Time: Sat Jul 26 01:06:05 EDT 2014

Powered by FUDForum. Page generated in 0.42137 seconds