Entries Tagged 'Testing' ↓

Elaborating on DET – ETDD evolving?

Sigurdur Birgisson

I got some positive response about DET that I wrote on my blog and in my CAST session proposal, so I thought I would elaborate a little on where I think this could be going. I will probably cover more hands on aspects in the coming weeks, but I really want to explain a vision I have around [...]

Tags: , , , ,

Developers exploratory testing – Expanding its value

Sigurdur Birgisson

There is a common practice in our company to perform Developers Exploratory Testing sessions, explained by my colleague Davor here. The cool thing is that this way of performing higher level testing has actually become accepted by our developers, and they really enjoy it. In my current work of developing our organization wide practices for quality, I have [...]

Tags: , , , , , ,

Spring Integration Tests, Part II, Using Mock Objects

Mattias Severson

In the previous post, I wrote how you can use Spring’s FactoryBean to facilitate the creation of mock objects for Spring integration tests. Now, it is time to use the EasyMockFactoryBean (in this post EasyMock has been used for creating mock objects, but a similar approach applies to Mockito as well. Start by looking at [...]

Tags: , , ,

Testing Web.config Transformations, Part 1

Mads Troest

Web.config transformations is a Microsoft-supported technology for adapting a base configuration to a particular deployment environment. In my previous post, I mentioned how AppHarbor provides an online tool for manually testing transformations. Also, the Visual Studio extension SlowCheetah provides support for manually testing and transformation and diffing them against the base configuration from inside Visual Studio. These [...]

Tags: , , , , , ,

Organization wide test strategy – Step1 – Deriving our quality values

Sigurdur Birgisson

Our company has moved more from delivering individual consultant services to taking whole in-house product commitments delivered as a service to our customers. During the last months we have also been in a process of re-evaluating the core company values. Through this values work it has been clear that we want to feel proud about the quality delivered to [...]

Tags: , ,

Spring Integration Tests, Part I, Creating Mock Objects

Mattias Severson

When writing integration tests with Spring, it can sometimes be convenient to mock one or more of Spring bean dependencies. However, during some circumstances strange things may happen… (In this post, Mockito has been used for creating mock objects, but the same problem applies to EasyMock as well. You can find the corresponding files if [...]

Tags: , , , , ,

Robotium 3.0 – Stepping It Up!

Renas Reda

For those of you that do not know, Robotium is a test framework used for function and system tests of Android applications. With the release of Robotium 3.0, Robotium is now faster, lighter and more stable then ever! A tremendous amount of work has gone into modifying and improving more or less all the different [...]

Tags: ,

Facebook Test Java API release 1.1.5

Tobias Södergren

The Facebook Test Java API framework has been updated. There are two additions to the API and one bugfix: Bugfix for NPE when calling facebookStore.createTestUser(false,”…”). Added possibility of using a provided HttpClient instance in HttpClientFacebookTestUserStore. Added unit test that displays the use of json-path when asserting data. Here’s a quick reminder of how to create [...]

Tags: , , , ,

Using RenamingDelegatingContext to mock ContentResolver in Android

Tomas Nilsson

Mocking Context Testing in Android can be complex, especially when your component is not isolated from the Android framework. One example of this is when your component is performing file system tasks using Context. E.g, the Activity class has the following methods (inherited from Context): openOrCreateDatabase(); deleteDatabase(); getDatabasePath(); openFileInput(); openFileOutput(); getFileStreamPath(); deleteFile(); getCacheDir(); When calling [...]

Tags: ,

Simple Parsing of Complex JSON and XML Documents in Java

Johan Haleby

In this blog I’m going to demonstrate how to parse and validate more complex JSON and XML documents in Java using the REST Assured framework and the XmlPath and JsonPath components available in this framework. Since REST Assured is implemented in Groovy it can be really beneficial to take advantage of Groovy’s collection API. Let’s [...]

Tags: , ,

Infinitest

Anders Eriksson

The Infinitest Eclipse plug-in looks for unit tests and have them run as soon as changes are detected. Just as modern IDEs have provided automatic compilation for ages this can now also be provided for unit testing. The test outcome shows up as a green or red bar in the bottom of the Eclipse application [...]

Tags: , ,

Multipart Form Data File Uploading Made Simple with REST Assured

Johan Haleby

From a client perspective it has always seemed to me that uploading a large file or stream to a server using multi-part form data encoding in Java is overly complex. To address this I implemented support for it in REST Assured 1.3. Example Let’s say you have a simple HTML page that performs file-uploading from [...]

Tags: , ,

CAST 2011 – Testing competition with Happy Purples

Sigurdur Birgisson

First of all, Ill have to report a bug in James’ blog post. We only got $23 for the worst bug report award.=) Then I would like to thank for the fun competition James set up, it was really a learning experience and in retrospect I would maybe have put even more effort in the [...]

Tags: , ,

Collective note taking – More value from your test notes?

Sigurdur Birgisson

For quite some time now I have struggled with making note taking a natural part of my personal progress while testing. And well, I can say that it has really made impact on many other aspects of my work in other situations as well. I am actually quite proud to say that it has made [...]

Tags: , ,

Is your REST assured?

Johan Haleby

A couple of months ago I introduced a new open source Java framework for simple automated testing of REST/HTTP services called REST Assured. A lot of things have happended to the framework since then and it’s now better than ever. In this blog I’m going to summarize some of the most important new features that [...]

Tags: , , ,