Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[graphiti-dev] SWTBot Tests best practices

Hi,

I am currently writting some SWT Bot tests and therefore also took a look at the tests provided by org.eclipse.graphiti.bot.tests.
I was surprised, that in most cases the features and contexts (e.g. add feature, add context) were created and used. I would expect UI tests to be black box tests, so using only the visible UI features for creating diagram elements.

http://code.google.com/a/eclipselabs.org/p/spray/source/browse/tests/org.xspray.examples.one.tests/src/org/xspray/examples/one/tests/SimpleUITest.java

I also wonder, why GFAbstractShape does not provide public access to the GraphicsAlgorithm. Is ((GraphicalEditPart) editPart.part()).getModel() the only recommended way to get the Graphiti objects from the found GEF figures?

Regards,
Joerg


begin:vcard
fn;quoted-printable:J=C3=B6rg Reichert
n;quoted-printable:Reichert;J=C3=B6rg
org:itemis
adr:;;Ludwig-Erhardt-Str. 51;Leipzig;Sachsen;04103;Deutschland
email;internet:joerg.reichert@xxxxxxxxx
title:itemis, Niederlassung Leipzig
tel;work:+49-(0)341 / 231-0183-408
tel;fax:+49-(0)341 / 231-0183-411
tel;cell:+49-(0)151 / 173 96 690
note;quoted-printable:J=C3=B6rg Reichert=0D=0A=
	IT-Berater=0D=0A=
	=0D=0A=
	Telefon: +49 (0) 341 / 231 0183-403=0D=0A=
	Telefax: +49 (0) 341 / 231 0183-411=0D=0A=
	Mobil: +49 (0) 151 / 173 96-690=0D=0A=
	=0D=0A=
	http://www.itemis.de=0D=0A=
	=0D=0A=
	joerg.reichert@xxxxxxxxx=0D=0A=
	=0D=0A=
	https://www.xing.com/profile/Joerg_Reichert8=0D=0A=
	=0D=0A=
	itemis AG=0D=0A=
	Niederlassung Leipzig=0D=0A=
	Ludwig-Erhard-Stra=C3=9Fe 51=0D=0A=
	04103 Leipzig=0D=0A=
	=0D=0A=
	itemis AG=0D=0A=
	Hauptsitz=0D=0A=
	Am Brambusch 15-24=0D=0A=
	44536 L=C3=BCnen=0D=0A=
	=0D=0A=
	Rechtlicher Hinweis:=0D=0A=
	=0D=0A=
	Amtsgericht Dortmund, HRB 20621=0D=0A=
	=0D=0A=
	Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus, Dr. Georg Pietrek, Jens=
	 Trompeter, Sebastian Neus=0D=0A=
	Aufsichtsrat: Dr. Burkhard Igel (Vors.), Stephan Grollmann, Michael Neuha=
	us
url:http://www.itemis.de/
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top