/[openfoncier]/trunk/tests/047_widgets_rss.robot
ViewVC logotype

Contents of /trunk/tests/047_widgets_rss.robot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17542 - (show annotations)
Thu Apr 25 13:27:12 2024 UTC (9 months ago) by softime
File size: 14969 byte(s)
chore(branch): fusion de la branche d'intégration 6.5.0-develop dans le trunk

1 *** Settings ***
2 Documentation Les widgets.
3
4 # On inclut les mots-clefs
5 Resource resources/resources.robot
6 # On ouvre/ferme le navigateur au début/à la fin du Test Suite.
7 Suite Setup For Suite Setup
8 Suite Teardown For Suite Teardown
9
10
11 *** Test Cases ***
12 Widget "RSS"
13 [Documentation] Ce widget lis les flux RSS.
14 # 3 paramètres présent :
15 # - urls = 1 ou 2 url séparé par une virgule
16 # - mode = client_side ou server_side
17 # - max_item = nb d'élément affiché donc un entier
18
19 # Copy des fichiers de flux rss dans /app pour y avoir accés
20 Copy Directory ..${/}tests${/}binary_files${/}rss ..${/}app${/}
21
22 ${url_rss_no_entry} = Set Variable ${PROJECT_URL}app/rss/rss_no_entry.xml
23 ${url_rss_1} = Set Variable ${PROJECT_URL}app/rss/rss_1.xml
24 ${url_rss_2} = Set Variable ${PROJECT_URL}app/rss/rss_2.xml
25
26 Depuis la page d'accueil admin admin
27
28 # Création des widget
29
30 # Widget RSS NO ENTRY CLIENT = urls=${url_rss_no_entry} mode = client_side max_item = 3
31 # Depuis la page d'ajout d'un widget
32 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form
33 Input Text libelle RSS NO ENTRY CLIENT
34 # Selection
35 Select From List By Label type file - le contenu du widget provient d'un script sur le serveur
36 Select From List By Label script rss
37 Input Text arguments urls=${url_rss_no_entry}\nmode=client_side\nmax_item=3
38 Click On Submit Button
39
40
41 # Widget RSS NO ENTRY SERVER = urls=${url_rss_no_entry} mode = client_side max_item = 3
42 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form
43 Input Text libelle RSS NO ENTRY SERVER
44 # Selection
45 Select From List By Label type file - le contenu du widget provient d'un script sur le serveur
46 Select From List By Label script rss
47 Input Text arguments urls=${url_rss_no_entry}\nmode=server_side\nmax_item=3
48 Click On Submit Button
49
50
51 # Widget RSS CLIENT 3items 1urls = urls=${url_rss_1} mode = client_side max_item = 3
52 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form
53 Input Text libelle RSS CLIENT 3items 1urls
54 # Selection
55 Select From List By Label type file - le contenu du widget provient d'un script sur le serveur
56 Select From List By Label script rss
57 Input Text arguments urls=${url_rss_1}\nmode=client_side\nmax_item=3
58 Click On Submit Button
59
60 # Widget RSS CLIENT 2items 2urls = urls=${url_rss_1},${url_rss_2} mode = client_side max_item = 2
61 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form
62 Input Text libelle RSS CLIENT 3items 2urls
63 # Selection
64 Select From List By Label type file - le contenu du widget provient d'un script sur le serveur
65 Select From List By Label script rss
66 Input Text arguments urls=${url_rss_1},${url_rss_2}\nmode=client_side\nmax_item=3
67 Click On Submit Button
68
69
70 # Widget RSS SERVER 1items 1urls = urls=${url_rss_1} mode = server_side max_item = 1
71 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form
72 Input Text libelle RSS SERVER 1items 1urls
73 # Selection
74 Select From List By Label type file - le contenu du widget provient d'un script sur le serveur
75 Select From List By Label script rss
76 Input Text arguments urls=${url_rss_1}\nmode=server_side\nmax_item=1
77 Click On Submit Button
78
79
80 # Widget RSS SERVER 2items 2urls = urls={url_rss_1},${url_rss_2} mode = server_side max_item = 2
81 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form
82 Input Text libelle RSS SERVER 2items 2urls
83 # Selection
84 Select From List By Label type file - le contenu du widget provient d'un script sur le serveur
85 Select From List By Label script rss
86 Input Text arguments urls=${url_rss_1},${url_rss_2}\nmode=server_side\nmax_item=2
87 Click On Submit Button
88
89
90
91 # Composition du tableau de bord du profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
92 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form
93 Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
94 Input Text bloc C1
95 Select From List By Label om_widget RSS NO ENTRY CLIENT
96 Click On Submit Button
97 ${id_widget_client_no_entry}= Get Text om_dashboard
98
99 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form
100 Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
101 Input Text bloc C1
102 Select From List By Label om_widget RSS NO ENTRY SERVER
103 Click On Submit Button
104 ${id_widget_server_no_entry}= Get Text om_dashboard
105
106
107 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form
108 Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
109 Input Text bloc C1
110 Select From List By Label om_widget RSS CLIENT 3items 1urls
111 Click On Submit Button
112 ${id_widget_client_3i_1u}= Get Text om_dashboard
113
114 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form
115 Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
116 Input Text bloc C1
117 Select From List By Label om_widget RSS CLIENT 3items 2urls
118 Click On Submit Button
119 ${id_widget_client_3i_2u}= Get Text om_dashboard
120
121 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form
122 Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
123 Input Text bloc C1
124 Select From List By Label om_widget RSS SERVER 1items 1urls
125 Click On Submit Button
126 ${id_widget_server_1i_1u}= Get Text om_dashboard
127
128 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form
129 Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL
130 Input Text bloc C1
131 Select From List By Label om_widget RSS SERVER 2items 2urls
132 Click On Submit Button
133 ${id_widget_server_2i_2u}= Get Text om_dashboard
134
135
136 # Vérification des informations reçu
137 Depuis la page d'accueil admin admin
138 # Vérification Pour le widget RSS SERVER 2items 2urls
139 # titre widget
140 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-header h3 RSS SERVER 2items 2urls
141 # Channel
142 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul RSS_1 5 Items
143 # item 1
144 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul li a item_1 du flux rss_1
145 # Description item 1
146 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul li p Description de l'item 1 du flux rss_1
147 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul > li:nth-child(3) a item_2 du flux rss_1
148 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul > li:nth-child(3) p Description de l'item 2 du flux rss_1
149 Element Should Not Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul item_3 du flux rss_1
150 Element Should Not Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul item_4 du flux rss_1
151
152 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker > ul:nth-child(2) RSS_2 4 Item
153 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker > ul:nth-child(2) li a item_1 du flux rss_2
154 Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker > ul:nth-child(2) li p Description de l'item 1 du flux rss_2
155
156
157 # Vérification Pour le widget RSS SERVER 1items 1urls
158 Element Should Contain css=div#widget_${id_widget_server_1i_1u} div.widget-header h3 RSS SERVER 1items 1urls
159 Element Should Contain css=div#widget_${id_widget_server_1i_1u} div.widget-content div.widget-rss-marker ul h4 RSS_1 5 Items
160 Element Should Contain css=div#widget_${id_widget_server_1i_1u} div.widget-content div.widget-rss-marker ul li a item_1 du flux rss_1
161 Element Should Contain css=div#widget_${id_widget_server_1i_1u} div.widget-content div.widget-rss-marker ul li p Description de l'item 1 du flux rss_1
162 Element Should Not Contain css=div#widget_${id_widget_server_1i_1u} div.widget-content div.widget-rss-marker ul li a item_2 du flux rss_1
163 Element Should Not Contain css=div#widget_${id_widget_server_1i_1u} div.widget-content div.widget-rss-marker ul li a item_3 du flux rss_1
164
165 # Vérification pour le widget RSS CLIENT 3items 2urls
166 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-header h3 RSS CLIENT 3items 2urls
167
168 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker RSS_1 5 Items
169 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_1 du flux rss_1
170 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker Description de l'item 1 du flux rss_1
171 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_2 du flux rss_1
172 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker Description de l'item 2 du flux rss_1
173 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_3 du flux rss_1
174 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker Description de l'item 3 du flux rss_1
175 Element Should Not Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_4 du flux rss_1
176
177 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker RSS_2 4 Item
178
179
180 # Vérification pour le widget RSS CLIENT 3items 1urls
181 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-header h3 RSS CLIENT 3items 1urls
182 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul h4 RSS_1 5 Items
183 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul li a item_1 du flux rss_1
184 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul li p Description de l'item 1 du flux rss_1
185 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul > li:nth-child(3) a item_2 du flux rss_1
186 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul > li:nth-child(3) p Description de l'item 2 du flux rss_1
187 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul > li:nth-child(4) a item_3 du flux rss_1
188 Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul > li:nth-child(4) p Description de l'item 3 du flux rss_1
189 Element Should Not Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul li a item_4 du flux rss_1
190 Element Should Not Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul li a item_5 du flux rss_1
191
192 # Vérification pour le widget RSS NO ENTRY CLIENT
193 Element Should Contain css=div#widget_${id_widget_client_no_entry} div.widget-header h3 RSS NO ENTRY CLIENT
194 Element Should Contain css=div#widget_${id_widget_client_no_entry} div.widget-content div.widget-rss-marker Aucune donnée disponible
195
196 # Vérification pour le widget RSS NO ENTRY SERVER
197 Element Should Contain css=div#widget_${id_widget_server_no_entry} div.widget-header h3 RSS NO ENTRY SERVER
198 Element Should Contain css=div#widget_${id_widget_server_no_entry} div.widget-content div.widget-rss-marker Aucune donnée disponible
199
200 # Suppression des fichiers de /app.
201 Remove Directory ..${/}app${/}rss true
202
203 # # Suppression des widget du tdb
204 Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=&
205 Click Link ${id_widget_client_no_entry}
206 Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer
207 Click On Form Portlet Action om_dashboard supprimer
208 Click On Submit Button
209
210 Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=&
211 Click Link ${id_widget_server_no_entry}
212 Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer
213 Click On Form Portlet Action om_dashboard supprimer
214 Click On Submit Button
215
216 Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=&
217 Click Link ${id_widget_server_2i_2u}
218 Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer
219 Click On Form Portlet Action om_dashboard supprimer
220 Click On Submit Button
221
222 Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=&
223 Click Link ${id_widget_server_1i_1u}
224 Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer
225 Click On Form Portlet Action om_dashboard supprimer
226 Click On Submit Button
227
228 Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=&
229 Click Link ${id_widget_client_3i_2u}
230 Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer
231 Click On Form Portlet Action om_dashboard supprimer
232 Click On Submit Button
233
234 Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=&
235 Click Link ${id_widget_client_3i_1u}
236 Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer
237 Click On Form Portlet Action om_dashboard supprimer
238 Click On Submit Button
239

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26