Blog Taxonomy

Home

Practical test doubles: adding stubs to TestLink Java API

kinow @ Oct 23, 2011 22:10:02 ()

Test Double is a generic term for any case where you replace a production object for testing purposes” [1]. There are different types of Test Doubles: Dummy, Fake, Stubs, Spies and Mocks. In this post we will see a practical example of adding stubs to TestLink Java API.

Stubs are objects that return canned answers to calls during tests [1]. This is useful specially when you have a system that communicates with different resources such as databases, web services, XML-RPC services and so on.

TestLink Java API is a small Java project created to act as an interface between TestLink XML-RPC API and a client program written in Java.

( Read more ... )

Building Jenkins with Eclipse and m2e plug-in

kinow @ Sep 20, 2011 17:50:04 ()

Yesterday I finally managed to build Jenkins using Eclipse and m2e plug-in. With Eclipse Indigo release came a new version of the Maven plug-in for Eclipse (former M2Eclipse), m2e. Since I started using Eclipse Indigo and this new plug-in I hadn’t been able to build Jenkins in Eclipse anymore.

I’ve been having a terrible fever and thought that it would be a good thing to stop playing Minecraft for a while and find a way to build Jenkins in Eclipse + m2e :-).

1. Maven Plug-ins execution in project life cycle

The first thing I’ve noticed were the messages regarding the execution of some Maven plug-ins in the project life cycle. m2e delegates the execution of Maven plug-ins to an external executor. As not all Maven plug-ins have an existing executor for m2e you will receive a message similar to “Plugin execution not covered by lifecycle configuration: …”.

( Read more ... )

Missed JCertif

kinow @ Sep 07, 2011 00:36:11 ()

Unfortunately I missed JCertif last weekend. My visa was in Brazzaville but I couldn’t board in a flight from Johannesburg to Congo without it. Max Bonbhel kindly tried to fax me the visa, but the last flight to Congo closed and I had to come back to Brazil sooner. :-(

Here is the slides that I was going to use there. Hope you take some time to read about TAP, SubUnit and other test protocols. There are two special points to pay attention to, one single format and extensibility.

Jcertif 2011 Tap by brunodepaulak

With a single format for your test results, you won’t need to write many different parsers, one for each distinct format. Extensibility refers to the fact that using formats like xUnit (like JUnit) or TestNG XML you are limited to the XML schema.

Many projects are aiming automation in different levels. Executing automated tests can lead to situations where you need to have information like the database used, JDK version, screen shots taken during some tests, exception stack traces, etc. TAP and SubUnit provide manners to extend your test result and inform to a test consumer (the tool that reads your test output) about such information.

Cheers!

TDC 2011 Floripa presentation about running your tests in Jenkins

kinow @ Aug 25, 2011 03:34:46 ()

Last weekend I attended TDC (The Developers Conference) 2011 in Florianópolis, in the south of Brazil. It was my first time in Florianópolis, but the weather was cloudy and cold, so I couldn’t check out one of the prettiest cities in Brazil :-( Bummer.

Putting the weather aside, TDC was great! Basically, there were many nice, easy-going people gathering together to talk about subjects like Java, SOA, Arduino, Testing, Agile and more. I had the chance to talk with skilled and experienced people, see different talks and catch up Guilherme Motta (@gfcmotta) from ThoughtWorks, who I have met in Porto Alegre in the beginning of this year. He gave an interesting talk about crowd testing using games as example, but varying with applications in different areas too.

( Read more ... )

The Developers Conference (TDC) 2011 Botando o Jenkins para rodar seus testes

kinow @ Aug 20, 2011 22:45:03 ()

Botando o Jenkins para rodar seus testes

Event
The Developers Conference 2011
Where ?
Florianópolis
When ?
2011-08-20