testdriven.com Wrangling quality out of chaos

Archive for June, 2008

ClassMock – Test Tool for Metadata-Based and Reflection-Based Components

06.26.2008 · Posted in Java

ClassMock is a framework that helps the creation of unit tests for components that use reflection or annotations. In this kind of classes, the behavior is dependent of the class structure. This way, each test case usually works with a different class created specifically for the test. With ClassMock is possible to define and generate classes in runtime, allowing a better test readability and logic sharing between tests.

ClassMock is available at http://classmock.sourceforge.net/

data storm – a new free database viewer for TDD

06.23.2008 · Posted in Tools

Data Storm is a free open source data base browser. While there are millions of data base browsers freely available online, Data Storm is different as it can be launched directly from within your Java code. This enables you to see and modify data that otherwise may not be available to you (e.g. data that will be rolled back).

It is freely available from http://datastorm.sourceforge.net/motivation.html

which also motivates why you need the tool :-)

Java GUI Test Automation: Squish for Java Success at Ericsson

06.17.2008 · Posted in Articles

"Squish has proved to be an excellent and popular replacement for the GUI automation tool which was used in previous automation campaigns." said Shane McCarron from Ericsson AB.We had the pleasure to interview Shane McCarron, a Senior Designer of Ericsson AB, who use froglogic’s Squish for their automated GUI testing effort of several Java GUI applications in different divisions. We talked about their test automation and why they chose Squish over the competition.

Froglogic: What’s your name and position?

Shane: Shane McCarron, Senior Designer.

Froglogic: What’s the name of the company you work for?

Shane: LM Ericsson Ltd.

Froglogic: Can you briefly describe the software you are testing with Squish?

Shane: It is a suite of Java GUI applications used to manage a telecommunications network.

Froglogic: How did you learn about Squish?

Shane: I read about it on a WIKI article which was discussing vendors that provide cross platform GUI automation tools. Squish was said to support multiple Java Virtual Machines (JVMs) which was a key requirement of ours.

Froglogic: When did you start to use Squish?

Shane: In July 2007

Froglogic: What are the main reasons you decided to use Squish for your automated GUI tests?


Squish supports testing of multiple JVMs from a single test case
Tests can be written in JavaScript and this was seen as a benefit as there was already some knowledge of this language in our area and we didn’t have to learn a proprietary language
We were impressed with the Spy feature which lets you pick an object on a GUI and then set related synchronisation points in your test script
The step through debugging feature of the IDE was also seen as a very beneficial facility

Froglogic: What are Squish’s main advantages over the competition? Why did you choose Squish over its competitors?


Multiple JVM support
JavaScript based test scripts
Ability to integrate existing tests written in other languages e.g. Perl
Modular based development which means commonly used functions can be placed in scripts which are shared by multiple tests
Technical support – this was gauged by our experiences when we had questions during the review process
Competitive cost of the product and its licenses

Froglogic: What’s your favorite feature of Squish?

Shane: The debugger is excellent – when a breakpoint is encountered it is possible to see at that point in time the value of test specific variables and quickly get to the bottom of any problem with the logic of a test.

Froglogic: What is your most wanted feature wish for Squish?

Shane: Formatting and auto-completion of code e.g. in other IDEs when you type a function name and the opening bracket a prompt will appear indicating the parameters that must be passed to the function for that particular call. [Editor’s note: froglogic works on a highly improved IDE for Squish 4.0]

Froglogic: Are you satisfied with froglogic’s technical support service?

Shane: Yes. We have found froglogic to be very approachable and knowledgeable. The turnaround time for resolving issues is quite fast too.

Froglogic: What have been your biggest challenges in creating your automated GUI tests with Squish?

Shane: We were early adopters of Squish for Java so there were some teething problems there but I think our main challenge is that the GUIs we are testing are rather complex.

Froglogic: Where do you see the main benefit of automated testing? Shorter testing cycles, decreased use of human resource, better coverage, test reliability, and/or improved product quality?

Shane: We believe automated regression testing to be the quickest way to ensure that the introduction of new functionality has not broken existing core functionality of our GUIs. Where large tests involving many repetitive actions are concerned the automated test has to be considered more reliable too.

Froglogic: Do you use any other 3rd party or internal tools complementing your testing effort?

Shane: Yes for example we use internal Perl scripts to check a database at various points in our tests to validate the actions taking place on the GUI

Froglogic: Is there anything else you’d like to add?

Shane: Squish has proved to be an excellent and popular replacement for the GUI automation tool which was used in previous automation campaigns.

Froglogic: Thank you, Shane, for your time!

More about froglogic and Squish at http://www.froglogic.com.

InCisif Software released InCisif.net 2.2 on 06/10/2008

06.13.2008 · Posted in Advisories

InCisif.net is an automation tool designed to implement client-side functional testing of
Web applications under Internet Explorer 6 or 7, using languages such as VB.Net, C# or IronPython.

The version 2.2 focus on a better integration with Visual Studio.

Tests can be recorded, edited, executed and debugged from within Microsoft’s Visual Studio 2005 or 2008.
Visual Studio Express is also supported.

To learn more and download an evaluation copy, go to http://www.incisif.net

ReSharper 4.0 brings full support for C# 3.0, LINQ & VS 2008

06.11.2008 · Posted in Advisories

ReSharper 4.0 provides the most up-to-date support for C# 3.0, including LINQ, as well as providing many intelligent tools to make the new language features much easier to work with. Get the low-down on C# support here. Other key new features and productivity enhancements include:

• Comprehensive Insight into .NET Framework
• Solution-Wide Analysis
• Code Cleanup
• New and Updated Refactorings
• Multiple New Productivity Features
• ASP.NET Speedup

For a detailed overview of the major new features, see http://www.jetbrains.com/resharper/features/newfeatures.html?rs4a

Also, to simplify things for our users, we’re now offering a single download package for all editions (Full, C# and VB.NET).

For fully-functional 30-day evaluation downloads of ReSharper 4.0, go to http://www.jetbrains.com/resharper/download/index.html?rs4a

FIT/FitNesse Fixture Gallery 2.0 now available

06.11.2008 · Posted in News

Fixture Gallery is a cookbook for FIT/FitNesse tests. It provides developers with a quick overview of the most important fixture types and concepts for agile acceptance testing using the FIT framework. For each fixture type, this document explains the table format and fixture class structure and provides advice when to use and when not to use it. Each example is accompanied by the source code for Java, .NET and Python FIT implementations, in a form that can be easily copied and used as a template for similar fixtures.

Version 2.0 brings:
– Python examples for all fixtures and concepts explained in the document.
– Examples for ConstraintFixture, CombinationFixture, CalculateFixture
and notes about SetFixture and SubSetFixture.

Many thanks to Jens Engel and Mike Stockdale for their contributions to
this version.

For more information and download links see

Pex 0.5 released

06.02.2008 · Posted in Tools

Pex is a project from Microsoft Research that enables *parameterized* unit testing.

Pex generates Unit Tests from hand-written Parameterized Unit Tests through Automated Exploratory Testing based on Dynamic Symbolic Execution.