diff options
Diffstat (limited to 'tests/src/test/resources/measure')
7 files changed, 293 insertions, 0 deletions
diff --git a/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html b/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html new file mode 100644 index 00000000000..ac440b184aa --- /dev/null +++ b/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="selenium.base" href="http://localhost:49506"/> + <title>test_project_overview_after_first_analysis</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> + <thead> + <tr> + <td rowspan="1" colspan="3">test_project_overview_after_first_analysis</td> + </tr> + </thead> + <tbody> + <tr> + <td>open</td> + <td>/dashboard?id=project-for-overview</td> + <td></td> + </tr> + <tr> + <td>waitForText</td> + <td>id=content</td> + <td>*Quality Gate*Passed*</td> + </tr> + <tr> + <td>waitForText</td> + <td>id=overview-code-smells</td> + <td>*0*A*Debt*0*Code Smells*</td> + </tr> + <tr> + <td>waitForText</td> + <td>id=content</td> + <td>*0.0%*Duplications*0*Duplicated Blocks*</td> + </tr> + <tr> + <td>assertNotText</td> + <td>id=content</td> + <td>*Coverage*</td> + </tr> + <tr> + <td>waitForText</td> + <td>id=content</td> + <td>*Quality Gate*SonarQube way*</td> + </tr> + <tr> + <td>waitForText</td> + <td>id=content</td> + <td>*Quality Profiles*Xoo*Basic*</td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html b/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html new file mode 100644 index 00000000000..4c5a77a9545 --- /dev/null +++ b/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html @@ -0,0 +1,49 @@ +<?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_measure_drilldown</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> + <tbody> + <tr> + <td>open</td> + <td>/component_measures?id=project-measures-page-test-project</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=measure-code_smells</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>id=measure-code_smells-value</td> + <td>*0*</td> +</tr> +<tr> + <td>assertText</td> + <td>id=measure-new_code_smells-leak</td> + <td>*0*</td> +</tr> +<tr> + <td>click</td> + <td>css=#measure-code_smells > a</td> + <td></td> +</tr> +<tr> + <td>waitForText</td> + <td>content</td> + <td>*Code Smells*0*</td> +</tr> +<tr> + <td>waitForText</td> + <td>content</td> + <td>*src/main/xoo/sample*</td> +</tr> +</tbody> +</table> +</body> +</html> diff --git a/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html b/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html new file mode 100644 index 00000000000..e68d8b87dfb --- /dev/null +++ b/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title>should_drilldown_on_list_view</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> + <tbody> + <tr> + <td>open</td> + <td>/component_measures/metric/ncloc/list?id=project-measures-page-test-project</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td>*src/main/xoo/sample/Sample.xoo*</td> +</tr> +<tr> + <td>assertText</td> + <td>id=component-measures-component-measure-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo-ncloc</td> + <td>*13*</td> +</tr> +<tr> + <td>click</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>css=.source-line-code</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>css=.component-measures-breadcrumbs</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=component-measures-breadcrumb-project-measures-page-test-project</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>css=.component-measures-breadcrumbs</td> + <td>*Sample.xoo*13*</td> +</tr> +<tr> + <td>click</td> + <td>id=component-measures-breadcrumb-project-measures-page-test-project</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td></td> +</tr> +</tbody> +</table> +</body> +</html> diff --git a/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html b/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html new file mode 100644 index 00000000000..489c9d93afc --- /dev/null +++ b/tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html @@ -0,0 +1,84 @@ +<?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_drilldown_on_tree_view</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> + <tbody> + <tr> + <td>open</td> + <td>/component_measures/metric/ncloc/tree?id=project-measures-page-test-project</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample</td> + <td>*src/main/xoo/sample*</td> +</tr> +<tr> + <td>assertText</td> + <td>id=component-measures-component-measure-project-measures-page-test-project:src/main/xoo/sample-ncloc</td> + <td>*13*</td> +</tr> +<tr> + <td>click</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td>*src/main/xoo/sample/Sample.xoo*</td> +</tr> +<tr> + <td>assertText</td> + <td>id=component-measures-component-measure-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo-ncloc</td> + <td>*13*</td> +</tr> +<tr> + <td>assertText</td> + <td>css=.component-measures-breadcrumbs</td> + <td>*ProjectMeasuresPageTest Project*src/main/xoo/sample*13*</td> +</tr> +<tr> + <td>click</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample/Sample.xoo</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>css=.source-line-code</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>css=.component-measures-breadcrumbs</td> + <td>*ProjectMeasuresPageTest Project*src/main/xoo/sample*13*Sample.xoo*13*</td> +</tr> +<tr> + <td>click</td> + <td>id=component-measures-breadcrumb-project-measures-page-test-project</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>id=component-measures-component-link-project-measures-page-test-project:src/main/xoo/sample</td> + <td></td> +</tr> +</tbody> +</table> +</body> +</html> diff --git a/tests/src/test/resources/measure/one-issue-per-file.xml b/tests/src/test/resources/measure/one-issue-per-file.xml new file mode 100644 index 00000000000..7193ebfd779 --- /dev/null +++ b/tests/src/test/resources/measure/one-issue-per-file.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<profile> + <name>one-issue-per-file</name> + <language>xoo</language> + <rules> + <rule> + <repositoryKey>xoo</repositoryKey> + <key>OneIssuePerFile</key> + <priority>MINOR</priority> + </rule> + </rules> +</profile> diff --git a/tests/src/test/resources/measure/one-issue-per-line-profile.xml b/tests/src/test/resources/measure/one-issue-per-line-profile.xml new file mode 100644 index 00000000000..521adc7e06f --- /dev/null +++ b/tests/src/test/resources/measure/one-issue-per-line-profile.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<profile> + <name>one-issue-per-line</name> + <language>xoo</language> + <rules> + <rule> + <repositoryKey>xoo</repositoryKey> + <key>OneIssuePerLine</key> + <priority>MINOR</priority> + </rule> + </rules> +</profile>
\ No newline at end of file diff --git a/tests/src/test/resources/measure/one-issue-per-line.xml b/tests/src/test/resources/measure/one-issue-per-line.xml new file mode 100644 index 00000000000..365aa896a73 --- /dev/null +++ b/tests/src/test/resources/measure/one-issue-per-line.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<profile> + <name>one-issue-per-line</name> + <language>xoo</language> + <rules> + <rule> + <repositoryKey>xoo</repositoryKey> + <key>OneIssuePerLine</key> + <priority>MINOR</priority> + </rule> + </rules> +</profile> |