@@ -11,10 +11,9 @@ env: | |||
- JOB=MYSQL | |||
- JOB=WEB | |||
- JOB=ITS IT_CATEGORY=issue | |||
- JOB=ITS IT_CATEGORY=measure | |||
- JOB=ITS IT_CATEGORY=analysis | |||
- JOB=ITS IT_CATEGORY=plugins | |||
- JOB=ITS IT_CATEGORY=qualitygate | |||
- JOB=ITS IT_CATEGORY=testing | |||
- JOB=ITS IT_CATEGORY=ui | |||
- JOB=ITS IT_CATEGORY=updatecenter | |||
@@ -17,8 +17,15 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package measure.suite; | |||
package analysis.suite; | |||
import analysis.suite.measure.CustomMeasuresTest; | |||
import analysis.suite.measure.MeasureFiltersTest; | |||
import analysis.suite.measure.TimeMachineTest; | |||
import analysis.suite.testing.CoverageTest; | |||
import analysis.suite.testing.CoverageTrackingTest; | |||
import analysis.suite.testing.NewCoverageTest; | |||
import analysis.suite.testing.TestExecutionTest; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import org.junit.ClassRule; | |||
import org.junit.runner.RunWith; | |||
@@ -26,8 +33,16 @@ import org.junit.runners.Suite; | |||
import util.ItUtils; | |||
@RunWith(Suite.class) | |||
@Suite.SuiteClasses({CustomMeasuresTest.class, MeasureFiltersTest.class, TimeMachineTest.class}) | |||
public class MeasuresTestSuite { | |||
@Suite.SuiteClasses({ | |||
CustomMeasuresTest.class, | |||
MeasureFiltersTest.class, | |||
TimeMachineTest.class, | |||
CoverageTrackingTest.class, | |||
CoverageTest.class, | |||
NewCoverageTest.class, | |||
TestExecutionTest.class | |||
}) | |||
public class AnalysisTestSuite { | |||
@ClassRule | |||
public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv() |
@@ -17,8 +17,9 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package measure.suite; | |||
package analysis.suite.measure; | |||
import analysis.suite.AnalysisTestSuite; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
import java.util.regex.Matcher; | |||
@@ -37,7 +38,7 @@ public class CustomMeasuresTest { | |||
public static final String PROJECT_KEY = "sample"; | |||
@ClassRule | |||
public static Orchestrator orchestrator = MeasuresTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = AnalysisTestSuite.ORCHESTRATOR; | |||
@Before | |||
public void deleteProjects() { |
@@ -17,8 +17,9 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package measure.suite; | |||
package analysis.suite.measure; | |||
import analysis.suite.AnalysisTestSuite; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
import com.sonar.orchestrator.selenium.Selenese; | |||
@@ -35,7 +36,7 @@ import static util.ItUtils.projectDir; | |||
public class MeasureFiltersTest { | |||
@ClassRule | |||
public static Orchestrator orchestrator = MeasuresTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = AnalysisTestSuite.ORCHESTRATOR; | |||
@BeforeClass | |||
public static void scanStruts() { |
@@ -17,8 +17,9 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package measure.suite; | |||
package analysis.suite.measure; | |||
import analysis.suite.AnalysisTestSuite; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.BuildResult; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
@@ -41,7 +42,7 @@ public class TimeMachineTest { | |||
private static final String PROJECT = "sample"; | |||
@ClassRule | |||
public static Orchestrator orchestrator = MeasuresTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = AnalysisTestSuite.ORCHESTRATOR; | |||
@BeforeClass | |||
public static void initialize() { |
@@ -3,7 +3,7 @@ | |||
* All rights reserved | |||
* mailto:contact AT sonarsource DOT com | |||
*/ | |||
package testing.suite; | |||
package analysis.suite.testing; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
@@ -18,13 +18,14 @@ import org.skyscreamer.jsonassert.JSONAssert; | |||
import org.sonar.wsclient.services.Resource; | |||
import org.sonar.wsclient.services.ResourceQuery; | |||
import static analysis.suite.AnalysisTestSuite.ORCHESTRATOR; | |||
import static org.assertj.core.api.Assertions.assertThat; | |||
import static util.ItUtils.projectDir; | |||
public class CoverageTest { | |||
@ClassRule | |||
public static Orchestrator orchestrator = TestingTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = ORCHESTRATOR; | |||
private static final String[] ALL_COVERAGE_METRICS = new String[] { | |||
"line_coverage", "lines_to_cover", "uncovered_lines", "branch_coverage", "conditions_to_cover", "uncovered_conditions", "coverage", | |||
@@ -56,7 +57,7 @@ public class CoverageTest { | |||
assertThat(project.getMeasureValue("overall_coverage")).isNull(); | |||
String coverage = orchestrator.getServer().adminWsClient().get("api/sources/lines", "key", "sample-ut-coverage:src/main/xoo/sample/Sample.xoo"); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("CoverageTest/unit_test_coverage-expected.json"), "UTF-8"), coverage, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/CoverageTest/unit_test_coverage-expected.json"), "UTF-8"), coverage, false); | |||
verifyComputeEngineTempDirIsEmpty(); | |||
} | |||
@@ -79,7 +80,7 @@ public class CoverageTest { | |||
assertThat(project.getMeasureValue("overall_coverage")).isNull(); | |||
String coverage = orchestrator.getServer().adminWsClient().get("api/sources/lines", "key", "sample-ut-coverage:src/main/xoo/sample/Sample.xoo"); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("CoverageTest/unit_test_coverage_no_condition-expected.json"), "UTF-8"), coverage, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/CoverageTest/unit_test_coverage_no_condition-expected.json"), "UTF-8"), coverage, false); | |||
verifyComputeEngineTempDirIsEmpty(); | |||
} | |||
@@ -102,7 +103,7 @@ public class CoverageTest { | |||
assertThat(project.getMeasureValue("overall_coverage")).isNull(); | |||
String coverage = orchestrator.getServer().adminWsClient().get("api/sources/lines", "key", "sample-it-coverage:src/main/xoo/sample/Sample.xoo"); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("CoverageTest/it_coverage-expected.json"), "UTF-8"), coverage, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/CoverageTest/it_coverage-expected.json"), "UTF-8"), coverage, false); | |||
verifyComputeEngineTempDirIsEmpty(); | |||
} | |||
@@ -137,7 +138,7 @@ public class CoverageTest { | |||
assertThat(project.getMeasureValue("overall_coverage")).isEqualTo(62.5); | |||
String coverage = orchestrator.getServer().adminWsClient().get("api/sources/lines", "key", "sample-overall-coverage:src/main/xoo/sample/Sample.xoo"); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("CoverageTest/ut_and_it_coverage-expected.json"), "UTF-8"), coverage, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/CoverageTest/ut_and_it_coverage-expected.json"), "UTF-8"), coverage, false); | |||
verifyComputeEngineTempDirIsEmpty(); | |||
} |
@@ -3,7 +3,7 @@ | |||
* All rights reserved | |||
* mailto:contact AT sonarsource DOT com | |||
*/ | |||
package testing.suite; | |||
package analysis.suite.testing; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
@@ -15,12 +15,13 @@ import org.junit.ClassRule; | |||
import org.junit.Test; | |||
import org.skyscreamer.jsonassert.JSONAssert; | |||
import static analysis.suite.AnalysisTestSuite.ORCHESTRATOR; | |||
import static util.ItUtils.projectDir; | |||
public class CoverageTrackingTest { | |||
@ClassRule | |||
public static Orchestrator orchestrator = TestingTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = ORCHESTRATOR; | |||
@Before | |||
public void delete_data() { | |||
@@ -32,11 +33,11 @@ public class CoverageTrackingTest { | |||
orchestrator.executeBuilds(SonarRunner.create(projectDir("testing/xoo-sample-with-coverage-per-test"))); | |||
String tests = orchestrator.getServer().adminWsClient().get("api/tests/list", "testFileKey", "sample-with-tests:src/test/xoo/sample/SampleTest.xoo"); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("CoverageTrackingTest/tests-expected.json"), "UTF-8"), tests, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/CoverageTrackingTest/tests-expected.json"), "UTF-8"), tests, false); | |||
String covered_files = orchestrator.getServer().adminWsClient() | |||
.get("api/tests/covered_files", "testUuid", extractSuccessfulTestUuid(tests)); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("CoverageTrackingTest/covered_files-expected.json"), "UTF-8"), covered_files, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/CoverageTrackingTest/covered_files-expected.json"), "UTF-8"), covered_files, false); | |||
} | |||
private String extractSuccessfulTestUuid(String json) { |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package testing.suite; | |||
package analysis.suite.testing; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
@@ -28,13 +28,14 @@ import org.junit.Test; | |||
import org.sonar.wsclient.services.Resource; | |||
import org.sonar.wsclient.services.ResourceQuery; | |||
import static analysis.suite.AnalysisTestSuite.ORCHESTRATOR; | |||
import static org.assertj.core.api.Assertions.assertThat; | |||
import static util.ItUtils.projectDir; | |||
public class NewCoverageTest { | |||
@ClassRule | |||
public static Orchestrator orchestrator = TestingTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = ORCHESTRATOR; | |||
private static final String PROJECT_KEY = "sample-new-coverage"; | |||
@@ -3,7 +3,7 @@ | |||
* All rights reserved | |||
* mailto:contact AT sonarsource DOT com | |||
*/ | |||
package testing.suite; | |||
package analysis.suite.testing; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import com.sonar.orchestrator.build.SonarRunner; | |||
@@ -15,13 +15,14 @@ import org.skyscreamer.jsonassert.JSONAssert; | |||
import org.sonar.wsclient.services.Resource; | |||
import org.sonar.wsclient.services.ResourceQuery; | |||
import static analysis.suite.AnalysisTestSuite.ORCHESTRATOR; | |||
import static org.assertj.core.api.Assertions.assertThat; | |||
import static util.ItUtils.projectDir; | |||
public class TestExecutionTest { | |||
@ClassRule | |||
public static Orchestrator orchestrator = TestingTestSuite.ORCHESTRATOR; | |||
public static Orchestrator orchestrator = ORCHESTRATOR; | |||
@Before | |||
public void delete_data() { | |||
@@ -42,6 +43,6 @@ public class TestExecutionTest { | |||
assertThat(project.getMeasureIntValue("test_execution_time")).isEqualTo(8); | |||
String json = orchestrator.getServer().adminWsClient().get("api/tests/list", "testFileKey", "sample-with-tests:src/test/xoo/sample/SampleTest.xoo"); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("TestExecutionTest/expected.json"), "UTF-8"), json, false); | |||
JSONAssert.assertEquals(IOUtils.toString(this.getClass().getResourceAsStream("/testing/suite/TestExecutionTest/expected.json"), "UTF-8"), json, false); | |||
} | |||
} |
@@ -1,27 +0,0 @@ | |||
/* | |||
* Copyright (C) 2009-2014 SonarSource SA | |||
* All rights reserved | |||
* mailto:contact AT sonarsource DOT com | |||
*/ | |||
package testing.suite; | |||
import com.sonar.orchestrator.Orchestrator; | |||
import org.junit.ClassRule; | |||
import org.junit.runner.RunWith; | |||
import org.junit.runners.Suite; | |||
import util.ItUtils; | |||
@RunWith(Suite.class) | |||
@Suite.SuiteClasses({ | |||
CoverageTrackingTest.class, | |||
CoverageTest.class, | |||
NewCoverageTest.class, | |||
TestExecutionTest.class | |||
}) | |||
public class TestingTestSuite { | |||
@ClassRule | |||
public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv() | |||
.addPlugin(ItUtils.xooPlugin()) | |||
.build(); | |||
} |
@@ -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_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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>open</td> | |||
<td>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</td> | |||
</tr> | |||
<tr> | |||
<td>assertSelectedLabel</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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_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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>open</td> | |||
<td>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</td> | |||
</tr> | |||
<tr> | |||
<td>assertSelectedLabel</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>/sonar/measures/search</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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> |
@@ -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>/sonar/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> |
@@ -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>/sonar/</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> |
@@ -1,84 +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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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>select</td> | |||
<td>select-metric</td> | |||
<td>Complexity</td> | |||
</tr> | |||
<tr> | |||
<td>clickAndWait</td> | |||
<td>id=add-metric</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>measures-table</td> | |||
<td>*Name*Cmpx*</td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>select-metric</td> | |||
<td>Comment lines</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>assertText</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>assertText</td> | |||
<td>measures-table</td> | |||
<td>*Name*Cmpx*Comment lines*last*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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>assertText</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>assertText</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> |
@@ -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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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>assertText</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>assertText</td> | |||
<td>measures-table</td> | |||
<td>*Last Analysis*LOC*Name*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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>assertText</td> | |||
<td>measures-table</td> | |||
<td>*b2/HelloB2.xoo*b1/HelloB1.xoo*a2/HelloA2.xoo*a1/HelloA1.xoo*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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>assertText</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>assertText</td> | |||
<td>measures-table</td> | |||
<td>*a2/HelloA2.xoo*a1/HelloA1.xoo*b1/HelloB1.xoo*b2/HelloB2.xoo*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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>assertText</td> | |||
<td>css=#measures-table tfoot</td> | |||
<td>*4 results*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>measures-table</td> | |||
<td>*a1/HelloA1.xoo*b1/HelloB1.xoo*b2/HelloB2.xoo*a2/HelloA2.xoo*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,90 +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_widget</title> | |||
</head> | |||
<body> | |||
<table cellpadding="1" cellspacing="1" border="1"> | |||
<tbody> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>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('/').last()</td> | |||
<td>FILTER_ID</td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/widget?id=measure_filter_list&filter=${FILTER_ID}</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>block_1</td> | |||
<td>*Name*Version*LOC*Last Analysis*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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> |
@@ -1,144 +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_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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>open</td> | |||
<td>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForText</td> | |||
<td>class=navigator-filters</td> | |||
<td>*More Criteria*</td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</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('/').last()</td> | |||
<td>FILTER_ID</td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/widget?id=measure_filter_list&filter=${FILTER_ID}</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>block_1</td> | |||
<td>*Name*LOC*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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> | |||
<td>block_1</td> | |||
<td>*a2/HelloA2.xoo*a1/HelloA1.xoo*b1/HelloB1.xoo*b2/HelloB2.xoo*</td> | |||
</tr> | |||
<tr> | |||
<td>click</td> | |||
<td>link=LOC</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForText</td> | |||
<td>block_1</td> | |||
<td>*HelloA1*HelloB1*HelloB2*HelloA2*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>/sonar/widget?id=measure_filter_list</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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> |
@@ -1,121 +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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>/sonar/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>assertText</td> | |||
<td>filter-description</td> | |||
<td>*description with special characters " ' éà*</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>assertText</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> | |||
@@ -1,69 +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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Projects</td> | |||
</tr> | |||
<tr> | |||
<td>type</td> | |||
<td>name=keySearch</td> | |||
<td>multi-modules</td> | |||
</tr> | |||
<tr> | |||
<td>clickAndWait</td> | |||
<td>class=navigator-filter-submit</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>measures-table</td> | |||
<td>*Sonar :: Integration Tests :: Multi-modules Sample*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>css=#measures-table tfoot</td> | |||
<td>*1 results*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,69 +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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Projects</td> | |||
</tr> | |||
<tr> | |||
<td>type</td> | |||
<td>name=nameSearch</td> | |||
<td>Integration</td> | |||
</tr> | |||
<tr> | |||
<td>clickAndWait</td> | |||
<td>class=navigator-filter-submit</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>measures-table</td> | |||
<td>*Sonar :: Integration Tests :: Multi-modules Sample*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>css=#measures-table tfoot</td> | |||
<td>*1 results*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Files</td> | |||
</tr> | |||
<tr> | |||
<td>clickAndWait</td> | |||
<td>class=navigator-filter-submit</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>assertText</td> | |||
<td>measures-table</td> | |||
<td>*a1/HelloA1.xoo*a2/HelloA2.xoo*b1/HelloB1.xoo*b2/HelloB2.xoo*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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> |
@@ -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>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Projects</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>assertText</td> | |||
<td>measures-table</td> | |||
<td>*Sonar :: Integration Tests :: Multi-modules Sample*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -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>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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/sessions/new</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>type</td> | |||
<td>login</td> | |||
<td>user-measures-filter-with-no-share-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>open</td> | |||
<td>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Projects</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>assertNotText</td> | |||
<td>save-as-filter-form</td> | |||
<td>*Shared with all users*</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}*Private*</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,249 +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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>open</td> | |||
<td>/sonar/measures</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForElementPresent</td> | |||
<td>name=qualifiers[]</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>select</td> | |||
<td>name=qualifiers[]</td> | |||
<td>Projects</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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>/sonar/measures/manage</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>waitForText</td> | |||
<td>content</td> | |||
<td>*My Measures Filters*</td> | |||
</tr> | |||
<tr> | |||
<td>assertText</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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>open</td> | |||
<td>/sonar/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>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>/sonar/sessions/logout</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td>open</td> | |||
<td>/sonar/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>/sonar/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> |