Project Sikuli is great tool for Unit testing

Today I came across Project Sikuli from MIT labs. It is a visual technology to search and automate graphical user interface(GUI) using images or screenshots. It is a reasearch project developed by MIT computer science and Artificial Intelligence Laboratory(CSAIL).
Its kind of pretty neat. You download the tool and automate any menial task you have, like probably clearing out the /tmp folder or deleting the temporary internet files or FTPing or tweeting (you can do that too).
You can do lot of unit testing as well. Sikuli supports unit testing of GUI by integrating with junit. But you don;t need to write whole lot of code here with skiuli IDE, a python class inherited from junit.framework.TestCase? is automatically generated to wrap the unit testing script.Developers only need to write standard setUp(), tearDown and their test methods.

Following is the example

def setUp(self):

openApp("AnyRandom.app")
# wait until the app appears
wait(SCREENSHOT_OF_THE_APP) 

def tearDown(self):
closeApp("AnyRandom.app")
# wait until the app disappears
untilNotExit(SCREENSHOT_OF_THE_APP)
def testA(self):
....

def testB(self):
....


Real world example is here

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://kiranputtur.org/2010/02/19/project-sikuli-is-great-tool-for-unit-testing/ .
© Kiran Puttur 2010.
  • Janet
    Hello,

    I couldn't run any unit tests either in the window xp?

    The IDE is functional. I write the simple example unit test script in the editor, as follow:

    def testHelloWorld(self):

    print("Hello World!")
    but no test shows up in the unit test window. When clicking the Run button of the Unit test pane, nothing happens, and the IDE window dissappears, there is no way to get back to it other than restarting the IDE.

    It had stucked me for several days, that would be preciate if anyone can help me solve this problem!

    Email:wangyu123272@163.com

    Thank you very much.

    Janet
  • Janet
    Hello,

    I couldn't run any unit tests either in the window xp?

    The IDE is functional. I write the simple example unit test script in the editor, as follow:

    def testHelloWorld(self):

    print("Hello World!")
    but no test shows up in the unit test window. When clicking the Run button of the Unit test pane, nothing happens, and the IDE window dissappears, there is no way to get back to it other than restarting the IDE.

    It had stucked me for several days, that would be preciate if anyone can help me solve this problem!

    Thank you very much.

    Janet
  • Janet
    Hello,
    I couldn't run any unit tests either in the window xp?
    The IDE is functional. I write the simple example unit test script in the editor, as follow:
    def testHelloWorld(self):
    print("Hello World!")
    but no test shows up in the unit test window. When clicking the Run button of the Unit test pane, nothing happens, and the IDE window dissappears, there is no way to get back to it other than restarting the IDE.
    It had stucked me for several days, that would be preciate if anyone can help me solve this problem!

    Thank you very much.
    Janet
blog comments powered by Disqus
  • Tweets

    Follow kiranputtur on Twitter
  • Posts

    February 2010
    M T W T F S S
    « Jan   Mar »
     1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Facebook Friends


  • About

    Here I blog about all kind of stuff from Advaita philosopy monoism to software programming, Design Oriented Approach, reviews about latest hardware storage equipments as well as my rantings about open source projects. more..

  • Following Projects