Hi All,
The WSO2 Automation Framework is supposed to introduce a fresh API for
providing runtime context and configuration publishing.
Though we have several concerns to be addressed with the nature of the
automation going on.
1. Automation.xml file is subjected to change with the modification of
concepts and with introducing new features and platforms to the testing
scenarios.
2. It is not practical to change the API with each time Automation.xml
changes or new elements added.
3. API should be generic and should not change.
In order to address this we have chosen a EclipseLink based solution on
MOXb/JAXB
Basically the only JAXB based solution will not help us since if
automation.xml changes we have to change the mapping classes as well. So we
are using MOXb [1] to Unmarshal the Dynamic Entities from XML using
just aXSD to address the automation.xml.
The basic API would looks like follows as directly called by DynamicEntities of
MOXb.
DynamicEntity autoElement = (DynamicEntity)
unmarshaller.unmarshal(xmlInputStream);
DynamicEntity config = (DynamicEntity) autoElement.get(
"platform");
String env = config.get("executionEnvironment");
Is there is any other methods to handle that and i am appreciated on the
views how the API should simplify from basic DynamicEntity interface.
[1].
http://www.eclipse.org/eclipselink/documentation/2.4/solutions/jpatoxml006.htm#BEIGCBBH
Thank You,
Dharshana
--
Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : [email protected] <[email protected]>
Tel : +94 11 214 5345
Fax :+94 11 2145300
cell : +94772202595
blog : http://dharshanaw.blogspot.com
lean . enterprise . middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev