Showing posts with label testing. Show all posts
Showing posts with label testing. Show all posts

Sunday, December 05, 2010

Using AOP to Understand Legacy Code

The article quoted below mentions a technique that I had not seen before that may come in handy someday. The author uses an Aspect-Oriented Programming (AOP) tool, in this case AspectJ, to inject code into a legacy application in order to trace its execution. The article does not show you how to do this (and I'm not going to do that either so perhaps the title of this post is a bit of a teaser) but once you know how to use a particular APO tool injecting tracer code should not be difficult. I just wanted to capture the idea here for future reference (which is the purpose of this links-blog).

Pragmatic Programming Techniques: Understand Legacy Code:
"I have built a tool that allows me to instrument those classes that I am interested so that when I start the system, it will print out all the entry points when they execute. Entry point is the lowest method of the stack trace that you are interested. The tool is based on AspectJ which allows me to inject some print statements when certain methods are executed."

Monday, June 14, 2010

Pairwise Testing

Pairwise Testing
"Pairwise (a.k.a. all-pairs) testing is an effective test case generation technique that is based on the observation that most faults are caused by interactions of at most two factors. Pairwise-generated test suites cover all combinations of two therefore are much smaller than exhaustive ones yet still very effective in finding defects"

Monday, March 01, 2010

Introducing BDD

DanNorth.net - Introducing BDD
"I found the shift from thinking in tests to thinking in behaviour so profound that I started to refer to TDD as BDD, or behaviour- driven development."

Saturday, November 21, 2009

dynaTrace AJAX Edition

Diagnose and Prevent AJAX Performance Issues - dynaTrace AJAX Edition

Tuesday, October 13, 2009

Simple Test for PHP

Simple Test for PHP
"Amongst software testing tools, a unit tester is the one closest to the developer. In the context of agile development the test code sits right next to the source code as both are written simultaneously. In this context SimpleTest aims to be a complete PHP developer test solution and is called 'Simple' because it should be easy to use and extend. It wasn't a good choice of name really. It includes all of the typical functions you would expect from JUnit and the PHPUnit ports, and includes mock objects."

Friday, September 04, 2009

xUnit.net

xUnit.net - Unit Testing for .NET

xUnit.net Contrib

Brad Wilson

James Newkirk

Tuesday, June 23, 2009

Selenium with Python

Trying the Selenium web application testing system with Python.

Started by installing Selenium IDE in Firefox. That lets you record and playback interaction with the web site under test. It also formats the test script in a number of languages you can use to automate the tests using Selenium RC. I'm using Python.

The Selenium RC Server is written in Java so the Java Runtime Environment (JRE) must be installed on the system hosting the tests.

Selenium RC documentation

Selenium Python Client Driver Configuration

Python unit testing framework

Python HTMLTestRunner

Thursday, June 18, 2009

Python — Unit testing framework

26.3. unittest — Unit testing framework — Python v2.6.2 documentation:
"The Python unit testing framework, sometimes referred to as “PyUnit,” is a Python language version of JUnit, by Kent Beck and Erich Gamma. JUnit is, in turn, a Java version of Kent’s Smalltalk testing framework. Each is the de facto standard unit testing framework for its respective language."

Tuesday, June 16, 2009

Watir

Watir - Overview:
"Watir is an open-source library for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible."

"...support for Firefox also requires a plugin."

Selenium

Selenium web application testing system

iMacros for Firefox

iMacros for Firefox - Script your Firefox Web Browser

Saturday, June 28, 2008

Fiddler

Fiddler Web Debugger - A free web debugging tool:
"Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and 'fiddle' with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language."

moq

moq - Google Code: "The simplest mocking library for .NET 3.5 with deep C# 3.0 integration"

Thursday, November 15, 2007

Watir

Watir - Overview
"Watir is a simple open-source library for automating web browsers. It allows you to write tests that are easy to read and easy to maintain. It is optimized for simplicity and flexibility."