Merging of Japex configuration files
By sandoz on Aug 25, 2006
I recently added a new feature to Japex for the supporting of merging configuration files. This was a feature required for a large benchmark to make it easier to handle the testing of multiple groups of tests cases without having to create a new configuration file for each group of test cases. ( This benchmark has been used to produce results for the W3C Efficient XML Interchange Working Group.)
Now you can pass more than one configuration file as arguments to japex when the '-merge' option is present, for example:
japex.sh -merge <file_1> ... <file_n>
and Japex will merge each file to produce one test suite configuration. For example, there could be one configuration file consisting of parameters and drivers and one or more configuration files consisting of test cases and Japex could be used like this:
japex.sh -merge configWithDrivers.xml testCasesGroup1.xml
I modified the Japex configuration schema so that param, driver, testCase and groups of are all root elements. This means that a group of test cases is a valid standalone Japex configuration file and it allows JAXB to easily unmarshall such configuration files.
In fact JAXB made it really easy to merge the configuration files since it was simply a matter of copying information from one JAXB bean to another one. Now JAXB is also used to create the configuration file that is stored with the Japex reports: it is just a simple marshal of the JAXB bean representing the test suite.