testing Tag

As described in our previous post, we maintain a common Eclipse Oomph Profile with our favorite plugins and settings preconfigured. Using Oomph, you can get this version of Eclipse installed with a single click. See here for a more thorough introduction and how to get the pre-configured Eclipse. As promised, we will describe the things we adapted and added to the standard Eclipse Packages. I would...

Read More

Almost two years ago, I have created a basic tutorial for the UI testing tool “Q7”. In 2014, Q7 has been released as an open source project and been renamed to “RCP Testing Tool” (RCPTT). RCPTT is focused on creating and running UI/System test for RCP/SWT applications. It is an alternative or addition to the open source projects SWTBot or Jubula. All of them have...

Read More

This article is about the testing framework. For the Star Trek character, see https://en.wikipedia.org/wiki/Spock. For other uses, see https://en.wikipedia.org/wiki/Spock_(disambiguation). If you are anything like me, you might be thinking something along the lines of: “Yet another testing framework. Why would I want to migrate?” I do not consider myself an early adopter and am usually quite happy to stick to the tools that have proven themselves useful...

Read More

When you test components of a RAP application, you have to simulate the environment that RAP UI code normally runs in. Thanks to a new API, this becomes easier in RAP 3.0. In an earlier post, my colleague Johannes explained how to write unit tests for RAP 2.x. This approach required more boilerplate code to set up and tear down the RAP environment in every single...

Read More

Many test cases for an application involve data defined by the data model. To achieve good test coverage it is customary to run the test cases for a variety of input data sets. This can be achieved by manually specifying input data. However, this is a complex task and it is easy to miss important input data and thereby miss bugs. Fuzz testing is about...

Read More

[caption id="" align="alignright" width="320"] Image via CC from Hades2k[/caption] JSON is becoming more and more important as a data exchange format, especially in Ajax web frameworks and RESTful web services. Apache JMeter, which is a very popular tool to perform load tests for web applications, does not come with native support to handle HTTP responses with JSON bodies. This post shows different possibilities how to deal...

Read More

We're occasionally asked how RAP supports UI tests. And while we were aware that there are developers creating UI tests for RAP, we never gathered much experience ourselves. However, in recent months I had the opportunity to delve deeper into this topic myself, specifically researching if Selenium 2.0 works with RAP 2.x. Spoiler: It does. [raw] NOTE: This video has been edited for presentation. [/raw] I should...

Read More

Writing JUnit Tests for an application is always a good thing. Writing tests for a Tabris or RAP application for the first time seems more challenging: You might encounter an "java.lang.IllegalStateException: No context available outside of the request processing." exception while running the tests. So, after a quick google you will find a blog post from my dear fellow Johannes that explains that you need to...

Read More

As I started in the programming industry almost a decade ago, writing tests at all was still a fairly new thing for many developers. Having been one of the early TDD advocates in my social environment, I had to recommend many best practices and books to students and colleagues. Kent Beck, Robert Martin and many other more or less public figures provided invaluable advice and...

Read More

When you run JUnit tests that open windows and dialogs, all these windows pop up on your screen like fireworks, making your desktop unusable for minutes. If you're lucky enough to work on Linux, there's an easy way to get rid of all the flickering. You can simply redirect your UI tests onto a virtual screen. I was surprised how easy that is and thought it's...

Read More