aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/projectComparison/ProjectComparisonTest
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-23 21:31:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-06-25 23:42:50 +0200
commit70b6899988da0d2ba0a39b846e4f1bd3fa27304f (patch)
tree1ac093a87e0fba6b07c6feb6aceae89bdd9663cf /tests/src/test/resources/projectComparison/ProjectComparisonTest
parent5dd574819854e9ce7e2f4e181e78153a7ecbf828 (diff)
downloadsonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.tar.gz
sonarqube-70b6899988da0d2ba0a39b846e4f1bd3fa27304f.zip
Move integration tests to directory tests/
Diffstat (limited to 'tests/src/test/resources/projectComparison/ProjectComparisonTest')
-rw-r--r--tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-metrics.html39
-rw-r--r--tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-projects.html44
-rw-r--r--tests/src/test/resources/projectComparison/ProjectComparisonTest/should-display-basic-set-of-metrics.html24
-rw-r--r--tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-metrics.html69
-rw-r--r--tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-projects.html54
-rw-r--r--tests/src/test/resources/projectComparison/ProjectComparisonTest/should-not-add-differential-metrics.html44
6 files changed, 274 insertions, 0 deletions
diff --git a/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-metrics.html b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-metrics.html
new file mode 100644
index 00000000000..ab7758bd71a
--- /dev/null
+++ b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-metrics.html
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>should-add-metrics</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/comparison/index</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>assertNotText</td>
+ <td>comparison-page</td>
+ <td>*Major issues*</td>
+ </tr>
+ <tr>
+ <td>waitForElementPresent</td>
+ <td>new_metric</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>typeAndWait</td>
+ <td>new_metric</td>
+ <td>major_violations</td>
+ </tr>
+ <tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Lines of Code*Complexity*Comments (%)*Duplicated Lines (%)*Issues*Coverage*Major Issues*</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
diff --git a/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-projects.html b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-projects.html
new file mode 100644
index 00000000000..18c882331ad
--- /dev/null
+++ b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-add-projects.html
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>should-add-projects</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/comparison/index</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>new_resource</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>new_resource</td>
+ <td>project-comparison-test-project</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//option[text()='1.0-SNAPSHOT']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>selectAndWait</td>
+ <td>new_version</td>
+ <td>1.0-SNAPSHOT</td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>id=content</td>
+ <td>*ProjectComparisonTest Project*1.0-SNAPSHOT*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-display-basic-set-of-metrics.html b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-display-basic-set-of-metrics.html
new file mode 100644
index 00000000000..3a8e1256198
--- /dev/null
+++ b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-display-basic-set-of-metrics.html
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>should-display-basic-set-of-metrics</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/comparison/index</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>id=content</td>
+ <td>*Lines of Code*Complexity*Comments (%)*Duplicated Lines (%)*Issues*Coverage*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-metrics.html b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-metrics.html
new file mode 100644
index 00000000000..3b89b4af128
--- /dev/null
+++ b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-metrics.html
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>should-move-and-remove-metrics</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/comparison/index</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Lines of Code*Complexity*Comments (%)*Duplicated Lines (%)*Issues*Coverage*</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>down-0</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Complexity*Lines of Code*Comments (%)*Duplicated Lines (%)*Issues*Coverage*</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>up-5</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Complexity*Lines of Code*Comments (%)*Duplicated Lines (%)*Coverage*Issues*</td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*%*</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>del-m-2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>del-m-2</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Complexity*Lines of Code*Coverage*Issues*</td>
+</tr>
+<tr>
+ <td>assertNotText</td>
+ <td>comparison-page</td>
+ <td>*%*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-projects.html b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-projects.html
new file mode 100644
index 00000000000..f7d71dbfd2f
--- /dev/null
+++ b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-move-and-remove-projects.html
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>should-move-and-remove-projects</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/comparison/index</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>new_resource</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>new_resource</td>
+ <td>project-comparison-test-project</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//option[text()='1.0-SNAPSHOT']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>selectAndWait</td>
+ <td>new_version</td>
+ <td>1.0-SNAPSHOT</td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>id=content</td>
+ <td>*ProjectComparisonTest Project*1.0-SNAPSHOT*</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>del-r-0</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertNotText</td>
+ <td>id=content</td>
+ <td>*Sample*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-not-add-differential-metrics.html b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-not-add-differential-metrics.html
new file mode 100644
index 00000000000..ff433b66005
--- /dev/null
+++ b/tests/src/test/resources/projectComparison/ProjectComparisonTest/should-not-add-differential-metrics.html
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>should-not-add-differential-metrics</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/comparison/index</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Lines of Code*Complexity*Comments (%)*Duplicated Lines (%)*Issues*Coverage*</td>
+ </tr>
+ <tr>
+ <td>waitForElementPresent</td>
+ <td>new_metric</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>typeAndWait</td>
+ <td>new_metric</td>
+ <td>new_violations</td>
+ </tr>
+ <tr>
+ <td>waitForText</td>
+ <td>comparison-page</td>
+ <td>*Lines of Code*Complexity*Comments (%)*Duplicated Lines (%)*Issues*Coverage*</td>
+ </tr>
+ <tr>
+ <td>assertNotText</td>
+ <td>comparison-page</td>
+ <td>*New Issues*</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>