Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot and Dependency Injection
SWTBot and Dependency Injection [message #1772522] Mon, 11 September 2017 23:31 Go to next message
Diego Tavolaro is currently offline Diego TavolaroFriend
Messages: 6
Registered: August 2017
Junior Member
Hello everyone,

I am developing an Eclipse E4 RCP Application
I would like to retrieve, using SWTBot, one of the MPart of my application for some tests.
I was trying everything for that.
By using SWTWorkbenchBot and IEclipseContext (injected) I had an error about the context.
By using the matcher, I did not find methods which would help me to find the part.
Do you know any suggestions for that?
And do you know if there is something I can do to inject objects (for example context, partService, modelService, etc...) in a SWTBot test ?

Thanks.

PS: if you think I forgot something for your understanding, please, tell me. I will give you more information. I am new to SWTBot.
Re: SWTBot and Dependency Injection [message #1772597 is a reply to message #1772522] Tue, 12 September 2017 22:14 Go to previous message
Diego Tavolaro is currently offline Diego TavolaroFriend
Messages: 6
Registered: August 2017
Junior Member
Hello again,

I found my answer here: https://www.eclipse.org/forums/index.php/t/1067419/
No need to use injection, but using the E4Workbench.

Thanks.
Previous Topic:More wait conditions
Next Topic:Testing FXCanvas with SWTBot
Goto Forum:
  


Current Time: Fri Apr 19 03:42:55 GMT 2024

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

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

Back to the top