Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Recorder/Generator for non RCP app
Recorder/Generator for non RCP app [message #1733137] Tue, 24 May 2016 06:01 Go to next message
Eclipse UserFriend
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 07:32 Go to previous messageGo to next message
Eclipse UserFriend
bump
Re: Recorder/Generator for non RCP app [message #1733404 is a reply to message #1733137] Fri, 27 May 2016 05:23 Go to previous messageGo to next message
Eclipse UserFriend
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 07:44 Go to previous message
Eclipse UserFriend
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: Sat May 17 06:26:16 EDT 2025

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

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

Back to the top