diff options
author | fmallet <freddy.mallet@gmail.com> | 2010-09-20 16:30:10 +0000 |
---|---|---|
committer | fmallet <freddy.mallet@gmail.com> | 2010-09-20 16:30:10 +0000 |
commit | f6eae0b6e62b99a5538e733e3f3961c00c24e967 (patch) | |
tree | a7394700110ce9f78ce574e6a9559cfe9c3e5b19 | |
parent | 6494a6d3e96967cccbb5898abad49bcec3c09693 (diff) | |
download | sonarqube-f6eae0b6e62b99a5538e733e3f3961c00c24e967.tar.gz sonarqube-f6eae0b6e62b99a5538e733e3f3961c00c24e967.zip |
Add a new integration test to test bulk operations on quality profiles
-rw-r--r-- | tests/integration/tests/src/it/selenium/profiles/bulk-change.html | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/tests/integration/tests/src/it/selenium/profiles/bulk-change.html b/tests/integration/tests/src/it/selenium/profiles/bulk-change.html new file mode 100644 index 00000000000..42c28dce64e --- /dev/null +++ b/tests/integration/tests/src/it/selenium/profiles/bulk-change.html @@ -0,0 +1,137 @@ +<?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:9000/" /> +<title>bulk-change</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">bulk-change</td></tr> +</thead><tbody> +<tr> + <td>store</td> + <td>java</td> + <td>LANGUAGE</td> +</tr> +<tr> + <td>store</td> + <td>javascript{'copied_'+(new Date()).getTime()}</td> + <td>PROFILE</td> +</tr> +<tr> + <td>open</td> + <td>/sessions/logout</td> + <td></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>open</td> + <td>/profiles</td> + <td></td> +</tr> +<tr> + <td>answerOnNextPrompt</td> + <td>${PROFILE}</td> + <td></td> +</tr> +<tr> + <td>clickAndWait</td> + <td>copy_${LANGUAGE}_Sonar%20way</td> + <td></td> +</tr> +<tr> + <td>answerOnNextPrompt</td> + <td>${PROFILE}</td> + <td></td> +</tr> +<tr> + <td>clickAndWait</td> + <td>rules-${LANGUAGE}-${PROFILE}</td> + <td></td> +</tr> +<tr> + <td>selectAndWait</td> + <td>bulk_action</td> + <td>label=Deactivate all</td> +</tr> +<tr> + <td>open</td> + <td>/profiles</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>activated_rules_${LANGUAGE}_${PROFILE}</td> + <td>0</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>rules-${LANGUAGE}-${PROFILE}</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>searchtext</td> + <td>unused</td> +</tr> +<tr> + <td>removeSelection</td> + <td>search_plugin</td> + <td>label=Any</td> +</tr> +<tr> + <td>addSelection</td> + <td>search_plugin</td> + <td>label=Checkstyle</td> +</tr> +<tr> + <td>select</td> + <td>search_status</td> + <td>label=Inactive</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>submit_search</td> + <td></td> +</tr> +<tr> + <td>selectAndWait</td> + <td>bulk_action</td> + <td>label=Activate all</td> +</tr> +<tr> + <td>open</td> + <td>/profiles</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>activated_rules_${LANGUAGE}_${PROFILE}</td> + <td>1</td> +</tr> + +</tbody></table> +</body> +</html> |