Skip to content

Commit

Permalink
project and distribution files added
Browse files Browse the repository at this point in the history
  • Loading branch information
handakumbura committed Apr 10, 2014
1 parent 8dbf244 commit da86848
Show file tree
Hide file tree
Showing 171 changed files with 9,379 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
::: QAPortalAutoBedAPI :::
--------- QAPortalAutoBedAPI ------------

copy jars to WEB-INF/lib, deploye the 5 data services and deploye the QAPortalAutoTestResultService.


-----------------------------------------
files included

> dist - distribution
--> dependencies - jars and data services
--> QAPortalAutoTestResultService.aar - service
> project - the eclipse project for the QAPortalAutoTestResultService
Binary file added dist/QAPortalAutoTestResultService.aar
Binary file not shown.
24 changes: 24 additions & 0 deletions dist/dependencies/GetTestcasesforAutoTestResultsService.dbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<data name="GetTestcasesforAutoTestResultsService">
<description>returns the testcases that should be modified according to the automated test bed results provided.</description>
<config id="QADB">
<property name="driverClassName">com.mysql.jdbc.Driver</property>
<property name="url">jdbc:mysql://localhost:3306/WSO2_QA_PORTAL_DB</property>
<property name="username">root</property>
<property name="password">root</property>
</config>
<query id="getTestCasesQuery" useConfig="QADB">
<sql>SELECT WSO2_QAP_TEST_CASE_ID FROM WSO2_QA_PORTAL_DB.WSO2_QAP_TEST_CASE WHERE (WSO2_QAP_AUTO_TEST_CLASS_ID=(SELECT WSO2_QAP_AUTO_TEST_CLASS_ID FROM WSO2_QAP_AUTO_TEST_CLASS WHERE WSO2_QAP_AUTO_TEST_CLASS_NAME=?)) AND (WSO2_QAP_TEST_CASE_ID IN (SELECT WSO2_QAP_TEST_CASE_ID FROM WSO2_QA_PORTAL_DB.WSO2_QAP_TEST_SCENARIO_TEST_CASE_MAPPING WHERE WSO2_QAP_TEST_SCENARIO_ID IN (SELECT WSO2_QAP_TEST_SCENARIO_ID FROM WSO2_QA_PORTAL_DB.WSO2_QAP_TEST_SUIT_TEST_SCENARIO_MAPPING WHERE WSO2_QAP_TEST_SUIT_ID IN (SELECT WSO2_QAP_TEST_SUIT_ID FROM WSO2_QA_PORTAL_DB.WSO2_QAP_TESTPLAN_MAPPING_TESTSUIT WHERE WSO2_QAP_TEST_PLAN_ID=(SELECT WSO2_QAP_TEST_PLAN_ID FROM WSO2_QAP_PRODUCT_BUILD WHERE WSO2_QAP_BUILD_NAME=?)))));</sql>
<result element="WSO2_QAP_TEST_CASE_Collection" rowName="WSO2_QAP_TEST_CASE">
<element column="WSO2_QAP_TEST_CASE_ID" name="WSO2_QAP_TEST_CASE_ID" xsdType="string"/>
</result>
<param name="WSO2_QAP_AUTO_TEST_CLASS_NAME" sqlType="STRING"/>
<param name="WSO2_QAP_BUILD_NAME" sqlType="STRING"/>
</query>
<operation name="getTestCases">
<description>returns testcases maching underlying query.requries testcase name and build name as input parameters. </description>
<call-query href="getTestCasesQuery">
<with-param name="WSO2_QAP_AUTO_TEST_CLASS_NAME" query-param="WSO2_QAP_AUTO_TEST_CLASS_NAME"/>
<with-param name="WSO2_QAP_BUILD_NAME" query-param="WSO2_QAP_BUILD_NAME"/>
</call-query>
</operation>
</data>
19 changes: 19 additions & 0 deletions dist/dependencies/InsertBuildMappingTestResult.dbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<data name="InsertBuildMappingTestResult">
<config id="QADB">
<property name="driverClassName">com.mysql.jdbc.Driver</property>
<property name="url">jdbc:mysql://localhost:3306/WSO2_QA_PORTAL_DB</property>
<property name="username">root</property>
<property name="password">root</property>
</config>
<query id="insertBuildMappingTestResult" useConfig="QADB">
<sql>INSERT INTO WSO2_QAP_BUILD_MAPPING_TESTRESULT VALUES ((SELECT WSO2_QAP_BUILD_ID FROM WSO2_QAP_PRODUCT_BUILD WHERE WSO2_QAP_BUILD_NAME=?),?)</sql>
<param name="WSO2_QAP_BUILD_NAME" sqlType="STRING"/>
<param name="WSO2_QAP_TEST_RESULT_ID" sqlType="INTEGER"/>
</query>
<operation name="insertBuildMappingTestResult">
<call-query href="insertBuildMappingTestResult">
<with-param name="WSO2_QAP_BUILD_NAME" query-param="WSO2_QAP_BUILD_NAME"/>
<with-param name="WSO2_QAP_TEST_RESULT_ID" query-param="WSO2_QAP_TEST_RESULT_ID"/>
</call-query>
</operation>
</data>
Binary file not shown.
22 changes: 22 additions & 0 deletions dist/dependencies/InsertTestResult.dbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<data name="InsertTestResult">
<config id="QADB">
<property name="driverClassName">com.mysql.jdbc.Driver</property>
<property name="url">jdbc:mysql://localhost:3306/WSO2_QA_PORTAL_DB</property>
<property name="username">root</property>
<property name="password">root</property>
</config>
<query id="InsertTestResultQuery" returnGeneratedKeys="true" useConfig="QADB">
<sql>INSERT INTO WSO2_QAP_TEST_RESULT (WSO2_QAP_TEST_CASE_ID,WSO2_QAP_TEST_STATUS,WSO2_QAP_AUTOMATION_TEST_RESULT,WSO2_QAP_TESTED_BY) VALUES (?,1,?,'n/a');</sql>
<result element="GeneratedKeys" rowName="Entry" useColumnNumbers="true">
<element column="1" name="ID" xsdType="integer"/>
</result>
<param name="WSO2_QAP_TEST_CASE_ID" sqlType="INTEGER"/>
<param name="WSO2_QAP_AUTOMATION_TEST_RESULT" sqlType="INTEGER"/>
</query>
<operation name="insertTestResult">
<call-query href="InsertTestResultQuery">
<with-param name="WSO2_QAP_TEST_CASE_ID" query-param="WSO2_QAP_TEST_CASE_ID"/>
<with-param name="WSO2_QAP_AUTOMATION_TEST_RESULT" query-param="WSO2_QAP_AUTOMATION_TEST_RESULT"/>
</call-query>
</operation>
</data>
Binary file added dist/dependencies/InsertTestResult.jar
Binary file not shown.
22 changes: 22 additions & 0 deletions dist/dependencies/TestCaseTestResultMapping.dbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<data name="TestCaseTestResultMapping">
<config id="QADB">
<property name="driverClassName">com.mysql.jdbc.Driver</property>
<property name="url">jdbc:mysql://localhost:3306/WSO2_QA_PORTAL_DB</property>
<property name="username">root</property>
<property name="password">root</property>
</config>
<query id="testCaseTestResultMappingService" useConfig="QADB">
<sql>SELECT WSO2_QAP_TEST_RESULT_ID FROM WSO2_QAP_TEST_RESULT WHERE WSO2_QAP_TEST_CASE_ID IN (?) AND WSO2_QAP_TEST_RESULT_ID IN (SELECT WSO2_QAP_TEST_RESULT_ID FROM WSO2_QAP_BUILD_MAPPING_TESTRESULT WHERE WSO2_QAP_BUILD_ID=(SELECT WSO2_QAP_BUILD_ID FROM WSO2_QAP_PRODUCT_BUILD WHERE WSO2_QAP_BUILD_NAME=?))</sql>
<result element="WSO2_QAP_TEST_RESULT_ID_Collection" rowName="WSO2_QAP_TEST_RESULT_ID">
<element column="WSO2_QAP_TEST_RESULT_ID" name="WSO2_QAP_TEST_RESULT_ID" xsdType="integer"/>
</result>
<param name="WSO2_QAP_TEST_CASE_ID" paramType="ARRAY" sqlType="INTEGER"/>
<param name="WSO2_QAP_BUILD_NAME" sqlType="STRING"/>
</query>
<operation name="getTestCaseTestResultMapping">
<call-query href="testCaseTestResultMappingService">
<with-param name="WSO2_QAP_TEST_CASE_ID" query-param="WSO2_QAP_TEST_CASE_ID"/>
<with-param name="WSO2_QAP_BUILD_NAME" query-param="WSO2_QAP_BUILD_NAME"/>
</call-query>
</operation>
</data>
Binary file added dist/dependencies/TestCaseTestResultMapping.jar
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions dist/dependencies/UpdateResultsService.dbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<data name="UpdateResultsService">
<config id="QADB">
<property name="driverClassName">com.mysql.jdbc.Driver</property>
<property name="url">jdbc:mysql://localhost:3306/WSO2_QA_PORTAL_DB</property>
<property name="username">root</property>
<property name="password">root</property>
</config>
<query id="updateResultsQuery" useConfig="QADB">
<sql>UPDATE WSO2_QAP_TEST_RESULT SET WSO2_QAP_AUTOMATION_TEST_RESULT=? WHERE WSO2_QAP_TEST_RESULT_ID IN (?)</sql>
<param name="WSO2_QAP_AUTOMATION_TEST_RESULT" sqlType="INTEGER"/>
<param name="WSO2_QAP_TEST_RESULT_ID" paramType="ARRAY" sqlType="INTEGER"/>
</query>
<operation name="updateTestResult">
<call-query href="updateResultsQuery">
<with-param name="WSO2_QAP_AUTOMATION_TEST_RESULT" query-param="WSO2_QAP_AUTOMATION_TEST_RESULT"/>
<with-param name="WSO2_QAP_TEST_RESULT_ID" query-param="WSO2_QAP_TEST_RESULT_ID"/>
</call-query>
</operation>
</data>
Binary file added dist/dependencies/UpdateTestResults.jar
Binary file not shown.
22 changes: 22 additions & 0 deletions project/QAPortalAutoTestResultService/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_51">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry exported="true" kind="lib" path="/home/dumidu/QA Portal/QAPortalSEIsAndJars/TestCasesforAutoTestBedResults.jar"/>
<classpathentry exported="true" kind="lib" path="/home/dumidu/QA Portal/QAPortalSEIsAndJars/UpdateTestResults.jar"/>
<classpathentry exported="true" kind="lib" path="/home/dumidu/QA Portal/QAPortalSEIsAndJars/TestCaseTestResultMapping.jar"/>
<classpathentry exported="true" kind="lib" path="/home/dumidu/QA Portal/QAPortalSEIsAndJars/InsertTestResult.jar"/>
<classpathentry exported="true" kind="lib" path="/home/dumidu/QA Portal/QAPortalSEIsAndJars/InsertBuildMappingTestResult.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
36 changes: 36 additions & 0 deletions project/QAPortalAutoTestResultService/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>QAPortalAutoTestResultService</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions project/QAPortalAutoTestResultService/.settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="WebContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="QAPortalAutoTestResultService">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="QAPortalAutoTestResultService"/>
<property name="java-output-path" value="/QAPortalAutoTestResultService/build/classes"/>
</wb-module>
</project-modules>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="axis2.core" version="1.1"/>
<installed facet="axis2.ext" version="1.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
disabled=120WebContent/axis2-web
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: sagara
Build-Jdk: 1.6.0_22

Loading

0 comments on commit da86848

Please sign in to comment.