Home » Eclipse Projects » Jubula » Connecting two Figures on a Canvas
|Connecting two Figures on a Canvas [message #1007806]
||Thu, 07 February 2013 09:52
| Virginia Weidhaas
Registered: February 2013
I'm using Jubula with an RCP AUT containing a canvas.
I'm dragging and dropping figures from a Tree on the canvas (that works).
However, on the canvas I can usually connect two figures with little Attached Anchors.
I found out the names of those via the GEF Inspector, they are called org.eclipse.graphiti.ui.internal.parts.ContainerShapeEditPart_1/org.eclipse.graphiti.ui.internal.parts.AdvancedAnchorEditPart_1
So it's always the same way, dependent of the name of the Editpart of course.
I want to connect two anchors.
I thought ub_fcv_ClickConnection_byTextpaths would exactly be what I was looking for,
but when I try it, it says the Test failed, it couldn't find the textpaths.
When I try another simple action with the textpath like "Click in Figure", it works.
What is Click Connection doing?
My second approach was to use "Drag and Drop", since it is nearly the same approach, you click on an anchor, and drag it to the second anchor, where you can finally let go of the mouse.
I tried ub_fcv_dragFigure_byTextpath(TEXT,OPERATOR) and fcv_dropOnFigure_by Textpath(TEXT,OPERATOR).
The test suceeds although nothing happened, I guess the drag and drop action is too fast for my AUT.
To get a delay, I choose the version of ub_fcv_dragFigure_byTextpath with the many parameters ( TEXTPATH,OPERATOR,MOUSE_BUTTON,MODIFIER_KEYS,X_POSITION;X_UNITS,Y_POSITION;Y_UNITS)
However, it seems it does not select the Anchor correctly, it is always a bit off the edges. I tried several combinations of X_POSITION/Y_POSITION but nothing worked.
How can I connect my anchors? If that worked, it would be the perfect testing tool;)
Jubula Standalone Version: Version: 1.3.0
on Windows 7.
Thanks for your help in advance,
Current Time: Tue May 21 08:46:43 EDT 2013
Powered by FUDForum
. Page generated in 0.02127 seconds