[Dextrose] [Sugar-devel] test automation

Samuel Greenfeld greenfeld at laptop.org
Sun Jul 1 08:31:34 EDT 2012

There are a few unit and system tests scattered throughout the Sugar source
code tree.  I have some of them checked out at the office, but I do not
recall where they all are at home.

Personally I have been caught with a bit of a Catch-22:  I need to write
automation to save time doing manual tests, but I have so many manual tests
to run that I have not had much time to write automation.

I also have looked at Dogtail as well as a few other utilities, although I
did not get as far along as Daniel did.  When using the AT-SPI tree
browsers included with Dogtail and a few other programs, more often than
not I did not see anything.

It was unclear though if I was enabling AT-SPI correctly or if Dogtail was
falsely thinking that it was turned on properly.  This setting differs
between environments [1], and X has to be restarted to make it take effect.

I may have been hampered a bit by trying to find a toolkit with a graphical
browser (to find controls without inspecting source code) during the GTK2
to GTK3 transition.  Although AT-SPI is not GTK-specific, I still ran into
a lot of compilation/library mismatch issues.

There is a ticket open about getting AT-SPI working in Sugar, although we
may wish to still explore other automation methods. [2]

[2] http://bugs.sugarlabs.org/ticket/3221

On Sun, Jul 1, 2012 at 3:33 AM, Daniel Narvaez <dwnarvaez at gmail.com> wrote:

> Hello,
> in the last few days I've been experimenting with dogtail
> https://fedorahosted.org/dogtail/
> So far I'm using it in the buildbot to run and stop all the installed
> activities.
> http://git.sugarlabs.org/sugar-build/sugar-build/blobs/master/tests/shell.py
> It's quite promising but apparently a bit buggy. Hopefully I can
> figure out how to make it reliable enough.
> On 1 July 2012 08:33, Sridhar Dhanapalan <sridhar at laptop.org.au> wrote:
> > I am keen to explore ways to improve the quality and delivery time of
> > code. Is there any work being done to automate testing of code?
> >
> > We recently had some university students working with us to create an
> > activity [1], and they were using the Robot Framework [2].
> >
> > Sridhar
> >
> >
> > [1] https://dev.laptop.org.au/issues/634
> > [2] https://code.google.com/p/robotframework/
> >
> >
> > Sridhar Dhanapalan
> > Engineering Manager
> > One Laptop per Child Australia
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> --
> Daniel Narvaez
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/dextrose/attachments/20120701/4585a5ce/attachment.html>

More information about the Dextrose mailing list