]> source.dussan.org Git - sonarqube.git/commitdiff
move ProjectOverviewTest under projectServices
authorStas Vilchik <vilchiks@gmail.com>
Mon, 28 Dec 2015 10:40:50 +0000 (11:40 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 28 Dec 2015 10:40:50 +0000 (11:40 +0100)
it/it-tests/src/test/java/it/Category1Suite.java
it/it-tests/src/test/java/it/projectOverview/ProjectOverviewTest.java [deleted file]
it/it-tests/src/test/java/it/projectServices/ProjectOverviewTest.java [new file with mode: 0644]
it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_it_coverage_on_project_overview.html [deleted file]
it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_overall_coverage_on_project_overview.html [deleted file]
it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_project_overview_after_first_analysis.html [deleted file]
it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_ut_coverage_on_project_overview.html [deleted file]
it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_it_coverage_on_project_overview.html [new file with mode: 0644]
it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_overall_coverage_on_project_overview.html [new file with mode: 0644]
it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_project_overview_after_first_analysis.html [new file with mode: 0644]
it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_ut_coverage_on_project_overview.html [new file with mode: 0644]

index b1af8a9d62bfb6adcf88f4c3161a3768559d96d5..aa44a04870de87424093fbd2a5a72e433a442899 100644 (file)
@@ -56,7 +56,7 @@ import it.projectAdministration.BackgroundTasksTest;
 import it.projectAdministration.BulkDeletionTest;
 import it.projectAdministration.ProjectAdministrationTest;
 import it.projectServices.ProjectCodeTest;
-import it.projectOverview.ProjectOverviewTest;
+import it.projectServices.ProjectOverviewTest;
 import it.qualityGate.QualityGateNotificationTest;
 import it.qualityGate.QualityGateTest;
 import it.qualityGate.QualityGateUiTest;
diff --git a/it/it-tests/src/test/java/it/projectOverview/ProjectOverviewTest.java b/it/it-tests/src/test/java/it/projectOverview/ProjectOverviewTest.java
deleted file mode 100644 (file)
index 9e3ac11..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package it.projectOverview;
-
-import com.sonar.orchestrator.Orchestrator;
-import com.sonar.orchestrator.build.SonarRunner;
-import com.sonar.orchestrator.selenium.Selenese;
-import it.Category1Suite;
-import org.junit.ClassRule;
-import org.junit.Test;
-import util.selenium.SeleneseTest;
-
-import static util.ItUtils.projectDir;
-
-public class ProjectOverviewTest {
-
-  @ClassRule
-  public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR;
-
-  @Test
-  public void test_project_overview_after_first_analysis() throws Exception {
-    executeBuild("shared/xoo-sample", "project-for-overview", "Project For Overview");
-
-    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_project_overview_after_first_analysis",
-      "/projectOverview/ProjectOverviewTest/test_project_overview_after_first_analysis.html"
-    ).build();
-    new SeleneseTest(selenese).runOn(orchestrator);
-  }
-
-  @Test
-  public void test_ut_coverage_on_project_overview() throws Exception {
-    executeBuild("testing/xoo-sample-ut-coverage", "project-for-overview-ut-coverage", "Project For Overview UT");
-
-    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_ut_coverage_on_project_overview",
-      "/projectOverview/ProjectOverviewTest/test_ut_coverage_on_project_overview.html"
-    ).build();
-    new SeleneseTest(selenese).runOn(orchestrator);
-  }
-
-  @Test
-  public void test_it_coverage_on_project_overview() throws Exception {
-    executeBuild("testing/xoo-sample-it-coverage", "project-for-overview-it-coverage", "Project For Overview IT");
-
-    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_it_coverage_onfi_project_overview",
-      "/projectOverview/ProjectOverviewTest/test_it_coverage_on_project_overview.html"
-    ).build();
-    new SeleneseTest(selenese).runOn(orchestrator);
-  }
-
-  @Test
-  public void test_overall_coverage_on_project_overview() throws Exception {
-    executeBuild("testing/xoo-sample-overall-coverage", "project-for-overview-overall-coverage", "Project For Overview Overall");
-
-    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_overall_coverage_on_project_overview",
-      "/projectOverview/ProjectOverviewTest/test_overall_coverage_on_project_overview.html"
-    ).build();
-    new SeleneseTest(selenese).runOn(orchestrator);
-  }
-
-  private void executeBuild(String projectLocation, String projectKey, String projectName) {
-    orchestrator.executeBuild(
-      SonarRunner.create(projectDir(projectLocation))
-        .setProjectKey(projectKey)
-        .setProjectName(projectName)
-    );
-  }
-
-}
diff --git a/it/it-tests/src/test/java/it/projectServices/ProjectOverviewTest.java b/it/it-tests/src/test/java/it/projectServices/ProjectOverviewTest.java
new file mode 100644 (file)
index 0000000..857c140
--- /dev/null
@@ -0,0 +1,85 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+package it.projectServices;
+
+import com.sonar.orchestrator.Orchestrator;
+import com.sonar.orchestrator.build.SonarRunner;
+import com.sonar.orchestrator.selenium.Selenese;
+import it.Category1Suite;
+import org.junit.ClassRule;
+import org.junit.Test;
+import util.selenium.SeleneseTest;
+
+import static util.ItUtils.projectDir;
+
+public class ProjectOverviewTest {
+
+  @ClassRule
+  public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR;
+
+  @Test
+  public void test_project_overview_after_first_analysis() throws Exception {
+    executeBuild("shared/xoo-sample", "project-for-overview", "Project For Overview");
+
+    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_project_overview_after_first_analysis",
+      "/projectServices/ProjectOverviewTest/test_project_overview_after_first_analysis.html"
+    ).build();
+    new SeleneseTest(selenese).runOn(orchestrator);
+  }
+
+  @Test
+  public void test_ut_coverage_on_project_overview() throws Exception {
+    executeBuild("testing/xoo-sample-ut-coverage", "project-for-overview-ut-coverage", "Project For Overview UT");
+
+    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_ut_coverage_on_project_overview",
+      "/projectServices/ProjectOverviewTest/test_ut_coverage_on_project_overview.html"
+    ).build();
+    new SeleneseTest(selenese).runOn(orchestrator);
+  }
+
+  @Test
+  public void test_it_coverage_on_project_overview() throws Exception {
+    executeBuild("testing/xoo-sample-it-coverage", "project-for-overview-it-coverage", "Project For Overview IT");
+
+    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_it_coverage_onfi_project_overview",
+      "/projectServices/ProjectOverviewTest/test_it_coverage_on_project_overview.html"
+    ).build();
+    new SeleneseTest(selenese).runOn(orchestrator);
+  }
+
+  @Test
+  public void test_overall_coverage_on_project_overview() throws Exception {
+    executeBuild("testing/xoo-sample-overall-coverage", "project-for-overview-overall-coverage", "Project For Overview Overall");
+
+    Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("test_overall_coverage_on_project_overview",
+      "/projectServices/ProjectOverviewTest/test_overall_coverage_on_project_overview.html"
+    ).build();
+    new SeleneseTest(selenese).runOn(orchestrator);
+  }
+
+  private void executeBuild(String projectLocation, String projectKey, String projectName) {
+    orchestrator.executeBuild(
+      SonarRunner.create(projectDir(projectLocation))
+        .setProjectKey(projectKey)
+        .setProjectName(projectName)
+    );
+  }
+
+}
diff --git a/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_it_coverage_on_project_overview.html b/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_it_coverage_on_project_overview.html
deleted file mode 100644 (file)
index f578896..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<?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"/>
-  <link rel="selenium.base" href="http://localhost:49506"/>
-  <title>test_project_overview_after_first_analysis</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-  <thead>
-  <tr>
-    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
-  </tr>
-  </thead>
-  <tbody>
-  <tr>
-       <td>open</td>
-       <td>/sonar/overview?id=project-for-overview-it-coverage</td>
-       <td></td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*50.0%*Coverage*</td>
-</tr>
-<tr>
-       <td>open</td>
-       <td>/sonar/overview/coverage?id=project-for-overview-it-coverage</td>
-       <td></td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT line coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT condition coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT uncovered conditions*1*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT uncovered lines*2*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Size*IT uncovered lines*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Size*Lines of code*Color*IT coverage*</td>
-</tr>
-</tbody>
-</table>
-</body>
-</html>
diff --git a/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_overall_coverage_on_project_overview.html b/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_overall_coverage_on_project_overview.html
deleted file mode 100644 (file)
index 96b6bba..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<?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"/>
-  <link rel="selenium.base" href="http://localhost:49506"/>
-  <title>test_project_overview_after_first_analysis</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-  <thead>
-  <tr>
-    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
-  </tr>
-  </thead>
-  <tbody>
-  <tr>
-       <td>open</td>
-       <td>/sonar/overview?id=project-for-overview-overall-coverage</td>
-       <td></td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*62.5%*Coverage*</td>
-</tr>
-<tr>
-       <td>open</td>
-       <td>/sonar/overview/coverage?id=project-for-overview-overall-coverage</td>
-       <td></td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Overall coverage*62.5%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Overall line coverage*75.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Overall condition coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Uncovered conditions*3*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT uncovered conditions*3*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Overall uncovered conditions*2*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Uncovered lines*2*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*IT uncovered lines*2*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Overall uncovered lines*1*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Size*Overall uncovered lines*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Size*Lines of code*Color*Overall coverage*</td>
-</tr>
-</tbody>
-</table>
-</body>
-</html>
diff --git a/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_project_overview_after_first_analysis.html b/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_project_overview_after_first_analysis.html
deleted file mode 100644 (file)
index ce6da0c..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?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"/>
-  <link rel="selenium.base" href="http://localhost:49506"/>
-  <title>test_project_overview_after_first_analysis</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-  <thead>
-  <tr>
-    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
-  </tr>
-  </thead>
-  <tbody>
-  <tr>
-    <td>open</td>
-    <td>/sonar/overview?id=project-for-overview</td>
-    <td></td>
-  </tr>
-  <tr>
-    <td>waitForText</td>
-    <td>id=content</td>
-    <td>*Quality Gate*Passed*</td>
-  </tr>
-  <tr>
-    <td>waitForText</td>
-    <td>id=content</td>
-    <td>*A*0*Debt*0*Issues*</td>
-  </tr>
-  <tr>
-    <td>waitForText</td>
-    <td>id=content</td>
-    <td>*0.0%*Duplications*0*Duplicated Blocks*</td>
-  </tr>
-  <tr>
-    <td>waitForText</td>
-    <td>id=content</td>
-    <td>*13*Lines of Code*</td>
-  </tr>
-  <tr>
-    <td>assertNotText</td>
-    <td>id=content</td>
-    <td>*Coverage*</td>
-  </tr>
-  <tr>
-    <td>waitForText</td>
-    <td>id=content</td>
-    <td>*Quality Gate*SonarQube way*</td>
-  </tr>
-  <tr>
-    <td>waitForText</td>
-    <td>id=content</td>
-    <td>*Quality Profiles*Xoo*Basic*</td>
-  </tr>
-
-  </tbody>
-</table>
-</body>
-</html>
diff --git a/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_ut_coverage_on_project_overview.html b/it/it-tests/src/test/resources/projectOverview/ProjectOverviewTest/test_ut_coverage_on_project_overview.html
deleted file mode 100644 (file)
index 1dd3c9c..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<?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"/>
-  <link rel="selenium.base" href="http://localhost:49506"/>
-  <title>test_project_overview_after_first_analysis</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-  <thead>
-  <tr>
-    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
-  </tr>
-  </thead>
-  <tbody>
-  <tr>
-       <td>open</td>
-       <td>/sonar/overview?id=project-for-overview-ut-coverage</td>
-       <td></td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*50.0%*Coverage*</td>
-</tr>
-<tr>
-       <td>open</td>
-       <td>/sonar/overview/coverage?id=project-for-overview-ut-coverage</td>
-       <td></td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Line coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Condition coverage*50.0%*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Lines to cover*4*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Uncovered conditions*1*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Uncovered lines*2*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Size*Uncovered lines*</td>
-</tr>
-<tr>
-       <td>waitForText</td>
-       <td>id=content</td>
-       <td>*Size*Lines of code*Color*Coverage*</td>
-</tr>
-</tbody>
-</table>
-</body>
-</html>
diff --git a/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_it_coverage_on_project_overview.html b/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_it_coverage_on_project_overview.html
new file mode 100644 (file)
index 0000000..f578896
--- /dev/null
@@ -0,0 +1,70 @@
+<?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"/>
+  <link rel="selenium.base" href="http://localhost:49506"/>
+  <title>test_project_overview_after_first_analysis</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+  <thead>
+  <tr>
+    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
+  </tr>
+  </thead>
+  <tbody>
+  <tr>
+       <td>open</td>
+       <td>/sonar/overview?id=project-for-overview-it-coverage</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*50.0%*Coverage*</td>
+</tr>
+<tr>
+       <td>open</td>
+       <td>/sonar/overview/coverage?id=project-for-overview-it-coverage</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT line coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT condition coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT uncovered conditions*1*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT uncovered lines*2*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Size*IT uncovered lines*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Size*Lines of code*Color*IT coverage*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_overall_coverage_on_project_overview.html b/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_overall_coverage_on_project_overview.html
new file mode 100644 (file)
index 0000000..96b6bba
--- /dev/null
@@ -0,0 +1,90 @@
+<?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"/>
+  <link rel="selenium.base" href="http://localhost:49506"/>
+  <title>test_project_overview_after_first_analysis</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+  <thead>
+  <tr>
+    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
+  </tr>
+  </thead>
+  <tbody>
+  <tr>
+       <td>open</td>
+       <td>/sonar/overview?id=project-for-overview-overall-coverage</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*62.5%*Coverage*</td>
+</tr>
+<tr>
+       <td>open</td>
+       <td>/sonar/overview/coverage?id=project-for-overview-overall-coverage</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Overall coverage*62.5%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Overall line coverage*75.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Overall condition coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Uncovered conditions*3*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT uncovered conditions*3*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Overall uncovered conditions*2*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Uncovered lines*2*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*IT uncovered lines*2*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Overall uncovered lines*1*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Size*Overall uncovered lines*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Size*Lines of code*Color*Overall coverage*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_project_overview_after_first_analysis.html b/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_project_overview_after_first_analysis.html
new file mode 100644 (file)
index 0000000..ce6da0c
--- /dev/null
@@ -0,0 +1,61 @@
+<?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"/>
+  <link rel="selenium.base" href="http://localhost:49506"/>
+  <title>test_project_overview_after_first_analysis</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+  <thead>
+  <tr>
+    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
+  </tr>
+  </thead>
+  <tbody>
+  <tr>
+    <td>open</td>
+    <td>/sonar/overview?id=project-for-overview</td>
+    <td></td>
+  </tr>
+  <tr>
+    <td>waitForText</td>
+    <td>id=content</td>
+    <td>*Quality Gate*Passed*</td>
+  </tr>
+  <tr>
+    <td>waitForText</td>
+    <td>id=content</td>
+    <td>*A*0*Debt*0*Issues*</td>
+  </tr>
+  <tr>
+    <td>waitForText</td>
+    <td>id=content</td>
+    <td>*0.0%*Duplications*0*Duplicated Blocks*</td>
+  </tr>
+  <tr>
+    <td>waitForText</td>
+    <td>id=content</td>
+    <td>*13*Lines of Code*</td>
+  </tr>
+  <tr>
+    <td>assertNotText</td>
+    <td>id=content</td>
+    <td>*Coverage*</td>
+  </tr>
+  <tr>
+    <td>waitForText</td>
+    <td>id=content</td>
+    <td>*Quality Gate*SonarQube way*</td>
+  </tr>
+  <tr>
+    <td>waitForText</td>
+    <td>id=content</td>
+    <td>*Quality Profiles*Xoo*Basic*</td>
+  </tr>
+
+  </tbody>
+</table>
+</body>
+</html>
diff --git a/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_ut_coverage_on_project_overview.html b/it/it-tests/src/test/resources/projectServices/ProjectOverviewTest/test_ut_coverage_on_project_overview.html
new file mode 100644 (file)
index 0000000..1dd3c9c
--- /dev/null
@@ -0,0 +1,75 @@
+<?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"/>
+  <link rel="selenium.base" href="http://localhost:49506"/>
+  <title>test_project_overview_after_first_analysis</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+  <thead>
+  <tr>
+    <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td>
+  </tr>
+  </thead>
+  <tbody>
+  <tr>
+       <td>open</td>
+       <td>/sonar/overview?id=project-for-overview-ut-coverage</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*50.0%*Coverage*</td>
+</tr>
+<tr>
+       <td>open</td>
+       <td>/sonar/overview/coverage?id=project-for-overview-ut-coverage</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Line coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Condition coverage*50.0%*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Lines to cover*4*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Uncovered conditions*1*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Uncovered lines*2*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Size*Uncovered lines*</td>
+</tr>
+<tr>
+       <td>waitForText</td>
+       <td>id=content</td>
+       <td>*Size*Lines of code*Color*Coverage*</td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>