forked from handakumbura/QAPortalAutoBedAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
project and distribution files added
- Loading branch information
1 parent
8dbf244
commit da86848
Showing
171 changed files
with
9,379 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
24 changes: 24 additions & 0 deletions
24
dist/dependencies/GetTestcasesforAutoTestResultsService.dbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
12
project/QAPortalAutoTestResultService/.settings/.jsdtscope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
7 changes: 7 additions & 0 deletions
7
project/QAPortalAutoTestResultService/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
8 changes: 8 additions & 0 deletions
8
project/QAPortalAutoTestResultService/.settings/org.eclipse.wst.common.component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
12 changes: 12 additions & 0 deletions
12
...ect/QAPortalAutoTestResultService/.settings/org.eclipse.wst.common.project.facet.core.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
1 change: 1 addition & 0 deletions
1
project/QAPortalAutoTestResultService/.settings/org.eclipse.wst.jsdt.ui.superType.container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary |
1 change: 1 addition & 0 deletions
1
project/QAPortalAutoTestResultService/.settings/org.eclipse.wst.jsdt.ui.superType.name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Window |
2 changes: 2 additions & 0 deletions
2
project/QAPortalAutoTestResultService/.settings/org.eclipse.wst.validation.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
disabled=120WebContent/axis2-web | ||
eclipse.preferences.version=1 |
6 changes: 6 additions & 0 deletions
6
project/QAPortalAutoTestResultService/WebContent/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.