SWTBot GEF element with compartiment [message #783355] |
Wed, 25 January 2012 15:16 |
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 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.
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.
So, who accept the challenge?
thx guys
-
Attachment: help.jpg
(Size: 127.33KB, Downloaded 247 times)
[Updated on: Wed, 25 January 2012 15:20] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02426 seconds