Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Recorder/Generator for non RCP app
Recorder/Generator for non RCP app [message #1733137] Tue, 24 May 2016 10:01 Go to next message
Daniel Wendelken is currently offline Daniel WendelkenFriend
Messages: 3
Registered: May 2016
Junior Member
Hi, is it possible to use SWTBot to record and generate off an application which just has a SWT based gui but is not RCP?

I've managed to get the bot running to a certain extent by following the tutorial: www.lorenzobettini.it/2014/01/testing-a-plain-swt-application-with-swtbot/ but I really need to find some way to record SWT inputs as I have a bunch of tests I need to generate from inherited code. I've attempted to get windowtester working, but as its aged there is little support or documentation, so I would prefer to use something actively being worked on.

If there isn't a way to use SWTBot in this case, does anyone know of any alternatives? I need something that can be run through JUnit as the project already has pre-existing unit tests which have been made. Any help or insight would be appreciated.
Re: Recorder/Generator for non RCP app [message #1733309 is a reply to message #1733137] Thu, 26 May 2016 11:32 Go to previous messageGo to next message
Daniel Wendelken is currently offline Daniel WendelkenFriend
Messages: 3
Registered: May 2016
Junior Member
bump
Re: Recorder/Generator for non RCP app [message #1733404 is a reply to message #1733137] Fri, 27 May 2016 09:23 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 24/05/2016 21:23, Daniel Wendelken wrote:
> Hi, is it possible to use SWTBot to record and generate off an
> application which just has a SWT based gui but is not RCP?
> I've managed to get the bot running to a certain extent by following the
> tutorial:
> www.lorenzobettini.it/2014/01/testing-a-plain-swt-application-with-swtbot/
> but I really need to find some way to record SWT inputs as I have a
> bunch of tests I need to generate from inherited code. I've attempted
> to get windowtester working, but as its aged there is little support or
> documentation, so I would prefer to use something actively being worked on.
> If there isn't a way to use SWTBot in this case, does anyone know of any
> alternatives? I need something that can be run through JUnit as the
> project already has pre-existing unit tests which have been made. Any
> help or insight would be appreciated.

Hi

you might take inspiration by code generated by the generator using an
RCP application and then copy and paste the generated Java code. Just
an idea.

What do you mean by "I need to generate from inherited code"?

Lorenzo

--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: Recorder/Generator for non RCP app [message #1733425 is a reply to message #1733404] Fri, 27 May 2016 11:44 Go to previous message
Daniel Wendelken is currently offline Daniel WendelkenFriend
Messages: 3
Registered: May 2016
Junior Member
Lorenzo, I mean physically inherited (someone else wrote it) not in the programmatic sense. This was gonna be my next approach if I end up deciding to use SWTBot.
Previous Topic:Replacement for deprecated SWTBotView.menus method?
Next Topic:Open SWTBot test Recorder with custom RCP application
Goto Forum:
  


Current Time: Thu Apr 18 23:07:03 GMT 2024

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

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

Back to the top