diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-11-19 11:14:37 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-11-19 11:14:37 +0100 |
commit | 609186f5b2ca9f0adaa4a2ebc98e3d86864e8642 (patch) | |
tree | f6532ee325a43f2be905d190904bfb6c44cc55c5 /it | |
parent | 680eb44f7a4fee9d6a3c5d38b09233dec0ffa8ed (diff) | |
download | sonarqube-609186f5b2ca9f0adaa4a2ebc98e3d86864e8642.tar.gz sonarqube-609186f5b2ca9f0adaa4a2ebc98e3d86864e8642.zip |
add QG large test
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java | 8 | ||||
-rw-r--r-- | it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should_display_quality_gates_page.html | 59 |
2 files changed, 67 insertions, 0 deletions
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 94fc1646481..f1798e5134e 100644 --- a/it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java +++ b/it/it-tests/src/test/java/it/qualityGate/QualityGateUiTest.java @@ -113,6 +113,14 @@ public class QualityGateUiTest { qgClient.destroy(qGate.id()); } + @Test + public void should_display_quality_gates_page() { + Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("should_display_quality_gates_page", + "/qualityGate/QualityGateUiTest/should_display_quality_gates_page.html" + ).build(); + new SeleneseTest(selenese).runOn(orchestrator); + } + private void scanSample() { scanSample(null, null); } diff --git a/it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should_display_quality_gates_page.html b/it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should_display_quality_gates_page.html new file mode 100644 index 00000000000..b6a532946ed --- /dev/null +++ b/it/it-tests/src/test/resources/qualityGate/QualityGateUiTest/should_display_quality_gates_page.html @@ -0,0 +1,59 @@ +<?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_quality_gates_page</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> + <thead> + <tr> + <td rowspan="1" colspan="3">should_display_quality_gates_page</td> + </tr> + </thead> + <tbody> + <tr> + <td>open</td> + <td>/sonar/quality_gates</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>css=.js-list a</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>css=.js-list a</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>css=.js-conditions</td> + <td></td> +</tr> +</tbody> +</table> +</body> +</html> |