Giter Club home page Giter Club logo

testfx's Introduction

Build Status Stories in Ready

TestFX

Easy-to-use library for testing JavaFX. TestFX provides:

  • A fluent and clean API for interacting with, and verifying the behavior of, JavaFX applications.
  • Supports Hamcrest Matchers and Lambda expressions.
  • Screenshots of failed tests.
  • Supports JavaFX 2 and JavaFX 8.

Changelog

Usage Example

class DesktopTest extends GuiTest {
  public Parent getRootNode() {
    return new Desktop()
  }

  @Test
  public void shouldBeAbleToDragFileToTrashCan() {
    // GIVEN
    rightClick("#desktop").move("New").click("Text Document")
                          .type("myTextfile.txt").push(ENTER);
  
    // WHEN
    drag(".file").to("#trash-can");
    
    // THEN
    verifyThat("#desktop", contains(0, ".file"));
  }
}

Documentation

Links

Motivation

The motivation for creating TestFX was that the existing library for testing JavaFX, Jemmy, was too verbose and unwieldy. We wanted more behavior driven tests with easy-to-read code that our tester could follow and modify on her own. Today, TestFX is used in all of the about 100 automated GUI tests in LoadUI (source code, video).

Comparison with Jemmy

You might also want to try Automaton, a new testing framework that supports JavaFX as well as Swing.

Mailing list

Head over to [email protected] for discussions, questions and announcements.

Credits

TestFX was initially created by @dainnilsson and @minisu as a part of LoadUI in 2012. Today, it is being extended and maintained by @hastebrot, @Philipp91, @minisu and the other contributors.

testfx's People

Contributors

hastebrot avatar minisu avatar svenruppert avatar philipp91 avatar aalmiray avatar naimdjon avatar lgringo avatar torakiki avatar bitdeli-chef avatar jotomo avatar waffle-iron avatar rladstaetter avatar sergei-ivanov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.