Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Test Recorder
Test Recorder [message #513113] Mon, 08 February 2010 21:08 Go to next message
Vasanth Velusamy is currently offline Vasanth Velusamy
Messages: 31
Registered: July 2009
Member
I see that SWTBot, at one point, had an experimental Test Recorder,
although it seems like it is not being actively supported.

I am introducing SWTBot to other developers in our team, and one of the
questions asked / issues raised was the lack of a recorder.

Although I agree that a recorder should not be used to write *all* tests
(due to code maintenance issues), I think for beginners who are trying
to get accustomed to SWTBot, using a recorder and creating the first
test would go a long way.

Is the recorder something that can be revived? I read an InfoQ article
where Ketan mentioned that it is quite trivial to add support for the
recorder (but this article is from back in 2008). Is that still the case?

If there is general consensus that having a recorder is a good thing, I
can take a stab at it.

Thanks,
Vasanth
Re: Test Recorder [message #513147 is a reply to message #513113] Mon, 08 February 2010 23:14 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi Vasanth,

It's trivial to add support for individual components, the complexity is
in bringing all the pieces together.

The recorder code is available in a different branch in SVN if you're
interested in looking at it. It's nowhere near as smart as you'd like it
to be and involves substantial amount of work to make it work for all
controls (trees being the most complex of them all).

Having a recorder is a good point for people to get started and I'd
encourage you to get your hands dirty into that part of the code if
you'd like.

-- Ketan


On 2/8/10 1:08 PM, Vasanth Velusamy wrote:
> I see that SWTBot, at one point, had an experimental Test Recorder,
> although it seems like it is not being actively supported.
>
> I am introducing SWTBot to other developers in our team, and one of the
> questions asked / issues raised was the lack of a recorder.
>
> Although I agree that a recorder should not be used to write *all* tests
> (due to code maintenance issues), I think for beginners who are trying
> to get accustomed to SWTBot, using a recorder and creating the first
> test would go a long way.
>
> Is the recorder something that can be revived? I read an InfoQ article
> where Ketan mentioned that it is quite trivial to add support for the
> recorder (but this article is from back in 2008). Is that still the case?
>
> If there is general consensus that having a recorder is a good thing, I
> can take a stab at it.
>
> Thanks,
> Vasanth
Re: Test Recorder [message #515956 is a reply to message #513147] Mon, 22 February 2010 05:56 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
Hello,

I have a questiong regarding the Test Recorder.
What was its output? Was it a custom internanl format that describes the sequence of actions, or does it directly generate Java code of a SWTBot JUnit test that uses the Bot, so that one would only have to enrich it or to copy paste it wherever?

The second solution would be very welcome! If it is this one that was using the Test Recorder, I'll give it a try. Otherwise, I would be interested to have your opinion on how difficult it would be to implement.

Regards,
--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Test Recorder [message #516162 is a reply to message #515956] Mon, 22 February 2010 17:58 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
The output format was Java (and possibly other languages like jruby, groovy)

Vasanth(copied on the email) is taking a stab at the recorder, you may
want to work with him to see if you can go faster :)

Cheers!

-- Ketan

On 2/22/10 4:18 PM, Mickael Istria wrote:
> Hello,
>
> I have a questiong regarding the Test Recorder.
> What was its output? Was it a custom internanl format that describes the
> sequence of actions, or does it directly generate Java code of a SWTBot
> JUnit test that uses the Bot, so that one would only have to enrich it
> or to copy paste it wherever?
>
> The second solution would be very welcome! If it is this one that was
> using the Test Recorder, I'll give it a try. Otherwise, I would be
> interested to have your opinion on how difficult it would be to implement.
>
> Regards,
> --
> Mickael Istria - BonitaSoft S.A.
> http://www.bonitasoft.com/products/downloads.php
Previous Topic:SWTBotMenu
Next Topic:Problems with SWTBot and Spring-Context
Goto Forum:
  


Current Time: Thu Oct 30 14:06:49 GMT 2014

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

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