]> source.dussan.org Git - sonarqube.git/blob
dd5f99b68ff58a40924b256c2e87522269d99ff1
[sonarqube.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6     <title>should_save_issue_filters</title>
7 </head>
8 <body>
9 <table cellpadding="1" cellspacing="1" border="1">
10 <tbody>
11 <tr>
12         <td>storeEval</td>
13         <td>'filter_'+(new Date()).getTime()</td>
14         <td>FILTER_NAME</td>
15 </tr>
16 <tr>
17     <td>open</td>
18     <td>/sessions/logout</td>
19         <td></td>
20 </tr>
21 <tr>
22         <td>open</td>
23         <td>/sessions/new</td>
24         <td></td>
25 </tr>
26 <tr>
27         <td>type</td>
28         <td>login</td>
29         <td>user-measures-filter-with-sharing-perm</td>
30 </tr>
31 <tr>
32         <td>type</td>
33         <td>password</td>
34         <td>password</td>
35 </tr>
36 <tr>
37         <td>clickAndWait</td>
38         <td>commit</td>
39         <td></td>
40 </tr>
41 <tr>
42         <td>open</td>
43         <td>/measures</td>
44         <td></td>
45 </tr>
46 <tr>
47     <td>click</td>
48     <td>css=.navigator-filter[title='Components: Any']</td>
49     <td></td>
50 </tr>
51 <tr>
52     <td>click</td>
53     <td>css=label[title='Projects']</td>
54     <td></td>
55 </tr>
56 <tr>
57         <td>clickAndWait</td>
58         <td>class=navigator-filter-submit</td>
59         <td></td>
60 </tr>
61 <tr>
62         <td>click</td>
63         <td>id=save-as</td>
64         <td></td>
65 </tr>
66 <tr>
67         <td>waitForText</td>
68         <td>save-as-filter-form</td>
69         <td>*Save Filter*</td>
70 </tr>
71 <tr>
72         <td>type</td>
73         <td>id=name</td>
74         <td>user_${FILTER_NAME}</td>
75 </tr>
76 <tr>
77         <td>click</td>
78         <td>id=shared</td>
79         <td></td>
80 </tr>
81 <tr>
82         <td>click</td>
83         <td>id=save-as-submit</td>
84         <td></td>
85 </tr>
86 <tr>
87         <td>waitForText</td>
88         <td>filter-title</td>
89         <td>*user_${FILTER_NAME}*Shared with all users*</td>
90 </tr>
91 <tr>
92     <td>open</td>
93     <td>/sessions/logout</td>
94         <td></td>
95 </tr>
96 <tr>
97         <td>open</td>
98         <td>/sessions/new</td>
99         <td></td>
100 </tr>
101 <tr>
102         <td>type</td>
103         <td>login</td>
104         <td>admin</td>
105 </tr>
106 <tr>
107         <td>type</td>
108         <td>password</td>
109         <td>admin</td>
110 </tr>
111 <tr>
112         <td>clickAndWait</td>
113         <td>commit</td>
114         <td></td>
115 </tr>
116 <tr>
117         <td>open</td>
118         <td>/measures/manage</td>
119         <td></td>
120 </tr>
121 <tr>
122         <td>waitForText</td>
123         <td>content</td>
124         <td>*My Measures Filters*</td>
125 </tr>
126 <tr>
127         <td>waitForText</td>
128         <td>shared-filters</td>
129         <td>*user_${FILTER_NAME}*</td>
130 </tr>
131 <tr>
132         <td>click</td>
133         <td>id=star-user_${FILTER_NAME}</td>
134         <td></td>
135 </tr>
136 <tr>
137     <td>open</td>
138     <td>/sessions/logout</td>
139         <td></td>
140 </tr>
141 <tr>
142         <td>open</td>
143         <td>/sessions/new</td>
144         <td></td>
145 </tr>
146 <tr>
147         <td>type</td>
148         <td>login</td>
149         <td>user-measures-filter-with-sharing-perm</td>
150 </tr>
151 <tr>
152         <td>type</td>
153         <td>password</td>
154         <td>password</td>
155 </tr>
156 <tr>
157         <td>clickAndWait</td>
158         <td>commit</td>
159         <td></td>
160 </tr>
161 <tr>
162         <td>open</td>
163         <td>/measures</td>
164         <td></td>
165 </tr>
166 <tr>
167         <td>click</td>
168         <td>class=navigator-filter-favorite</td>
169         <td></td>
170 </tr>
171 <tr>
172         <td>clickAndWait</td>
173         <td>id=manage-favorites</td>
174         <td></td>
175 </tr>
176 <tr>
177         <td>waitForText</td>
178         <td>my-filters</td>
179         <td>*user_${FILTER_NAME}*</td>
180 </tr>
181 <tr>
182         <td>click</td>
183         <td>id=edit_user_${FILTER_NAME}</td>
184         <td></td>
185 </tr>
186 <tr>
187         <td>waitForText</td>
188         <td>edit-filter-form</td>
189         <td>*Edit Filter*</td>
190 </tr>
191 <tr>
192         <td>click</td>
193         <td>shared</td>
194         <td></td>
195 </tr>
196 <tr>
197         <td>clickAndWait</td>
198         <td>id=save-submit</td>
199         <td></td>
200 </tr>
201 <tr>
202         <td>waitForText</td>
203         <td>filter-title</td>
204         <td>*user_${FILTER_NAME}*Private*</td>
205 </tr>
206 <tr>
207     <td>open</td>
208     <td>/sessions/logout</td>
209         <td></td>
210 </tr>
211 <tr>
212         <td>open</td>
213         <td>/sessions/new</td>
214         <td></td>
215 </tr>
216 <tr>
217         <td>type</td>
218         <td>login</td>
219         <td>admin</td>
220 </tr>
221 <tr>
222         <td>type</td>
223         <td>password</td>
224         <td>admin</td>
225 </tr>
226 <tr>
227         <td>clickAndWait</td>
228         <td>commit</td>
229         <td></td>
230 </tr>
231 <tr>
232         <td>open</td>
233         <td>/measures/manage</td>
234         <td></td>
235 </tr>
236 <tr>
237         <td>waitForText</td>
238         <td>content</td>
239         <td>*My Measures Filters*</td>
240 </tr>
241 <tr>
242         <td>assertNotText</td>
243         <td>shared-filters</td>
244         <td>*user_${FILTER_NAME}*</td>
245 </tr>
246 </tbody>
247 </table>
248 </body>
249 </html>