You are previewing Instant Sikuli Test Automation.
O'Reilly logo
Instant Sikuli Test Automation

Book Description

Discover automated application testing techniques for anything that is visible on the computer screen

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results

  • Write simple tests using the Sikuli IDE

  • Construct a framework for running your tests and reporting results

  • Learn best practices for building reusable Sikuli scripts and sharing capabilities between them

In Detail

Automated testing of applications is a hot topic in software development, but doing it effectively and flexibly is a difficult task. Sikuli provides an excellent balance, leveraging the simplicity of constructing tests using screenshots and the expressive power of the Python programming language to construct automated tests.

Instant Sikuli Starter: Effective Test Automation presents a series of examples that build on one another to demonstrate the key features provided by Sikuli. You will also learn additional techniques that will allow you to construct effective automated application test suites quickly and easily.

Beginning with a quick introduction to Sikuli, you will be guided through everything you need to know to write your own script with Sikuli. Learn how to use Sikuli for automated testing starting from the very basics, such as starting applications, taking screenshots, and navigating the mouse, before moving on to more advanced topics like constructing large testing suites using reusable test fragments. Along the way, you will also learn how to leverage Sikuli's links to both the Python language and Java to create richer tests. Everything you'll need to write effective tests, manage test suites, execute tests, and generate reports is presented in a series of examples demonstrating the power of Sikuli. Towards the end of this book, you will become more confident in your ability to execute test suites and generate reports using Sikuli.

Ext.NET Application Development How-to will teach you everything you need to get you started programming web applications using the Ext.NET framework.

Table of Contents

  1. Instant Sikuli Test Automation
    1. Instant Sikuli Test Automation
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.packtpub.com
      1. Support files, eBooks, discount offers and more
    6. packtlib.packtpub.com
      1. Why Subscribe?
      2. Free Access for Packt account holders
    7. 1. Instant Sikuli Test Automation
      1. So, what is Sikuli?
      2. Installation
        1. Installation on Mac OS X
          1. Step 1 – what do I need?
          2. Step 2 – downloading Sikuli
          3. Step 3 – extracting the Sikuli IDE
          4. Step 4 – starting Sikuli
        2. Installing Sikuli on Windows 7
          1. Step 1 – what do I need?
          2. Step 2 – downloading Sikuli
          3. Step 3 – extracting the Sikuli IDE
          4. Step 4 – starting Sikuli
      3. Quick start – writing your first script
        1. Your first script with Sikuli on Mac OS X
          1. Step 1 – starting an application
          2. Step 2 – checking whether the application has started
          3. Step 3 – providing input to the app with type()
          4. Step 4 – using the modifier key with type()
          5. Step 5 – clicking on buttons with click()
          6. Step 6 – closing the application
        2. Your first script with Sikuli on Windows
          1. Step 1 – starting an application
          2. Step 2 – checking whether the application has started
          3. Step 3 – providing input to the app with type()
          4. Step 4 – using the modifier key with type()
          5. Step 5 – clicking on buttons with click()
          6. Step 6 – closing the application
      4. Top 13 features you need to know about
        1. The basics
        2. Finding things on the screen and how to use regions
        3. Flow control in Python using loops
        4. More flow control techniques and interacting with scrollbars
        5. Utilizing Python in your Sikuli scripts
        6. Event-driven workflows
        7. Test automation
        8. Assembling a testing framework
        9. Debugging Sikuli scripts
        10. Capturing images using capture()
        11. Accessing Java from Sikuli
        12. Searching for and decoding text on the screen
        13. Extracting text using the clipboard() method
      5. People and places you should get to know
        1. Official sites
        2. Articles and tutorials
        3. Community
        4. Blogs
        5. Twitter
      6. Summary