testdriven.com Wrangling quality out of chaos

Posts Tagged ‘Tools for Unit-Testing’

FEST-Swing: GUI Testing Made Easy

05.12.2009 · Posted in Links

FEST-Swing is a Java library that provides a fluent interface for functional Swing GUI testing. This library provides an easy-to-use API that makes creation and maintenance of GUI tests easy.

Example:

Code:
dialog.comboBox("domain").select("Users");
dialog.textBox("username").enterText("leia.organa");
dialog.button("login").click();
dialog.optionPane().requireErrorMessage().requireMessage("Please enter your password");

link

jsUnity

03.31.2009 · Posted in Links

jsUnity is a lightweight JavaScript testing framework that is context-agnostic. It doesn’t rely on any browser capabilities and therefore can be run inside HTML, ASP, WSH or any other context that uses JavaScript/JScript/ECMAScript.

There are already several unit testing frameworks for JavaScript that are browser-centric. jsUnity aims to just focus on JavaScript as a language that’s used beyond the browser context. jsUnity can be used in server-side JavaScript implementations as well as all popular browsers.
link

JSNSpec – JavaScript on .Net Specification Framework

02.09.2009 · Posted in Links

If you want to program in a dynamic language on .Net and use BDD, you might like this. JSNSpec uses specificaiton language similar to RSpec in Ruby and works in the browser, on the server in ASP .Net and in Managed JScript in Silverlight. It is "self-specified" meaning it uses itself to specify itself. This is one way to learn how to use the tool to make specifications for your own projects.
link

JMUnit: J2ME unit testing tool

01.01.2009 · Posted in Links

The JMUnit is a Java ME (or J2ME) application used by developers to test code. It’s an implementation of the popular xUnit framework.

JMUnit 1.1 has been released. It allows test failures and errors to be viewed on real devices (not just the emulator console). An Ant task for JMUnit has been added that generates XML reports that can be rendered by the <junitreport> Ant task.

JMUnit 1.2 is included in the Eclipse MTJ 0.9.1 plugin and in Netbeans 6.5. JMUnit 1.2 adds additional support for Ant and classes for performance monitoring.

link

TestUtil v. 2.4: Automated Method Testing

09.08.2008 · Posted in Links

TestUtil is a Java open source low-effort automated method testing strategy and tool for verifying all matching accessor methods on mutable objects with a single line of unit test code. It is compatible with both in-container and outside-the-container strategies extending JUnit.

Version 2.4 includes support for Enums.

link

expecco – model-based test development

07.22.2008 · Posted in Links

expecco is an innovative product suite for model-based test development and execution. Create tests as easily as with a modular system. In expecco, tests are created as graphical models (activity diagrams). This enables employees without any programming know-how to create, maintain and execute tests.

Reusable test blocks and extensive libraries greatly simplify the development, automation and evaluation of even the most complex test scenarios.

expecco offers comprehensive functions and libraries to automate tests and recurring tasks for web applications (Selenium IDE integrated), Window GUIs and general soft- and hardware.
link

CoTestive – a comprehensive testing tool

05.08.2008 · Posted in Links

CoTestive is a new testing framework. At the time of this posting, it is in its very early stages; about 90% NUnit compatible. It’s goals are to be:

1. NUnit & MbUnit compliant
2. FIT compliant
3. Extensible

In essence, it is slated to be comprehensive – a single testing framework that is developer-friendly, customer friendly, and extensible to suit the changing needs of the industry.
link

mockito: Java mock objects library

03.04.2008 · Posted in Links

Java mocking is dominated by expect-run-verify libraries like EasyMock or jMock. Mockito offers simpler and more intuitive approach: you ask questions about interactions after execution. Using mockito, you can verify what you want, without expensive setup upfront. Mockito aims to be transparent and let the developer to focus on testing selected behavior.
link

Bumblebee – agile documentation

12.09.2007 · Posted in Links

Bumblebee generates human-readable documentation from your JUnit test-structure. By adding comments powered with wiki-syntax and an extensible Ruby context for including snippets, runtime data and other content, you can create and maintain your system documentation with a minimum of effort.
link

merobase · Software Component Finder

12.09.2007 · Posted in Links

An advanced code search engine that simplifies the discovery and sharing of software components on the Internet and boosts programmer productivity through software reuse.

Recently added support for test-driven queries, i.e. only results are delivered that are likely to pass the given JUnit test case.

(a version with automated testing support is obviously under development, cf. http://www.veoh.com/videos/v13679456E3DYWHK)
link

T2: trace-based random testing tool for Java

10.24.2007 · Posted in Links

T2 is a fully automatic, trace-based random testing tool, featuring in-code specifications and reflexive testing.

T2 checks for internal errors, run time exceptions, method specifications, and class invariant. Unlike other testing tools, T2 reads specifications written in plain java! They are placed in the class we want to specify. Though not as fancy as Z or JML, in-code specifications are declarative, formal, and powerful. Maintenance effort is also minimum.

Unlike other testing tools T2 does not check individual methods in isolation. Nor does it generate Junit test scripts, though we could add this feature. T2 actually performs the test directly or on the fly. So it responds faster, perhaps even giving the feel that it is interactive. Internally it generates tests in the form of traces (sequences) of method calls; each will be checked. This has the effect that methods are basically checking each other. This is called reflexive testing. The benefit is that it still works well even if the specifications provided are very partial, whereas other testing tools typically rely complete specifications.

It is a unit testing tool; with classes as the units. Violating traces are reported, and can be saved, and reloaded for re-testing or regression.

(Still in prototype stage)
link

GUIdancer: automated GUI tests without any programming

10.24.2007 · Posted in Links

GUIdancer is a test tool for creating automated GUI tests. It supports applications written in Java (Swing, SWT, RCP) and HTML. No programming is required to create reusable, robust tests. GUIdancer is well suited to agile processes, because test specification can begin before the application under test is ready, and continues alongside development.
Modular test creation and object-oriented component recognition mean that tests are easy to maintain.
GUIdancer runs as a standalone application or as an Eclipse plugin. Tests are multi-lingual, platform-independent and can test different data, components and implementations.

link

MockMe: service layer mock for Java mobile applications

10.24.2007 · Posted in Links

MockMe is a simple tool to test Java mobile application’s client code without waiting for the service layer to become available. In complex applications this means not having to wait for data to become available for processing.

MockMe is essentially a configurable servlet based on properties files, which searches for XML files from a local directory according to a parameter passed in with a data access request. It then emulates the future server to facilitate testing. Once you have defined the XML and configured MockMe, both parts can work in parallel.
link

BeanCooker: mock values generator for Java Beans

10.24.2007 · Posted in Links

BeanCooker is a tool to automatically set mock values to all properties of any java bean.

The simplest usage will put "fooBar" in Strings, 12345 in integers, 123.123 in floats … and the most advanced usage will pull values from a csv file.

– very easy to use, good default settings.
– no external dependency, just JRE 5
– designed to be open and expansible (for example, you can configure it from Spring easily)
link

Unitils: Java unit-testing library

10.24.2007 · Posted in Links

Unitils is an open source library aimed at making unit testing easy and maintainable. Unitils builds further on existing libraries like DBUnit and EasyMock and integrates with JUnit and TestNG.

Unitils provides general asserion utilities, support for database testing, support for testing with mock objects and offers integration with Spring and Hibernate. It has been designed to offer these services to unit tests in a very configurable and loosely coupled way. As a result, services can be added and extended very easily.
link

CUTE: A Concolic Unit Testing Engine for C and Java

10.19.2007 · Posted in Links

CUTE (a Concolic Unit Testing Engine for C and Java) is a tool to systematically and automatically test sequential C programs (including pointers) and concurrent Java programs. CUTE combines concrete and symbolic execution in a way that avoids redundant test cases as well as false warnings. The tool also introduces a novel race-flipping technique to efficiently test and model-check concurrent programs with data inputs.
link

Spring Automock: expose mocked beans automatically

09.19.2007 · Posted in Links

Spring AutoMock is a test enabling framework to allow automatic exposure of Mocked beans for a Spring application. Used in conjunction with Spring autowiring of bean dependencies you can develop teired application contexts that represent the architectural tiers of your application, and thus you testing strategy. The simplest example is a separation of service beans and DAO beans into separate xml application contexts so that the services can be fully tested in isolation of the DAOs. The DAO beans are still required by the services typically as an injected property. Spring AutoMock can automatically register a Mock and a proxy of certain beans, so that the Mocks can be injected into your test cases and the matching proxy into the item under test. This reduces the need for repeated Spring test configuration.
link