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 #783355] Wed, 25 January 2012 15:16
Thiago Lima is currently offline Thiago LimaFriend
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 below, should look this way. So, situation is: How can i put two element of container type (firstEnv and secondEnv) inside other element of the same type (env)? Like in the picture below. The name of compartment is: EnvironmentCompartment.

index.php/fa/6876/0/

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, looks like in the picture below and it's wrong. 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.

index.php/fa/6877/0/

So, who accept the challenge?
thx guys
  • Attachment: help.jpg
    (Size: 127.33KB, Downloaded 127 times)

[Updated on: Wed, 25 January 2012 15:20]

Report message to a moderator

Previous Topic:SWTBot GEF element with compartiment
Next Topic:Integration Testing
Goto Forum:
  


Current Time: Mon Nov 24 09:25:54 GMT 2014

Powered by FUDForum. Page generated in 0.02030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software