Hi Charitha
On Mon, Mar 26, 2012 at 7:17 PM, Charitha Kankanamge <[email protected]>wrote:
> Test automation folks,
>
> The automatic deployment of data services through the configuration given
> in testconfig.xml is having some issues.
>
> 1. Deployer assumes there is one data source config in dbs (see
> /home/charitha/projects/system-test-framework-trunk/system-test-framework/core/org.wso2.automation.platform.core/src/main/java/org/wso2/platform/test/core/utils/dssutils/SqlDataSourceUtil.java#createArtifact).
> Therefore, if there are multiple data source configurations such as jdbc,
> csv, gspread etc.. we cannot use auto deployer OOTB.
> 2. In testconfig.xml, we can have only one dependency_location for a
> particular data service. Therefore, when we have data services with
> multiple data source configs, all dependent resources have to be included
> in one artifact directory. In a way, this seems to be valid but we may need
> to look if there is a better approach.
>
Issue[2] is fixed.
Added a attribute value location to artifact and dependencies. so location
can be defined itself. use following configuration to add add multiple
dependencies in any location.
<scenario
testName="org.wso2.automation.common.test.dss.service.DataServiceTest">
<product name="DSS">
<artifacts userId="3">
<artifact name="DataService.dbs" type="dbs"
location="rdbms/MySql">
<dependency name="CreateTables.sql"
dependencyType="sql"location="sql/MySql
"/>
<dependency name="Offices.sql" dependencyType="sql"
location="sql/MySql"/>
<dependency name="Products.csv" dependencyType="csv"
location="resources"/>
</artifact>
</artifacts>
</product>
</scenario>
Thanks
Nuwanw
>
> On a separate note, we should have a JIRA project to report
> issues/improvements related to Clarity (system-test-framework).
>
> Thanks!
> Charitha
>
--
Nuwan Wimalasekara
Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev