diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-03 17:34:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 17:34:38 +0100 |
commit | 4c5465f67fdb404bbe983a53c753d1253785661a (patch) | |
tree | 836a5922a17efb401b9a6437b8e9b7dae5cdc93c /it | |
parent | f0774ea5179b30cb9cae1a3ce9e9c72eb7154156 (diff) | |
download | sonarqube-4c5465f67fdb404bbe983a53c753d1253785661a.tar.gz sonarqube-4c5465f67fdb404bbe983a53c753d1253785661a.zip |
drop global dashboards and measures from ui (#1353)
Diffstat (limited to 'it')
71 files changed, 5 insertions, 5084 deletions
diff --git a/it/it-tests/src/test/java/it/Category1Suite.java b/it/it-tests/src/test/java/it/Category1Suite.java index b803337f5dc..efc2f42d24a 100644 --- a/it/it-tests/src/test/java/it/Category1Suite.java +++ b/it/it-tests/src/test/java/it/Category1Suite.java @@ -21,22 +21,17 @@ package it; import com.sonar.orchestrator.Orchestrator; import it.administration.UsersPageTest; -import it.authorisation.DashboardSharingPermissionTest; import it.authorisation.ExecuteAnalysisPermissionTest; import it.authorisation.IssuePermissionTest; import it.authorisation.PermissionSearchTest; import it.authorisation.ProvisioningPermissionTest; import it.authorisation.QualityProfileAdminPermissionTest; -import it.authorisation.SystemAdminPermissionTest; import it.customMeasure.CustomMeasuresTest; import it.i18n.I18nTest; import it.measure.MeasuresWsTest; import it.measure.ProjectDashboardTest; import it.measure.ProjectMeasuresPageTest; -import it.measure.ProjectWidgetsTest; -import it.measureFilter.MeasureFiltersTest; import it.measureHistory.DifferentialPeriodsTest; -import it.measureHistory.HistoryUiTest; import it.measureHistory.SincePreviousVersionHistoryTest; import it.measureHistory.SinceXDaysHistoryTest; import it.measureHistory.TimeMachineTest; @@ -82,24 +77,19 @@ import static util.ItUtils.xooPlugin; QualityGateUiTest.class, QualityGateNotificationTest.class, // authorisation - DashboardSharingPermissionTest.class, ExecuteAnalysisPermissionTest.class, IssuePermissionTest.class, PermissionSearchTest.class, ProvisioningPermissionTest.class, QualityProfileAdminPermissionTest.class, - SystemAdminPermissionTest.class, // custom measure CustomMeasuresTest.class, // measure ProjectMeasuresPageTest.class, ProjectDashboardTest.class, - ProjectWidgetsTest.class, - MeasureFiltersTest.class, MeasuresWsTest.class, // measure history DifferentialPeriodsTest.class, - HistoryUiTest.class, SincePreviousVersionHistoryTest.class, SinceXDaysHistoryTest.class, TimeMachineTest.class, diff --git a/it/it-tests/src/test/java/it/Category2Suite.java b/it/it-tests/src/test/java/it/Category2Suite.java index e30b9d043f6..442918c821f 100644 --- a/it/it-tests/src/test/java/it/Category2Suite.java +++ b/it/it-tests/src/test/java/it/Category2Suite.java @@ -46,7 +46,6 @@ import it.qualityModel.SecurityMeasureTest; import it.qualityModel.TechnicalDebtInIssueChangelogTest; import it.qualityModel.TechnicalDebtMeasureVariationTest; import it.qualityModel.TechnicalDebtTest; -import it.qualityModel.TechnicalDebtWidgetTest; import it.scm.ScmTest; import it.test.CoverageTest; import it.test.CoverageTrackingTest; @@ -95,8 +94,7 @@ import static util.ItUtils.xooPlugin; SecurityMeasureTest.class, TechnicalDebtInIssueChangelogTest.class, TechnicalDebtMeasureVariationTest.class, - TechnicalDebtTest.class, - TechnicalDebtWidgetTest.class + TechnicalDebtTest.class }) public class Category2Suite { diff --git a/it/it-tests/src/test/java/it/Category4Suite.java b/it/it-tests/src/test/java/it/Category4Suite.java index fe2aa8342cf..0924e5bd957 100644 --- a/it/it-tests/src/test/java/it/Category4Suite.java +++ b/it/it-tests/src/test/java/it/Category4Suite.java @@ -24,7 +24,6 @@ import it.analysisExclusion.FileExclusionsTest; import it.analysisExclusion.IssueExclusionsTest; import it.component.ComponentsWsTest; import it.component.ProjectSearchTest; -import it.componentDashboard.DashboardTest; import it.componentSearch.AllProjectsTest; import it.dbCleaner.PurgeTest; import it.duplication.CrossProjectDuplicationsOnRemoveFileTest; @@ -84,8 +83,6 @@ import static util.ItUtils.xooPlugin; PurgeTest.class, // project event EventTest.class, - // component dashboard - DashboardTest.class, // project comparison ProjectComparisonTest.class, // project search @@ -116,9 +113,6 @@ public class Category4Suite { // Used in OAuth2IdentityProviderTest .addPlugin(pluginArtifact("oauth2-auth-plugin")) - // Used in DashboardTest - .addPlugin(pluginArtifact("dashboard-plugin")) - // Used in UiExtensionsTest .addPlugin(pluginArtifact("ui-extensions-plugin")) diff --git a/it/it-tests/src/test/java/it/authorisation/DashboardSharingPermissionTest.java b/it/it-tests/src/test/java/it/authorisation/DashboardSharingPermissionTest.java deleted file mode 100644 index 9eb3496f0b1..00000000000 --- a/it/it-tests/src/test/java/it/authorisation/DashboardSharingPermissionTest.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.authorisation; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category1Suite; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Test; -import org.sonarqube.ws.client.permission.PermissionsService; -import util.user.UserRule; - -import static util.ItUtils.newAdminWsClient; - -public class DashboardSharingPermissionTest { - - @ClassRule - public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; - - @ClassRule - public static UserRule userRule = UserRule.from(orchestrator); - - static String DASHBOARD_USER = "dashboard_user"; - static String CAN_SHARE_DASHBOARDS = "can_share_dashboards"; - - static PermissionsService permissionsWsClient; - - @BeforeClass - public static void setUpUsers() { - orchestrator.resetData(); - - permissionsWsClient = newAdminWsClient(orchestrator).permissions(); - - userRule.createUser(DASHBOARD_USER, "password"); - userRule.createUser(CAN_SHARE_DASHBOARDS, "password"); - } - - @AfterClass - public static void clearUsers() throws Exception { - userRule.resetUsers(); - } - - @Before - public void resetData() throws Exception { - orchestrator.resetData(); - } - - /** - * SONAR-4136 - */ - @Test - public void share_global_dashboard() throws Exception { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("global-dashboard-sharing-permission", - "/authorisation/DashboardSharingPermissionTest/global-dashboard-sharing-allowed.html") - .build(); - orchestrator.executeSelenese(selenese); - } -} diff --git a/it/it-tests/src/test/java/it/authorisation/SystemAdminPermissionTest.java b/it/it-tests/src/test/java/it/authorisation/SystemAdminPermissionTest.java deleted file mode 100644 index 383d2f0cd17..00000000000 --- a/it/it-tests/src/test/java/it/authorisation/SystemAdminPermissionTest.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.authorisation; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category1Suite; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Test; -import util.user.UserRule; - -public class SystemAdminPermissionTest { - - @ClassRule - public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; - - @ClassRule - public static UserRule userRule = UserRule.from(orchestrator); - - @BeforeClass - public static void setUpUsers() { - orchestrator.resetData(); - - userRule.createUser("can_share", "password"); - userRule.createUser("cannot_share", "password"); - } - - @AfterClass - public static void reset() { - userRule.resetUsers(); - } - - /** - * SONAR-4398 - */ - @Test - public void should_change_ownership_of_shared_measure_filter() throws Exception { - // change-own-measure-filter-owner.html - // 1 - as admin, create measure filter, shared with every one - // 2 - as admin, edit filter and set owner to can_share - seleniumSuite("change-measure-filter-ownership", - "/authorisation/SystemAdminPermissionTest/change-own-measure-filter-owner.html", - "/authorisation/SystemAdminPermissionTest/change-other-measure-filter-owner.html", - "/authorisation/SystemAdminPermissionTest/change-system-measure-filter-owner.html"); - } - - /** - * SONAR-4136 - */ - @Test - public void should_change_ownership_of_shared_global_dashboard() throws Exception { - seleniumSuite("change-global-dashboard-ownership", - "/authorisation/SystemAdminPermissionTest/change-shared-global-dashboard-owner.html"); - } - - private void seleniumSuite(String suiteName, String... tests) { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath(suiteName, tests).build(); - orchestrator.executeSelenese(selenese); - } - -} diff --git a/it/it-tests/src/test/java/it/componentDashboard/DashboardTest.java b/it/it-tests/src/test/java/it/componentDashboard/DashboardTest.java deleted file mode 100644 index 3095ea6d560..00000000000 --- a/it/it-tests/src/test/java/it/componentDashboard/DashboardTest.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.componentDashboard; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category4Suite; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Ignore; -import org.junit.Test; - -import static util.ItUtils.runProjectAnalysis; - -public class DashboardTest { - - @ClassRule - public static Orchestrator orchestrator = Category4Suite.ORCHESTRATOR; - - @BeforeClass - public static void scanProject() { - orchestrator.resetData(); - runProjectAnalysis(orchestrator, "shared/xoo-sample"); - } - - /** - * SONAR-1929 - */ - @Test - public void dashboard_extension() { - seleniumSuite("dashboard_extension", - // SSF-19 - "/componentDashboard/DashboardTest/dashboard_extension/xss.html"); - } - - @Test - @Ignore - public void global_dashboard() { - seleniumSuite("global_dashboard", - // SONAR-3462 - "/componentDashboard/DashboardTest/global_dashboard/edit-global-dashboards.html", - - // SONAR-4630 - "/componentDashboard/DashboardTest/global_dashboard/create-global-dashboards-error.html", - - // SONAR-3462 - "/componentDashboard/DashboardTest/global_dashboard/order-global-dashboard.html", - - // SONAR-1927 SONAR-3467 - "/componentDashboard/DashboardTest/global_dashboard/manage-global-dashboard.html", - - // SONAR-2073 SONAR-3459 - "/componentDashboard/DashboardTest/global_dashboard/filter-widget-admin.html", - - // SONAR-2073 - "/componentDashboard/DashboardTest/global_dashboard/filter-widget-anonymous.html", - - // SONAR-3461 - "/componentDashboard/DashboardTest/global_dashboard/default-dashboards.html", - - // SONAR-3457 SONAR-3563 - "/componentDashboard/DashboardTest/global_dashboard/project-widget.html"); - - // Remove permission from anonymous user - removeGroupPermission("anyone", "sample", "user"); - addUserPermission("admin", "sample", "user"); - seleniumSuite("global_dashboard_project_permissions", - // SONAR-6004 - "/componentDashboard/DashboardTest/global_dashboard/global-dashboard-applies-project-permission.html"); - - // Put back permissions - addGroupPermission("anyone", "sample", "user"); - removeUserPermission("admin", "sample", "user"); - } - - @Test - public void default_widgets() { - seleniumSuite("default_widgets", - "/componentDashboard/DashboardTest/default_widgets/welcome_widget.html", - - // SONAR-4448 - "/componentDashboard/DashboardTest/default_widgets/documentation_and_comments_widget.html"); - } - - private void seleniumSuite(String suiteName, String... tests) { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath(suiteName, tests).build(); - orchestrator.executeSelenese(selenese); - } - - private static void addUserPermission(String login, String projectKey, String permission) { - orchestrator.getServer().adminWsClient().post("api/permissions/add_user", - "login", login, - "projectKey", projectKey, - "permission", permission); - } - - private static void removeUserPermission(String login, String projectKey, String permission) { - orchestrator.getServer().adminWsClient().post("api/permissions/remove_user", - "login", login, - "projectKey", projectKey, - "permission", permission); - } - - private static void addGroupPermission(String groupName, String projectKey, String permission) { - orchestrator.getServer().adminWsClient().post("api/permissions/add_group", - "groupName", groupName, - "projectKey", projectKey, - "permission", permission); - } - - private static void removeGroupPermission(String groupName, String projectKey, String permission) { - orchestrator.getServer().adminWsClient().post("api/permissions/remove_group", - "groupName", groupName, - "projectKey", projectKey, - "permission", permission); - } -} diff --git a/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java b/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java index c4c0f1acdc7..7858b83fd0e 100644 --- a/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java +++ b/it/it-tests/src/test/java/it/duplication/DuplicationsTest.java @@ -140,15 +140,6 @@ public class DuplicationsTest { "api/duplications/show", "duplications_show-expected.json"); } - @Test - public void duplications_widget() throws Exception { - new SeleneseTest( - Selenese.builder().setHtmlTestsInClasspath("duplications_widget", - // SONAR-4347 - "/duplication/DuplicationsTest/duplications_widget.html").build()) - .runOn(orchestrator); - } - private static Resource getComponent(String key) { Resource component = orchestrator.getServer().getWsClient() .find(ResourceQuery.createForMetrics(key, "duplicated_lines", "duplicated_blocks", "duplicated_files", "duplicated_lines_density")); diff --git a/it/it-tests/src/test/java/it/measure/ProjectDashboardTest.java b/it/it-tests/src/test/java/it/measure/ProjectDashboardTest.java index eef29acaf0b..c7e849c441d 100644 --- a/it/it-tests/src/test/java/it/measure/ProjectDashboardTest.java +++ b/it/it-tests/src/test/java/it/measure/ProjectDashboardTest.java @@ -25,6 +25,7 @@ import com.sonar.orchestrator.selenium.Selenese; import it.Category1Suite; import org.junit.Before; import org.junit.ClassRule; +import org.junit.Ignore; import org.junit.Test; import pageobjects.Navigation; import pageobjects.ProjectDashboardPage; @@ -66,6 +67,7 @@ public class ProjectDashboardTest { } @Test + @Ignore("there is no more place to show the error") public void display_a_nice_error_when_requesting_unknown_project() { Navigation nav = Navigation.get(orchestrator); nav.open("/dashboard/index?id=unknown"); diff --git a/it/it-tests/src/test/java/it/measure/ProjectWidgetsTest.java b/it/it-tests/src/test/java/it/measure/ProjectWidgetsTest.java deleted file mode 100644 index aa58f9a57c4..00000000000 --- a/it/it-tests/src/test/java/it/measure/ProjectWidgetsTest.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.measure; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.build.SonarScanner; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category1Suite; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Ignore; -import org.junit.Test; -import org.sonar.wsclient.services.ResourceQuery; -import util.selenium.SeleneseTest; - -import static util.ItUtils.projectDir; - -public class ProjectWidgetsTest { - - @ClassRule - public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; - - @BeforeClass - public static void inspectProject() { - orchestrator.executeBuild( - SonarScanner.create(projectDir("shared/xoo-sample")) - .setProjectKey("project-widgets-test-project") - .setProjectName("ProjectWidgetsTest Project") - ); - } - - @Test - public void hotspots() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("hotspots", - "/measure/ProjectWidgetsTest/hotspots/hotspot-metric-widget.html", - "/measure/ProjectWidgetsTest/hotspots/hide-if-no-measures.html" - ).build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - public void complexity() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("complexity", - "/measure/ProjectWidgetsTest/complexity/complexity-widget.html" - ).build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - public void description() { - long projectId = orchestrator.getServer().getWsClient() - .find(ResourceQuery.create("project-widgets-test-project")).getId(); - long qualityGateId = orchestrator.getServer().adminWsClient().qualityGateClient().show("SonarQube way").id(); - orchestrator.getServer().adminWsClient().qualityGateClient().selectProject(qualityGateId, projectId); - - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("description", - "/measure/ProjectWidgetsTest/description/description-widget.html" - ).build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - @Ignore - public void custom_measures() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("custom_measures", - "/measure/ProjectWidgetsTest/custom_measures/should-exclude-new-metrics.html" - ).build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - -} diff --git a/it/it-tests/src/test/java/it/measureFilter/MeasureFiltersTest.java b/it/it-tests/src/test/java/it/measureFilter/MeasureFiltersTest.java deleted file mode 100644 index f20fa6eaa2a..00000000000 --- a/it/it-tests/src/test/java/it/measureFilter/MeasureFiltersTest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.measureFilter; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.build.SonarScanner; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category1Suite; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Test; -import org.sonar.wsclient.SonarClient; -import org.sonar.wsclient.user.UserParameters; -import org.sonarqube.ws.client.WsClient; -import util.selenium.SeleneseTest; - -import static util.ItUtils.newAdminWsClient; -import static util.ItUtils.projectDir; - -public class MeasureFiltersTest { - - @ClassRule - public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; - public static WsClient adminWsClient; - - @BeforeClass - public static void scanStruts() { - orchestrator.resetData(); - orchestrator.executeBuild(SonarScanner.create(projectDir("shared/xoo-multi-modules-sample"))); - adminWsClient = newAdminWsClient(orchestrator); - - createUser("user-measure-filters", "User Measure Filters"); - } - - @AfterClass - public static void deleteTestUser() { - deactivateUser("user-measure-filters"); - } - - @Test - public void execute_measure_filters() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("execution_of_measure_filters", - "/measureFilter/MeasureFiltersTest/link_from_main_header.html", - "/measureFilter/MeasureFiltersTest/initial_search_form.html", - "/measureFilter/MeasureFiltersTest/search_for_projects.html", - "/measureFilter/MeasureFiltersTest/search_for_files.html", - // SONAR-4195 - "/measureFilter/MeasureFiltersTest/search-by-key.html", - "/measureFilter/MeasureFiltersTest/search-by-name.html", - "/measureFilter/MeasureFiltersTest/empty_filter.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - public void display_measure_filter_as_list() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("display_measure_filter_as_list", - "/measureFilter/MeasureFiltersTest/list_change_columns.html", - "/measureFilter/MeasureFiltersTest/list_delete_column.html", - "/measureFilter/MeasureFiltersTest/list_move_columns.html", - "/measureFilter/MeasureFiltersTest/list_sort_by_descending_name.html", - "/measureFilter/MeasureFiltersTest/list_sort_by_ncloc.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - public void share_measure_filters() { - // SONAR-4099 - String user = "user-measures-filter-with-sharing-perm"; - createUser(user, "User Measure Filters with sharing permission"); - - try { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("share_measure_filters", - // SONAR-4469 - "/measureFilter/MeasureFiltersTest/should-unshare-filter-remove-other-filters-favourite.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } finally { - deactivateUser(user); - } - } - - @Test - public void copy_measure_filters() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("copy_measure_filters", - "/measureFilter/MeasureFiltersTest/copy_measure_filter.html", - "/measureFilter/MeasureFiltersTest/copy_uniqueness_of_name.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - public void manage_measure_filters() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("manage_measure_filters", - "/measureFilter/MeasureFiltersTest/save_with_special_characters.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - @Test - public void measure_filter_list_widget() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("measure_filter_list_widget", - "/measureFilter/MeasureFiltersTest/list_widget.html", - "/measureFilter/MeasureFiltersTest/list_widget_sort.html", - "/measureFilter/MeasureFiltersTest/list_widget_warning_if_missing_filter.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - - private static void createUser(String login, String name) { - SonarClient client = orchestrator.getServer().adminWsClient(); - UserParameters userCreationParameters = UserParameters.create().login(login).name(name).password("password").passwordConfirmation("password"); - client.userClient().create(userCreationParameters); - } - - private static void deactivateUser(String user) { - orchestrator.getServer().adminWsClient().userClient().deactivate(user); - } -} diff --git a/it/it-tests/src/test/java/it/measureHistory/HistoryUiTest.java b/it/it-tests/src/test/java/it/measureHistory/HistoryUiTest.java deleted file mode 100644 index 94fcc35678b..00000000000 --- a/it/it-tests/src/test/java/it/measureHistory/HistoryUiTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.measureHistory; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.build.SonarScanner; -import com.sonar.orchestrator.locator.FileLocation; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category1Suite; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Ignore; -import org.junit.Test; -import util.selenium.SeleneseTest; - -import static util.ItUtils.projectDir; - -public class HistoryUiTest { - - @ClassRule - public static Orchestrator orchestrator = Category1Suite.ORCHESTRATOR; - - @BeforeClass - public static void initialize() { - orchestrator.resetData(); - orchestrator.getServer().restoreProfile(FileLocation.ofClasspath("/measureHistory/one-issue-per-line-profile.xml")); - orchestrator.getServer().provisionProject("sample", "sample"); - orchestrator.getServer().associateProjectToQualityProfile("sample", "xoo", "one-issue-per-line"); - analyzeProject("shared/xoo-history-v1", "2014-10-19"); - analyzeProject("shared/xoo-history-v2", "2014-11-13"); - } - - private static void analyzeProject(String path, String date) { - orchestrator.executeBuild(SonarScanner.create(projectDir(path)) - .setProperties("sonar.projectDate", date)); - } - - @Test - public void test_timeline_widget() { - new SeleneseTest(Selenese.builder().setHtmlTestsInClasspath("history-timeline-widget", - "/measureHistory/HistoryUiTest/history-timeline-widget/timeline-widget.html", - // SONAR-3561 - "/measureHistory/HistoryUiTest/history-timeline-widget/should-display-even-if-one-missing-metric.html" - ).build()).runOn(orchestrator); - } - - @Test - @Ignore - public void test_timemachine_widget() { - // Use old way to execute Selenium because 'waitForTextPresent' action is not supported by SeleneseTest - orchestrator.executeSelenese(Selenese.builder().setHtmlTestsInClasspath("history-timemachine-widget", - "/measureHistory/HistoryUiTest/history-timemachine-widget/time-machine-widget.html", - // SONAR-3354 & SONAR-3353 - "/measureHistory/HistoryUiTest/history-timemachine-widget/should-display-empty-table-if-no-measure.html", - // SONAR-3650 - "/measureHistory/HistoryUiTest/history-timemachine-widget/should-exclude-new-metrics.html" - ).build()); - } - -} diff --git a/it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java b/it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java index 399399a49f5..e5c086800d4 100644 --- a/it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java +++ b/it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java @@ -91,32 +91,6 @@ public class QualityGateUiTest { qgClient.destroy(qGate.id()); } - /** - * SONAR-1352 - */ - @Test - public void display_period_alert_on_project_dashboard() { - QualityGateClient qgClient = orchestrator.getServer().adminWsClient().qualityGateClient(); - QualityGate qGate = qgClient.create("AlertsForDashboard"); - qgClient.createCondition(NewCondition.create(qGate.id()).metricKey("lines").operator("LT").warningThreshold("0").errorThreshold("10") - .period(1)); - qgClient.setDefault(qGate.id()); - - // No alert - scanSampleWithDate("2012-01-01"); - - // Red alert because lines number has not changed since previous analysis - scanSample(); - - new SeleneseTest(Selenese.builder() - .setHtmlTestsInClasspath("display-period-alerts", - "/qualityGate/QualityGateUiTest/should-display-period-alerts-correctly.html" - ).build()).runOn(orchestrator); - - qgClient.unsetDefault(); - qgClient.destroy(qGate.id()); - } - @Test public void should_display_quality_gates_page() { Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("should_display_quality_gates_page", @@ -125,10 +99,6 @@ public class QualityGateUiTest { new SeleneseTest(selenese).runOn(orchestrator); } - private void scanSample() { - scanSample(null, null); - } - private void scanSampleWithDate(String date) { scanSample(date, null); } diff --git a/it/it-tests/src/test/java/it/qualityModel/TechnicalDebtWidgetTest.java b/it/it-tests/src/test/java/it/qualityModel/TechnicalDebtWidgetTest.java deleted file mode 100644 index 51dc10bd286..00000000000 --- a/it/it-tests/src/test/java/it/qualityModel/TechnicalDebtWidgetTest.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program 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. - * - * This program 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.qualityModel; - -import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.build.SonarScanner; -import com.sonar.orchestrator.locator.FileLocation; -import com.sonar.orchestrator.selenium.Selenese; -import it.Category2Suite; -import java.text.SimpleDateFormat; -import java.util.Date; -import org.apache.commons.lang.time.DateUtils; -import org.junit.BeforeClass; -import org.junit.ClassRule; -import org.junit.Test; -import util.selenium.SeleneseTest; - -import static util.ItUtils.projectDir; - -public class TechnicalDebtWidgetTest { - - @ClassRule - public static Orchestrator orchestrator = Category2Suite.ORCHESTRATOR; - - @ClassRule - public static DebtConfigurationRule debtConfiguration = DebtConfigurationRule.create(orchestrator); - - @BeforeClass - public static void init() { - orchestrator.resetData(); - - // Set rating grid values to not depend from default value - debtConfiguration.updateRatingGrid(0.1d, 0.2d, 0.5d, 1d); - - orchestrator.getServer().restoreProfile(FileLocation.ofClasspath("/qualityModel/with-many-rules.xml")); - orchestrator.getServer().provisionProject("com.sonarsource.it.samples:multi-modules-sample", "com.sonarsource.it.samples:multi-modules-sample"); - orchestrator.getServer().associateProjectToQualityProfile("com.sonarsource.it.samples:multi-modules-sample", "xoo", "with-many-rules"); - - // need to execute the build twice in order to have history widgets - // we made some exclusions to have variations in diff mode - scanProject(getPastDate(20), "**/a2/**"); - scanProject(getPastDate(10), ""); - } - - private static void scanProject(String date, String excludes) { - SonarScanner scan = SonarScanner.create(projectDir("shared/xoo-multi-modules-sample")) - .setProperties("sonar.projectDate", date, "sonar.exclusions", excludes); - orchestrator.executeBuild(scan); - } - - /** - * SONAR-4717 - */ - @Test - public void technical_debt_in_issues_widget() { - new SeleneseTest(Selenese.builder() - .setHtmlTestsInClasspath("technical-debt-in-issues-widget", - "/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-have-correct-values.html", - "/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-open-remediation-cost-on-measures-service.html", - "/qualityModel/TechnicalDebtWidgetTest/technical-debt/display-differential-values.html", - // SONAR-4717 - "/qualityModel/TechnicalDebtWidgetTest/technical-debt/is-in-issues-widget.html" - ).build()).runOn(orchestrator); - } - - /** - * SONAR-5450 - */ - @Test - public void debt_overview_widget() { - new SeleneseTest(Selenese.builder() - .setHtmlTestsInClasspath("debt-overview-widget", - "/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-have-correct-values.html", - "/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-open-links-on-measures-service.html", - "/qualityModel/TechnicalDebtWidgetTest/debt-overview/display-differential-values.html" - ).build()).runOn(orchestrator); - } - - private static String getPastDate(int nbPastDays){ - return new SimpleDateFormat("yyyy-MM-dd").format(DateUtils.addDays(new Date(), nbPastDays * -1)); - } - -} diff --git a/it/it-tests/src/test/java/it/settings/SettingsTest.java b/it/it-tests/src/test/java/it/settings/SettingsTest.java index 55dd2015e7f..e9b1ea0a06a 100644 --- a/it/it-tests/src/test/java/it/settings/SettingsTest.java +++ b/it/it-tests/src/test/java/it/settings/SettingsTest.java @@ -20,7 +20,6 @@ package it.settings; import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.selenium.Selenese; import it.Category1Suite; import java.io.IOException; import java.util.List; @@ -35,7 +34,6 @@ import org.sonarqube.ws.client.setting.ResetRequest; import org.sonarqube.ws.client.setting.SetRequest; import org.sonarqube.ws.client.setting.SettingsService; import org.sonarqube.ws.client.setting.ValuesRequest; -import util.selenium.SeleneseTest; import static org.assertj.core.api.Assertions.assertThat; import static util.ItUtils.newAdminWsClient; @@ -63,14 +61,6 @@ public class SettingsTest { resetSettings(orchestrator, null, PLUGIN_SETTING_KEY); } - // SONAR-4404 - @Test - public void should_get_settings_default_value() { - Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("settings-default-value", - "/settings/SettingsTest/settings-default-value.html").build(); - new SeleneseTest(selenese).runOn(orchestrator); - } - /** * SONAR-3320 */ diff --git a/it/it-tests/src/test/resources/authorisation/DashboardSharingPermissionTest/global-dashboard-sharing-allowed.html b/it/it-tests/src/test/resources/authorisation/DashboardSharingPermissionTest/global-dashboard-sharing-allowed.html deleted file mode 100644 index b1530ef944c..00000000000 --- a/it/it-tests/src/test/resources/authorisation/DashboardSharingPermissionTest/global-dashboard-sharing-allowed.html +++ /dev/null @@ -1,79 +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"/> - <title>global-dashboard-sharing-permission</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/dashboards</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>id=login</td> - <td>can_share_dashboards</td> - </tr> - <tr> - <td>type</td> - <td>id=password</td> - <td>password</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> - </tr> - <tr> - <td>waitForVisible</td> - <td>css=div.modal-body</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>name</td> - <td>My shared global dashboard</td> - </tr> - <tr> - <td>storeValue</td> - <td>name</td> - <td>DASHBOARD_NAME</td> - </tr> - <tr> - <td>click</td> - <td>name=shared</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>save-submit</td> - <td></td> - </tr> - <tr> - <td>assertTable</td> - <td>css=table.data.2.0</td> - <td>exact:${DASHBOARD_NAME}</td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>dashboard-1-shared</td> - <td></td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-other-measure-filter-owner.html b/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-other-measure-filter-owner.html deleted file mode 100644 index d00edae43b9..00000000000 --- a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-other-measure-filter-owner.html +++ /dev/null @@ -1,164 +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"/> - <title>change-other-measure-filter-owner</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>storeEval</td> - <td>'filter_'+(new Date()).getTime()</td> - <td>FILTER_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>can_share</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Save As*</td> -</tr> -<tr> - <td>click</td> - <td>save-as</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>save-as-filter-form</td> - <td>*Save Filter*</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>name=shared</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save-as-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>glob:*${FILTER_NAME}*Shared with all users*</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>id=manage-favorites</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=manage-favorites</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>shared-filters</td> - <td>glob:*${FILTER_NAME}*</td> -</tr> -<tr> - <td>click</td> - <td>edit_system_${FILTER_NAME}</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>edit-filter-form</td> - <td>*Edit Filter*</td> -</tr> -<tr> - <td>type</td> - <td>select-filter-owner</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>glob:*${FILTER_NAME}*Shared with all users*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-own-measure-filter-owner.html b/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-own-measure-filter-owner.html deleted file mode 100644 index 0a614ea066d..00000000000 --- a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-own-measure-filter-owner.html +++ /dev/null @@ -1,134 +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"/> - <title>change-own-measure-filter-owner</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>storeEval</td> - <td>'filter_'+(new Date()).getTime()</td> - <td>FILTER_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Save As*</td> -</tr> -<tr> - <td>click</td> - <td>save-as</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>save-as-filter-form</td> - <td>*Save Filter*</td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>name=shared</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save-as-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>glob:*${FILTER_NAME}*Shared with all users*</td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>id=manage-favorites</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=manage-favorites</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>my-filters</td> - <td>glob:*${FILTER_NAME}*</td> -</tr> -<tr> - <td>click</td> - <td>edit_${FILTER_NAME}</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>edit-filter-form</td> - <td>*Edit Filter*</td> -</tr> -<tr> - <td>type</td> - <td>select-filter-owner</td> - <td>can_share</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>glob:*${FILTER_NAME}*Shared by can_share*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-shared-global-dashboard-owner.html b/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-shared-global-dashboard-owner.html deleted file mode 100644 index 5f705e1c480..00000000000 --- a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-shared-global-dashboard-owner.html +++ /dev/null @@ -1,104 +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"/> - <title>change-shared-global-dashboard-owner</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/dashboards</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>waitForVisible</td> - <td>create-link-dashboard</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> - </tr> - <tr> - <td>waitForVisible</td> - <td>css=div.modal-body</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>name</td> - <td>shared-global-dashboard</td> - </tr> - <tr> - <td>storeValue</td> - <td>name</td> - <td>DASHBOARD_NAME</td> - </tr> - <tr> - <td>click</td> - <td>name=shared</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>save-submit</td> - <td></td> - </tr> - <tr> - <td>waitForVisible</td> - <td>edit-${DASHBOARD_NAME}</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>edit-${DASHBOARD_NAME}</td> - <td></td> - </tr> - <tr> - <td>waitForVisible</td> - <td>css=div.modal-body</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>select-dashboard-owner</td> - <td>can_share</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>save-submit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>dashboards</td> - <td>glob:*can_share*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-system-measure-filter-owner.html b/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-system-measure-filter-owner.html deleted file mode 100644 index d7177a44057..00000000000 --- a/it/it-tests/src/test/resources/authorisation/SystemAdminPermissionTest/change-system-measure-filter-owner.html +++ /dev/null @@ -1,89 +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"/> - <title>change-system-measure-filter-owner</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>storeEval</td> - <td>'filter_'+(new Date()).getTime()</td> - <td>FILTER_NAME</td> - </tr> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>id=manage-favorites</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=manage-favorites</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>shared-filters</td> - <td>glob:*My favourites*</td> - </tr> - <tr> - <td>click</td> - <td>edit_system_my-favourites</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>edit-filter-form</td> - <td>*Edit Filter*</td> - </tr> - <tr> - <td>type</td> - <td>select-filter-owner</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>save-submit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>filter-title</td> - <td>glob:*My favourites*Shared with all users*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/dashboard_extension/xss.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/dashboard_extension/xss.html deleted file mode 100644 index 4d0bf427f52..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/dashboard_extension/xss.html +++ /dev/null @@ -1,94 +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"/> - <title>xss</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">xss</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>create-dashboard-form</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td><script>alert('xss in name')</script></td> -</tr> -<tr> - <td>type</td> - <td>id=description</td> - <td><script>alert('xss in description')</script></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboards</td> - <td>*<script>alert('xss in name')</script>*<script>alert('xss in description')</script>*</td> -</tr> -<tr> - <td>click</td> - <td>id=delete-%3Cscript%3Ealert%28%27xss%20in%20name%27%29%3C%2Fscript%3E</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>delete-dashboard-form</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=confirm-submit</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>dashboards</td> - <td>*alert*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/default_widgets/documentation_and_comments_widget.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/default_widgets/documentation_and_comments_widget.html deleted file mode 100644 index ae5a977fbae..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/default_widgets/documentation_and_comments_widget.html +++ /dev/null @@ -1,49 +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"/> - <title>description-widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">description-widget</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=documentation_comments&resource=sample</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>m_public_documented_api_density</td> - <td>*60.0%*</td> - </tr> - <tr> - <td>waitForText</td> - <td>m_public_api</td> - <td>*5*</td> - </tr> - <tr> - <td>waitForText</td> - <td>m_public_undocumented_api</td> - <td>*2*</td> - </tr> - <tr> - <td>waitForText</td> - <td>m_comment_lines_density</td> - <td>*18.8%*</td> - </tr> - <tr> - <td>waitForText</td> - <td>m_comment_lines</td> - <td>*3*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/default_widgets/welcome_widget.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/default_widgets/welcome_widget.html deleted file mode 100644 index cf632d486e1..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/default_widgets/welcome_widget.html +++ /dev/null @@ -1,24 +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"/> - <title>welcome_widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/widget/index/welcome</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Welcome to SonarQube*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/create-global-dashboards-error.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/create-global-dashboards-error.html deleted file mode 100644 index 0e310957f59..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/create-global-dashboards-error.html +++ /dev/null @@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ Copyright (C) 2009-2012 SonarSource SA - ~ All rights reserved - ~ mailto:contact AT sonarsource DOT com - --> - -<!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>create-global-dashboards-error</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">create-global-dashboards-error</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>GLOBAL</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>GLOBAL</td> -</tr> -<tr> - <td>click</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=p.error</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=p.error</td> - <td>A dashboard already exists with the same name</td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>GLOBAL2</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboards</td> - <td>*GLOBAL*GLOBAL2*</td> -</tr> -<tr> - <td>click</td> - <td>id=delete-GLOBAL</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=.modal-body</td> - <td>Do you want to delete this dashboard?</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>confirm-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=delete-GLOBAL2</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=.modal-body</td> - <td>Do you want to delete this dashboard?</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>confirm-submit</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/default-dashboards.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/default-dashboards.html deleted file mode 100644 index 3bc101132a4..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/default-dashboards.html +++ /dev/null @@ -1,59 +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"/> - <title>default-dashboards</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">default-dashboards</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/admin_dashboards</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>body</td> - <td>*Global Dashboards*</td> -</tr> -<tr> - <td>waitForText</td> - <td>activeGlobal</td> - <td>*Home*</td> -</tr> -<tr> - <td>assertElementNotPresent</td> - <td>remove-Home</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/edit-global-dashboards.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/edit-global-dashboards.html deleted file mode 100644 index 120d29971dc..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/edit-global-dashboards.html +++ /dev/null @@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ Copyright (C) 2009-2012 SonarSource SA - ~ All rights reserved - ~ mailto:contact AT sonarsource DOT com - --> - -<!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>edit-global-dashboards</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">edit-global-dashboards</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>GLOBAL</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=unfollow-GLOBAL</td> - <td></td> -</tr> -<tr> - <td>assertTable</td> - <td>id=shared-dashboards.1.0</td> - <td>GLOBAL</td> -</tr> -<tr> - <td>assertTable</td> - <td>id=shared-dashboards.1.4</td> - <td>Configure widgets Edit Delete Follow</td> -</tr> -<tr> - <td>click</td> - <td>id=edit-GLOBAL</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=description</td> - <td>Description Shared</td> -</tr> -<tr> - <td>click</td> - <td>name=shared</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForTextPresent</td> - <td>Description Shared</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=delete-GLOBAL</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=.modal-body</td> - <td>Do you want to delete this dashboard?</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>confirm-submit</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/filter-widget-admin.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/filter-widget-admin.html deleted file mode 100644 index d9f8a46e98a..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/filter-widget-admin.html +++ /dev/null @@ -1,134 +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"/> - <title>filter-widget-admin</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">filter-widget-admin</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>AllFilters</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=configure-AllFilters</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=add-widget-measure_filter_list</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>id=filter</td> - <td>label=Projects</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>assertTable</td> - <td>id=measures-table.1.2</td> - <td>*Sample*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=add-widget-measure_filter_list</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>id=filter</td> - <td>label=My favourites</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>xpath=(//div[contains(@class,"widget-title")])[1]</td> - <td>My favourites</td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=delete-AllFilters</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=.modal-body</td> - <td>Do you want to delete this dashboard?</td> -</tr> -<tr> - <td>click</td> - <td>confirm-submit</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/filter-widget-anonymous.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/filter-widget-anonymous.html deleted file mode 100644 index 8df4603a026..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/filter-widget-anonymous.html +++ /dev/null @@ -1,44 +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"/> - <title>filter-widget-amonymous</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">filter-widget-amonymous</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Home</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Welcome to SonarQube*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>content</td> - <td>*My favourites*</td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Sample*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/global-dashboard-applies-project-permission.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/global-dashboard-applies-project-permission.html deleted file mode 100644 index 0d6ffeda3f0..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/global-dashboard-applies-project-permission.html +++ /dev/null @@ -1,79 +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"/> - <title>filter-widget-amonymous</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">filter-widget-amonymous</td> - </tr> - </thead> - <tbody> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Home</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Welcome to SonarQube*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>content</td> - <td>*My favourites*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>content</td> - <td>*Sample*</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Welcome to SonarQube*</td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*My favourites*</td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Sample*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/manage-global-dashboard.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/manage-global-dashboard.html deleted file mode 100644 index 717172c66a4..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/manage-global-dashboard.html +++ /dev/null @@ -1,214 +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"/> - <title>manage-global-dashboard</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">manage-global-dashboard</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*My Global Dashboards*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>content</td> - <td>*My Project Dashboards*</td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Available Dashboards*</td> -</tr> -<tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>NewGlobalDashboard</td> -</tr> -<tr> - <td>type</td> - <td>name=description</td> - <td>Dashboard description</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=configure-NewGlobalDashboard</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>css=img[alt="Layout333333"]</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=add-widget-measure_filter_list</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboard-column-1</td> - <td>*Measure Filter as List*</td> -</tr> -<tr> - <td>waitForVisible</td> - <td>filter</td> - <td></td> -</tr> -<tr> - <td>select</td> - <td>id=filter</td> - <td>label=Projects</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboard-column-1</td> - <td>*Projects*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=add-widget-complexity</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboard-column-1</td> - <td>*Project*</td> -</tr> -<tr> - <td>click</td> - <td>css=a.select2-choice</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>//input[@class='widget-select-prj-complexity']</td> - <td>sample</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboard-column-1</td> - <td>*Sample*</td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>link=NewGlobalDashboard</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=NewGlobalDashboard</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboard-column-1</td> - <td>*Sample*</td> -</tr> -<tr> - <td>assertTextPresent</td> - <td>Projects</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Configure widgets</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>link=Delete</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=Back to dashboard</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=delete-NewGlobalDashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=.modal-body</td> - <td>Do you want to delete this dashboard?</td> -</tr> -<tr> - <td>click</td> - <td>confirm-submit</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/order-global-dashboard.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/order-global-dashboard.html deleted file mode 100644 index e105b03e6d6..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/order-global-dashboard.html +++ /dev/null @@ -1,119 +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"/> - <title>order-global-dashboard</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">order-global-dashboard</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/dashboards</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name=name</td> - <td>Personal</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>dashboards</td> - <td>*Home*Personal*</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=up-Personal</td> - <td></td> -</tr> -<tr> - <td>assertTable</td> - <td>id=dashboards.1.0</td> - <td>Personal*</td> -</tr> -<tr> - <td>assertTable</td> - <td>id=dashboards.2.0</td> - <td>Home</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=down-Personal</td> - <td></td> -</tr> -<tr> - <td>assertTable</td> - <td>id=dashboards.1.0</td> - <td>Home*</td> -</tr> -<tr> - <td>assertTable</td> - <td>id=dashboards.2.0</td> - <td>Personal</td> -</tr> -<tr> - <td>click</td> - <td>id=delete-Personal</td> - <td></td> -</tr> -<tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>css=.modal-body</td> - <td>Do you want to delete this dashboard?</td> -</tr> -<tr> - <td>click</td> - <td>confirm-submit</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/project-widget.html b/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/project-widget.html deleted file mode 100644 index 995085bcf42..00000000000 --- a/it/it-tests/src/test/resources/componentDashboard/DashboardTest/global_dashboard/project-widget.html +++ /dev/null @@ -1,109 +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"/> - <title>project-widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">project-widget</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/dashboards</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>create-link-dashboard</td> - <td></td> - </tr> - <tr> - <td>waitForVisible</td> - <td>css=div.modal-head > h2</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>name=name</td> - <td>ProjectWidgets</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=configure-ProjectWidgets</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=add-widget-complexity</td> - <td></td> - </tr> - <tr> - <td>assertElementNotPresent</td> - <td>xpath=(//div[contains(@class,"widget-title")])</td> - <td></td> - </tr> - <tr> - <td>assertTextPresent</td> - <td>exact:Project *</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>//input[@class='widget-select-prj-complexity']</td> - <td>sample</td> - </tr> - <tr> - <td>click</td> - <td>name=commit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>xpath=(//div[contains(@class,"widget-title")])[1]</td> - <td>Sample</td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>link=Sample</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>m_class_complexity</td> - <td></td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/duplication/DuplicationsTest/duplications_widget.html b/it/it-tests/src/test/resources/duplication/DuplicationsTest/duplications_widget.html deleted file mode 100644 index ba4ea62c858..00000000000 --- a/it/it-tests/src/test/resources/duplication/DuplicationsTest/duplications_widget.html +++ /dev/null @@ -1,44 +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"/> - <title>description-widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">description-widget</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=duplications&resource=file-duplications</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>m_duplicated_lines_density</td> - <td>*63.7%*</td> -</tr> -<tr> - <td>waitForText</td> - <td>m_duplicated_lines</td> - <td>*293*</td> -</tr> -<tr> - <td>waitForText</td> - <td>m_duplicated_blocks</td> - <td>*9*</td> -</tr> -<tr> - <td>waitForText</td> - <td>m_duplicated_files</td> - <td>*8*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/complexity/complexity-widget.html b/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/complexity/complexity-widget.html deleted file mode 100644 index eebb7c89465..00000000000 --- a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/complexity/complexity-widget.html +++ /dev/null @@ -1,44 +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"/> - <title>complexity</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">complexity</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=complexity&resource=project-widgets-test-project&metric1=complexity&metric2=ncloc&chartTitle=MyWidget</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Complexity*</td> -</tr> -<tr> - <td>waitForText</td> - <td>m_class_complexity</td> - <td>3.0</td> -</tr> -<tr> - <td>waitForText</td> - <td>m_file_complexity</td> - <td>3.0</td> -</tr> -<tr> - <td>waitForText</td> - <td>m_complexity</td> - <td>3</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/custom_measures/should-exclude-new-metrics.html b/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/custom_measures/should-exclude-new-metrics.html deleted file mode 100644 index 1f059bb1017..00000000000 --- a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/custom_measures/should-exclude-new-metrics.html +++ /dev/null @@ -1,74 +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"/> - <title>should-exclude-new-metrics</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-exclude-new-metrics</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=Configure widgets</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>id=content</td> - <td>*History Table*</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=add-widget-custom_measures</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>id=content</td> - <td>*Metric 1*</td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>//div[@class='widget_props' and @style='']//option[text()='Overall condition coverage']</td> - <td></td> - </tr> - <tr> - <td>assertElementNotPresent</td> - <td>//div[@class='widget_props' and @style='']//option[text()='Overall new condition coverage']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>link=Delete</td> - <td></td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/description/description-widget.html b/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/description/description-widget.html deleted file mode 100644 index 9306c1fad32..00000000000 --- a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/description/description-widget.html +++ /dev/null @@ -1,29 +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"/> - <title>description-widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">description-widget</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=description&resource=project-widgets-test-project</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*ProjectWidgetsTest Project*project-widgets-test-project*Profiles:*Basic*Quality Gate*SonarQube way*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/hotspots/hide-if-no-measures.html b/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/hotspots/hide-if-no-measures.html deleted file mode 100644 index 53abb62658a..00000000000 --- a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/hotspots/hide-if-no-measures.html +++ /dev/null @@ -1,29 +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"/> - <title>hide-if-no-measures</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=hotspot_metric&resource=project-widgets-test-project&metric=dit</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>block_1</td> - <td></td> -</tr> -<tr> - <td>assertNotText</td> - <td>block_1</td> - <td>*Depth*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/hotspots/hotspot-metric-widget.html b/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/hotspots/hotspot-metric-widget.html deleted file mode 100644 index 685f4d9d1c3..00000000000 --- a/it/it-tests/src/test/resources/measure/ProjectWidgetsTest/hotspots/hotspot-metric-widget.html +++ /dev/null @@ -1,34 +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"/> - <title>hotspot_metric</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">hotspot_metric</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=hotspot_metric&resource=project-widgets-test-project&metric=ncloc&title=NewTitle</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>class=hotspot_metric</td> - <td>*NewTitle*Sample.xoo*</td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>link=Sample.xoo</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/copy_measure_filter.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/copy_measure_filter.html deleted file mode 100644 index e88d2a374c5..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/copy_measure_filter.html +++ /dev/null @@ -1,139 +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"/> - <title>copy_measure_filter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>storeEval</td> - <td>'list_'+(new Date()).getTime()</td> - <td>FILTER_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>id=password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=save-as</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>save-as-filter-form</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td>${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>id=save-as-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>*${FILTER_NAME}*</td> -</tr> -<tr> - <td>click</td> - <td>id=copy</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>copy-filter-form</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td>copy of ${FILTER_NAME}</td> -</tr> -<tr> - <td>type</td> - <td>id=description</td> - <td>description of copy</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=copy-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>*copy of ${FILTER_NAME}*</td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-description</td> - <td>*description of copy*</td> -</tr> -<tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Files']</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/copy_uniqueness_of_name.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/copy_uniqueness_of_name.html deleted file mode 100644 index 33c575f7dc2..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/copy_uniqueness_of_name.html +++ /dev/null @@ -1,134 +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"/> - <title>copy_uniqueness_of_name</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>store</td> - <td>javascript{'list_'+(new Date()).getTime()}</td> - <td>FILTER_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>id=password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=save-as</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>save-as-filter-form</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td>${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>id=save-as-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>*${FILTER_NAME}*</td> -</tr> -<tr> - <td>click</td> - <td>id=copy</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>copy-filter-form</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td>${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>id=copy-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>copy-filter-form</td> - <td>*Name already exists*</td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td>copy of ${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>id=copy-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>*copy of ${FILTER_NAME}*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/empty_filter.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/empty_filter.html deleted file mode 100644 index 6101b19390f..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/empty_filter.html +++ /dev/null @@ -1,30 +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"/> - <title>empty_filter</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures/search</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*No data*</td> - </tr> - <tr> - <td>assertNotText</td> - <td>measures-table</td> - <td>*Struts*</td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/initial_search_form.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/initial_search_form.html deleted file mode 100644 index da7acf86b7e..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/initial_search_form.html +++ /dev/null @@ -1,34 +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"/> - <title>initial_search_form</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>name=qualifiers[]</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>class=navigator-filters</td> - <td>*More Criteria*</td> - </tr> - <tr> - <td>assertElementNotPresent</td> - <td>measures-table</td> - <td></td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/link_from_main_header.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/link_from_main_header.html deleted file mode 100644 index d86e9acd38b..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/link_from_main_header.html +++ /dev/null @@ -1,40 +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"/> - <title>link_from_main_header</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>link=Measures</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=Measures</td> - <td></td> - </tr> - <tr> - <td>assertLocation</td> - <td>*/measures*</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>class=navigator-filters</td> - <td></td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_change_columns.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_change_columns.html deleted file mode 100644 index 2e7b51c505c..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_change_columns.html +++ /dev/null @@ -1,134 +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"/> - <title>configure-table-columns</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>id=login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>id=password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=change-display</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>class=select2-choice</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>css=.select2-with-searchbox .select2-input</td> - <td>Complexity</td> - </tr> - <tr> - <td>keyPressAndWait</td> - <td>css=.select2-with-searchbox .select2-input</td> - <td>\13</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=add-metric</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*Cmpx*</td> - </tr> - <tr> - <td>click</td> - <td>class=select2-choice</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>css=.select2-with-searchbox .select2-input</td> - <td>Comment lines</td> - </tr> - <tr> - <td>keyPressAndWait</td> - <td>css=.select2-with-searchbox .select2-input</td> - <td>\13</td> - </tr> - <tr> - <td>select</td> - <td>id=select-period</td> - <td>label=since previous analysis</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=add-metric</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*Cmpx*Comment lines*last*</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=exit-edit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*Cmpx*Comment lines*last*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_delete_column.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_delete_column.html deleted file mode 100644 index 85b19ab0ac6..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_delete_column.html +++ /dev/null @@ -1,74 +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"/> - <title>delete_column</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=change-display</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*Last Analysis*LOC*</td> - </tr> - <tr> - <td>click</td> - <td>delete-date</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*LOC*</td> - </tr> - <tr> - <td>assertNotText</td> - <td>measures-table</td> - <td>*Last Analysis*</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=exit-edit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*LOC*</td> - </tr> - <tr> - <td>assertNotText</td> - <td>measures-table</td> - <td>*Last Analysis*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_move_columns.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_move_columns.html deleted file mode 100644 index d209eb3ac9d..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_move_columns.html +++ /dev/null @@ -1,74 +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"/> - <title>move_columns</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=change-display</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Name*Last Analysis*LOC*</td> - </tr> - <tr> - <td>click</td> - <td>left-date</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Last Analysis*Name*LOC*</td> - </tr> - <tr> - <td>click</td> - <td>right-name</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Last Analysis*LOC*Name*</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=exit-edit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Last Analysis*LOC*Name*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_sort_by_descending_name.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_sort_by_descending_name.html deleted file mode 100644 index e7fb0df8579..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_sort_by_descending_name.html +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ 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. - --> - -<!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>list_sort_by_descending_name</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>measures-table</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=Name</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*b2/HelloB2.xoo*b1/HelloB1.xoo*a2/HelloA2.xoo*a1/HelloA1.xoo*</td> - </tr> - - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_sort_by_ncloc.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_sort_by_ncloc.html deleted file mode 100644 index d389f54b006..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_sort_by_ncloc.html +++ /dev/null @@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ 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. - --> - -<!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>list_sort_by_ncloc</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>measures-table</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tfoot</td> - <td>*4 results*</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=LOC</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tbody tr:nth-of-type(1)</td> - <td>*a2/HelloA2.xoo*</td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tfoot</td> - <td>*4 results*</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=LOC</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tfoot</td> - <td>*4 results*</td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tbody tr:nth-of-type(4)</td> - <td>*a2/HelloA2.xoo*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget.html deleted file mode 100644 index dd38f5d361f..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget.html +++ /dev/null @@ -1,74 +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"/> - <title>list_widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures/manage</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>id=login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>id=password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>xpath=(//table[contains(@id, 'shared-filters')]//a[contains(text(),'Projects')])</td> - <td></td> -</tr> -<tr> - <td>storeEval</td> - <td>window.location.pathname.split('/')[3]</td> - <td>FILTER_ID</td> -</tr> -<tr> - <td>open</td> - <td>/widget?id=measure_filter_list&filter=${FILTER_ID}</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Name*Version*LOC*Last Analysis*</td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Multi-modules Sample*1.0-SNAPSHOT*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>block_1</td> - <td>*Module A*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget_sort.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget_sort.html deleted file mode 100644 index 8cddf927986..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget_sort.html +++ /dev/null @@ -1,136 +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"/> - <title>list_widget_sort</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>storeEval</td> - <td>'sort_widget_'+(new Date()).getTime()</td> - <td>FILTER_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>name=commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>class=navigator-filters</td> - <td>*More Criteria*</td> -</tr> -<tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=save-as</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>save-as-filter-form</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>name</td> - <td>${FILTER_NAME}</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-as-submit</td> - <td></td> -</tr> -<tr> - <td>storeEval</td> - <td>window.location.pathname.split('/')[3]</td> - <td>FILTER_ID</td> -</tr> -<tr> - <td>open</td> - <td>/widget?id=measure_filter_list&filter=${FILTER_ID}</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Name*LOC*</td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*a1/HelloA1.xoo*a2/HelloA2.xoo*b1/HelloB1.xoo*b2/HelloB2.xoo*</td> -</tr> -<tr> - <td>click</td> - <td>link=LOC</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <!-- test only the first row as the other ones have all the same number of LOC --> - <td>css=#block_1 tbody tr:nth-of-type(1)</td> - <td>*a2/HelloA2.xoo*</td> -</tr> -<tr> - <td>click</td> - <td>link=LOC</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <!-- test only the 4th row as the other ones have all the same number of LOC --> - <td>css=#block_1 tbody tr:nth-of-type(4)</td> - <td>*a2/HelloA2*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget_warning_if_missing_filter.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget_warning_if_missing_filter.html deleted file mode 100644 index aaa29436daf..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/list_widget_warning_if_missing_filter.html +++ /dev/null @@ -1,24 +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"/> - <title>list_widget</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=measure_filter_list</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>block_1</td> - <td>*This widget is configured to display a measure filter that does not exist anymore.*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/save_with_special_characters.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/save_with_special_characters.html deleted file mode 100644 index a757677af9d..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/save_with_special_characters.html +++ /dev/null @@ -1,126 +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"/> - <title>save_with_special_characters</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - - <tbody> - <tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>name=qualifiers[]</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>id=save-as</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>save-as-filter-form</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>id=name</td> - <td>special $à é'@"</td> - </tr> - <tr> - <td>type</td> - <td>id=description</td> - <td>description with special characters " ' éà </td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=save-as-submit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>filter-description</td> - <td>*description with special characters " ' éà *</td> - </tr> - <tr> - <td>click</td> - <td>class=navigator-filter-favorite</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=manage-favorites</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>my-filters</td> - <td>*special $à é'@"*description with special characters " ' éà *</td> - </tr> - <tr> - <td>click</td> - <td>id=delete_special-ae</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>confirm-submit</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>id=confirm-submit</td> - <td></td> - </tr> - <tr> - <td>waitForNotText</td> - <td>my-filters</td> - <td>*special $à é'@"*</td> - </tr> - </tbody> -</table> -</body> -</html> - diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search-by-key.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search-by-key.html deleted file mode 100644 index ddc4d9d33eb..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search-by-key.html +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ 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. - --> - -<!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>search-by-key</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Projects']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>class=navigator-filter-more-criteria</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[data-property='keySearch']</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>css=#filter-keySearch input[name='keySearch']</td> - <td>multi-modules</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Sonar :: Integration Tests :: Multi-modules Sample*</td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tfoot</td> - <td>*1 results*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search-by-name.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search-by-name.html deleted file mode 100644 index ea7a389711a..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search-by-name.html +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ 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. - --> - -<!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>search-by-name</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Projects']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>class=navigator-filter-more-criteria</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[data-property='nameSearch']</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>css=#filter-nameSearch input[name='nameSearch']</td> - <td>Integration</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Sonar :: Integration Tests :: Multi-modules Sample*</td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tfoot</td> - <td>*1 results*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search_for_files.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search_for_files.html deleted file mode 100644 index 6c55db2b97f..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search_for_files.html +++ /dev/null @@ -1,49 +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"/> - <title>search_for_files</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Files']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*a1/HelloA1.xoo*a2/HelloA2.xoo*b1/HelloB1.xoo*b2/HelloB2.xoo*</td> - </tr> - <tr> - <td>waitForText</td> - <td>css=#measures-table tfoot</td> - <td>*4 results*</td> - </tr> - <tr> - <td>assertNotText</td> - <td>measures-table</td> - <td>*Module A*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search_for_projects.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search_for_projects.html deleted file mode 100644 index 4a61aef1395..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/search_for_projects.html +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ 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. - --> - -<!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>search_for_projects_by_default</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/measures</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>css=label[title='Projects']</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>measures-table</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>measures-table</td> - <td>*Sonar :: Integration Tests :: Multi-modules Sample*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/should-unshare-filter-remove-other-filters-favourite.html b/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/should-unshare-filter-remove-other-filters-favourite.html deleted file mode 100644 index 885412059bb..00000000000 --- a/it/it-tests/src/test/resources/measureFilter/MeasureFiltersTest/should-unshare-filter-remove-other-filters-favourite.html +++ /dev/null @@ -1,269 +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"/> - <title>should_save_issue_filters</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<tbody> -<tr> - <td>storeEval</td> - <td>'filter_'+(new Date()).getTime()</td> - <td>FILTER_NAME</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>user-measures-filter-with-sharing-perm</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=.navigator-filter[title='Components: Any']</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>css=label[title='Projects']</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>class=navigator-filter-submit</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=save-as</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>save-as-filter-form</td> - <td>*Save Filter*</td> -</tr> -<tr> - <td>type</td> - <td>id=name</td> - <td>user_${FILTER_NAME}</td> -</tr> -<tr> - <td>click</td> - <td>id=shared</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>id=save-as-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>*user_${FILTER_NAME}*Shared with all users*</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures/manage</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*My Measures Filters*</td> -</tr> -<tr> - <td>waitForText</td> - <td>shared-filters</td> - <td>*user_${FILTER_NAME}*</td> -</tr> -<tr> - <td>click</td> - <td>id=star-user_${FILTER_NAME}</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>user-measures-filter-with-sharing-perm</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>password</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures</td> - <td></td> -</tr> -<tr> - <td>click</td> - <td>class=navigator-filter-favorite</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=manage-favorites</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>my-filters</td> - <td>*user_${FILTER_NAME}*</td> -</tr> -<tr> - <td>click</td> - <td>id=edit_user_${FILTER_NAME}</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>edit-filter-form</td> - <td>*Edit Filter*</td> -</tr> -<tr> - <td>click</td> - <td>shared</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>id=save-submit</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>filter-title</td> - <td>*user_${FILTER_NAME}*Private*</td> -</tr> -<tr> - <td>open</td> - <td>/sessions/logout</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> -</tr> -<tr> - <td>type</td> - <td>login</td> - <td>admin</td> -</tr> -<tr> - <td>type</td> - <td>password</td> - <td>admin</td> -</tr> -<tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> -</tr> -<tr> - <td>open</td> - <td>/measures/manage</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*My Measures Filters*</td> -</tr> -<tr> - <td>assertNotText</td> - <td>shared-filters</td> - <td>*user_${FILTER_NAME}*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timeline-widget/should-display-even-if-one-missing-metric.html b/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timeline-widget/should-display-even-if-one-missing-metric.html deleted file mode 100644 index 1b23ceab818..00000000000 --- a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timeline-widget/should-display-even-if-one-missing-metric.html +++ /dev/null @@ -1,35 +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" /> -<title>timeline</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">timeline</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/widget?id=timeline&resource=sample&metric1=complexity&metric2=commits</td> - <td></td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>timeline-chart-1</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Complexity*</td> -</tr> -<tr> - <td>assertTextNotPresent</td> - <td>block_1</td> - <td>*Commits*</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timeline-widget/timeline-widget.html b/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timeline-widget/timeline-widget.html deleted file mode 100644 index ef8294aa227..00000000000 --- a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timeline-widget/timeline-widget.html +++ /dev/null @@ -1,40 +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" /> -<title>timeline</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">timeline</td></tr> -</thead><tbody> - <tr> - <td>open</td> - <td>/widget?id=timeline&resource=sample&metric1=complexity&metric2=ncloc&chartTitle=MyWidget</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>timeline-chart-1</td> - <td></td> -</tr> -<tr> - <td>assertElementPresent</td> - <td>//h3[text()='MyWidget']</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Complexity*</td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Lines of Code*</td> -</tr> -</tbody></table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/should-display-empty-table-if-no-measure.html b/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/should-display-empty-table-if-no-measure.html deleted file mode 100644 index f7d15b04500..00000000000 --- a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/should-display-empty-table-if-no-measure.html +++ /dev/null @@ -1,34 +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"/> - <title>should-display-empty-table-if-no-measure</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">time_machine</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=time_machine&resource=sample&metric1=coverage&metric2=line_coverage&metric3=tests&displaySparkLine=true</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Coverage*Line Coverage*Unit Tests*</td> - </tr> - <tr> - <td>assertElementNotPresent</td> - <td>//img</td> - <td></td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/should-exclude-new-metrics.html b/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/should-exclude-new-metrics.html deleted file mode 100644 index f8610592a9c..00000000000 --- a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/should-exclude-new-metrics.html +++ /dev/null @@ -1,74 +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"/> - <title>should-exclude-new-metrics</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-exclude-new-metrics</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/new</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=Configure widgets</td> - <td></td> - </tr> - <tr> - <td>waitForTextPresent</td> - <td>History Table</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>id=add-widget-time_machine</td> - <td></td> - </tr> - <tr> - <td>waitForTextPresent</td> - <td>History Table</td> - <td></td> - </tr> - <tr> - <td>assertElementPresent</td> - <td>//option[text()='Overall Condition Coverage']</td> - <td></td> - </tr> - <tr> - <td>assertElementNotPresent</td> - <td>//div[@class='widget_props' and @style='']//option[text()='Overall New Condition Coverage']</td> - <td></td> - </tr> - <tr> - <td>click</td> - <td>link=Delete</td> - <td></td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/time-machine-widget.html b/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/time-machine-widget.html deleted file mode 100644 index b5f8b4c2284..00000000000 --- a/it/it-tests/src/test/resources/measureHistory/HistoryUiTest/history-timemachine-widget/time-machine-widget.html +++ /dev/null @@ -1,45 +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" /> -<title>time_machine</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">time_machine</td></tr> -</thead><tbody> - <tr> - <td>open</td> - <td>/widget?id=time_machine&resource=sample&metric1=complexity&metric2=ncloc&metric3=violations&displaySparkLine=true&title=ViveLeSud</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*ViveLeSud*</td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Complexity*6*11*</td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Lines of Code*24*40*</td> -</tr> -<tr> - <td>waitForText</td> - <td>block_1</td> - <td>*Issues*26*43*</td> -</tr> -<tr> - <td>waitForElementPresent</td> - <td>css=svg path</td> - <td></td> -</tr> -</tbody></table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should-display-period-alerts-correctly.html b/it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should-display-period-alerts-correctly.html deleted file mode 100644 index 3a1f8699e13..00000000000 --- a/it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should-display-period-alerts-correctly.html +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ 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. - --> - -<!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-alerts-correctly-history-page</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-display-alerts-correctly-history-page</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/sessions/login</td> - <td></td> - </tr> - <tr> - <td>type</td> - <td>login</td> - <td>admin</td> - </tr> - <tr> - <td>type</td> - <td>password</td> - <td>admin</td> - </tr> - <tr> - <td>clickAndWait</td> - <td>commit</td> - <td></td> - </tr> - <tr> - <td>waitForElementPresent</td> - <td>css=.js-user-authenticated</td> - <td></td> - </tr> - <tr> - <td>open</td> - <td>/widget?id=alerts&resource=sample</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>class=alerts</td> - <td>glob:*Lines*0 < 10*since previous analysis*</td> - </tr> - <tr> - <td>waitForText</td> - <td>class=alert_ERROR</td> - <td>0</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/display-differential-values.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/display-differential-values.html deleted file mode 100644 index de5a4b33d1b..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/display-differential-values.html +++ /dev/null @@ -1,35 +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"/> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=debt_overview&resource=com.sonarsource.it.samples:multi-modules-sample&period=1<br/><br/> - </td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>body</td> - <td>*29.1% (-1.2)*</td> - </tr> - <tr> - <td>waitForText</td> - <td>body</td> - <td>*C*</td> - </tr> - <!--No diff value is displayed on the maintainability rating--> - <tr> - <td>assertNotText</td> - <td>body</td> - <td>*C (*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-have-correct-values.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-have-correct-values.html deleted file mode 100644 index 6b7091b7662..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-have-correct-values.html +++ /dev/null @@ -1,28 +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"/> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-have-correct-values</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=debt_overview&resource=com.sonarsource.it.samples:multi-modules-sample</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>body</td> - <td>*Maintainability Rating*C*Technical Debt Ratio*29.1%*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-open-links-on-measures-service.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-open-links-on-measures-service.html deleted file mode 100644 index 97a8cec43cc..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/debt-overview/should-open-links-on-measures-service.html +++ /dev/null @@ -1,48 +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"/> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-open-links-on-measures-service</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=debt_overview&resource=com.sonarsource.it.samples:multi-modules-sample</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=C</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>content</td> - <td>*Maintainability Rating*C*</td> - </tr> - <tr> - <td>open</td> - <td>/widget?id=debt_overview&resource=com.sonarsource.it.samples:multi-modules-sample</td> - <td></td> - </tr> - <tr> - <td>clickAndWait</td> - <td>link=29.1%</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>content</td> - <td>*Technical Debt Ratio*29.1%*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/display-differential-values.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/display-differential-values.html deleted file mode 100644 index 53d098987af..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/display-differential-values.html +++ /dev/null @@ -1,24 +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"/> - <title>display-differential-values</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=rules&resource=com.sonarsource.it.samples:multi-modules-sample&period=1</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>block_1</td> - <td>*7h 25min*(+1h 58min)*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/is-in-issues-widget.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/is-in-issues-widget.html deleted file mode 100644 index 60d52a22fae..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/is-in-issues-widget.html +++ /dev/null @@ -1,24 +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"/> - <title>display-differential-values</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=rules&amp;resource=com.sonarsource.it.samples:multi-modules-sample</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>body</td> - <td>*Technical Debt*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-have-correct-values.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-have-correct-values.html deleted file mode 100644 index fe9e416e7a4..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-have-correct-values.html +++ /dev/null @@ -1,29 +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"/> - <title>should-have-correct-values</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-have-correct-values</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=rules&resource=com.sonarsource.it.samples:multi-modules-sample</td> - <td></td> - </tr> - <tr> - <td>waitForText</td> - <td>block_1</td> - <td>*7h 25min*</td> - </tr> - </tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-open-remediation-cost-on-measures-service.html b/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-open-remediation-cost-on-measures-service.html deleted file mode 100644 index 1bbedd07fb5..00000000000 --- a/it/it-tests/src/test/resources/qualityModel/TechnicalDebtWidgetTest/technical-debt/should-open-remediation-cost-on-measures-service.html +++ /dev/null @@ -1,39 +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"/> - <title>should-open-remediationcost-on-drilldown-service</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">should-open-remediationcost-on-drilldown-service</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=rules&resource=com.sonarsource.it.samples:multi-modules-sample</td> - <td></td> -</tr> -<tr> - <td>clickAndWait</td> - <td>link=7h 25min</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*Technical Debt*7h 25min*</td> -</tr> -<tr> - <td>waitForText</td> - <td>content</td> - <td>*HelloA1*</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/settings/SettingsTest/settings-default-value.html b/it/it-tests/src/test/resources/settings/SettingsTest/settings-default-value.html deleted file mode 100644 index cb585def8c8..00000000000 --- a/it/it-tests/src/test/resources/settings/SettingsTest/settings-default-value.html +++ /dev/null @@ -1,29 +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"/> - <title>settings-default-value</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> - <thead> - <tr> - <td rowspan="1" colspan="3">settings-default-value</td> - </tr> - </thead> - <tbody> - <tr> - <td>open</td> - <td>/widget?id=widget-displaying-properties</td> - <td></td> -</tr> -<tr> - <td>waitForText</td> - <td>some-property</td> - <td>aDefaultValue</td> -</tr> -</tbody> -</table> -</body> -</html> diff --git a/it/it-tests/src/test/resources/user/LocalAuthenticationTest/allow_users_to_sign_up.html b/it/it-tests/src/test/resources/user/LocalAuthenticationTest/allow_users_to_sign_up.html index 7538eaf5a11..f2f7881c084 100644 --- a/it/it-tests/src/test/resources/user/LocalAuthenticationTest/allow_users_to_sign_up.html +++ b/it/it-tests/src/test/resources/user/LocalAuthenticationTest/allow_users_to_sign_up.html @@ -55,8 +55,8 @@ </tr> <tr> <td>waitForText</td> - <td>infomsg</td> - <td>*Please log in*</td> + <td>global-navigation</td> + <td>*Log in*</td> </tr> <tr> <td>open</td> |