Thanks NuwanW for the quick response. I will try out that option.

On Sun, Feb 15, 2015 at 12:44 AM, Nuwan Wimalasekara <[email protected]>
wrote:

> Hi Chanaka,
> Those classes are no longer use in ESB 4.9.0 with new test framework.
> Please use  below classes to get the datasource configuration defined in
> automation.xml
>
>  AutomationContext automationContext = new AutomationContext();
>
>
>  
> automationContext.getConfigurationValue(XPathConstants.DATA_SOURCE_DB_PASSWORD);
>  automationContext.getConfigurationValue(XPathConstants.DATA_SOURCE_URL);
>
>  
> automationContext.getConfigurationValue(XPathConstants.DATA_SOURCE_DRIVER_CLASS_NAME);
>
>  
> automationContext.getConfigurationValue(XPathConstants.DATA_SOURCE_DB_USER_NAME);
>
> You can define any number of data source in automation.xml and based on
> the xpath , you can get the particular configuration values.
>
> Thanks,
> Nuwanw
>
>
> On Sat, Feb 14, 2015 at 6:19 AM, Chanaka Fernando <[email protected]>
> wrote:
>
>> Hi Dev,
>>
>> During the ESB 4.9.0 release effort, we have come across the below
>> reference to the older automation framework classes inside dblookup and
>> dbreport mediator test classes.
>>
>> *private final DataSource dbConfig = new
>> EnvironmentBuilder().getFrameworkSettings().getDataSource();*
>>
>> But the respective classes are not available in the test framework 4.3.0
>>
>>
>> *import
>> org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder;import
>> org.wso2.carbon.automation.core.utils.frameworkutils.productvariables.DataSource;*
>>
>> Appreciate if someone could point me to the new implementations of these
>> classes such that I can use for the DB mediator test cases?
>>
>> Thanks,
>> Chanaka
>>
>> --
>> --
>> Chanaka Fernando
>> Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to