Over a million developers have joined DZone.

Xtext + RedView == Businessapptester

DZone's Guide to

Xtext + RedView == Businessapptester

· Mobile Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

Last months florian pirchner was working on a customer project, where redView and xtext are used to simplify testing of an ERP solution.

and as always usual for florian and me: there will be something open sourced ;-)

What was the problem of our customer ? there are many modifications and configuration done for  their ERP solution and the ERP vendor couldn’t guarantee that new releases of the software will work well together with the customer’s customizations.

So they have created an extra test database (that’s always a good idea) and the business departments have created huge Excel sheets to define all the use-cases to be tested against the new release. (per ex. if customer x gets 3 parts of item y the price must be n EUR)

But manually testing these things is very slow, time-consuming and error prone. They also thought about writing Unit tests (this is possible because they bought the SDK of the ERP solution). Unit tests are great and can be automated – that’s good. But now they always need help from IT or developers and all the business use cases are hidden inside many test classes. Also it’s boring to write many test classes testing the same behaviour with different data.


The BusinessAppTester will simplify writing those test classes. Using Xtext you can design the data schema to be used by a bunch of test runs easy. The corresponding Java code to inject the data was automagically be generated.

Using redView together with Xtext you get the formulas to enter the different data on the fly dynamically rendered.

Because it’s redView you can re-design the layout how you like it.

All is stored in EMF ecore models: redView’s view model, test schemata, test instances – and now you can use all tooling available for EMF – per ex. EMFStore or CDO to work in teams with the models.

BusinessAppTester is the first time where redView also uses EObjects as domain model – before we used EMF for the View model but only Beans or POJOs as domain models. Now you’re completely free to use the domain model you want.

Video and EclipseCon

There’s a video demonstrating BusinessAppTester: https://vimeo.com/17955045

and there’s also an EclipseCon submission: stop writing boring unit tests.

BusinessAppTester will be at EclipseLabs in january 2011 and the new redView release will be there this month.

We designed BusinessAppTester as a generic tool be used from Java Projects and also PlugIn Projects to simplify testing where you have to test against different data scenarios.

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda


Published at DZone with permission of Ekkehard Gentz, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}