Xtext + RedView == Businessapptester
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Ekkehard Gentz, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.