[opencourrier-Commits] r1629 - in trunk: obj tests tests/binary_files/ressource_test_reu

4 views
Skip to first unread message

gmal...@adullact.net

unread,
Feb 11, 2019, 9:24:36 AM2/11/19
to openmairie-...@googlegroups.com
Author: gmalvolti
Date: 2019-02-11 15:24:22 +0100 (Mon, 11 Feb 2019)
New Revision: 1629

Modified:
trunk/obj/traitement.reu_sync_l_e_attach.class.php
trunk/obj/traitement.reu_sync_l_e_init.class.php
trunk/tests/420_module_reu.robot
trunk/tests/binary_files/ressource_test_reu/LCE.csv
trunk/tests/binary_files/ressource_test_reu/LP.csv
Log:
Ajout de la partie v?\195?\169rification de l'onglet de synchronisation pour le test du module REU.


Modified: trunk/obj/traitement.reu_sync_l_e_attach.class.php
===================================================================
--- trunk/obj/traitement.reu_sync_l_e_attach.class.php 2019-02-08 23:21:16 UTC (rev 1628)
+++ trunk/obj/traitement.reu_sync_l_e_attach.class.php 2019-02-11 14:24:22 UTC (rev 1629)
@@ -563,7 +563,7 @@
<div class="card-body">
<div class="card-title">%s</div>
<div>~exact</div>
- <a href="../app/index.php?module=tab&obj=reu_sync_l_e_oel_rattaches_exact">Accéder au listing</a>
+ <a id="exact" href="../app/index.php?module=tab&obj=reu_sync_l_e_oel_rattaches_exact">Accéder au listing</a>
</div>
</div>
<div class="card text-center">
@@ -570,7 +570,7 @@
<div class="card-body">
<div class="card-title">%s</div>
<div>~approx (à vérifier)</div>
- <a href="../app/index.php?module=tab&obj=reu_sync_l_e_oel_rattaches_approx">Accéder au listing</a>
+ <a id="approx" href="../app/index.php?module=tab&obj=reu_sync_l_e_oel_rattaches_approx">Accéder au listing</a>
</div>
</div>
</div>

Modified: trunk/obj/traitement.reu_sync_l_e_init.class.php
===================================================================
--- trunk/obj/traitement.reu_sync_l_e_init.class.php 2019-02-08 23:21:16 UTC (rev 1628)
+++ trunk/obj/traitement.reu_sync_l_e_init.class.php 2019-02-11 14:24:22 UTC (rev 1629)
@@ -57,7 +57,7 @@
Électeurs openElec total
</div>
<div class="card-body">
- <div class="card-title">%s</div>
+ <div id="nb_electeur_oel" class="card-title">%s</div>
</div>
</div>
</div>
@@ -67,7 +67,7 @@
Électeurs REU total
</div>
<div class="card-body">
- <div class="card-title">%s</div>
+ <div id="nb_electeur_reu" class="card-title">%s</div>
</div>
</div>
</div>

Modified: trunk/tests/420_module_reu.robot
===================================================================
--- trunk/tests/420_module_reu.robot 2019-02-08 23:21:16 UTC (rev 1628)
+++ trunk/tests/420_module_reu.robot 2019-02-11 14:24:22 UTC (rev 1629)
@@ -34,6 +34,7 @@
Move File binary_files${/}ressource_test_reu${/}ressource_test_reu_config.txt binary_files${/}ressource_test_reu${/}ressource_test_reu.txt
Depuis La Page D'accueil admin admin
Accéder au module REU
+ Accéder au module REU
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#config_system OK
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#param_ugle ERROR
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#param_compte_logiciel ERROR
@@ -62,6 +63,49 @@
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#api_reu_dispo OK
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#connexion_logicielle OK
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#actu Test d'actualité pour l'interface reu
+
+ #Vérification de la partie synchronisation
+ &{test_radiation_reu} = Create Dictionary
+ ... types=PREMIERE INSCRIPTION
+ ... nom=TEST420INTERFACEREUNOM
+ ... prenom=TEST420INTERFACEREUPRENOM
+ ... date_naissance=10/01/1975
+ ... naissance_type_saisie=Né en France
+ ... commune_de_naissance=13 105 - SENAS
+ ... libelle_commune_de_naissance=SENAS
+ ... libelle_voie=RUE BASSE
+ ${test_radiation_reu_id} = Ajouter le mouvement d'inscription ${test_radiation_reu}
+
+ Appliquer le traitement de fin d'année
+ Accéder au module REU
+ Click Link css=#module_reu-onglet-synchronisation_liste_electorale
+ ${nb_electeur_oel}= Get Text css=#nb_electeur_oel
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#nb_electeur_oel ${nb_electeur_oel}
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#nb_electeur_reu 0
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element name:traitement.reu_sync_l_e_init.form.valid
+ Handle Alert
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#nb_electeur_oel ${nb_electeur_oel}
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#nb_electeur_reu 55
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Link ETAPE SUIVANTE
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click ELement name:traitement.reu_sync_l_e_attach.form.valid
+ Handle Alert
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Link ETAPE SUIVANTE
+
+ Click Element css=#exact
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain AZERTYTOU
+ Click On Back Button
+ Click Element css=#approx
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain BARANDO
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain 00/00/1994
+ Click On Back Button
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Be Visible name:traitement.reu_sync_l_e_valid.form.valid
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element name:traitement.reu_sync_l_e_valid.form.valid
+ Handle Alert
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Link RAFRAÎCHIR
+
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#nb_electeur_reu 55
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#nb_electeur_oel 55
+
Move File binary_files${/}ressource_test_reu${/}ressource_test_reu.txt binary_files${/}ressource_test_reu${/}ressource_test_reu_all_true.txt
Move File binary_files${/}ressource_test_reu${/}ressource_test_reu_all_false.txt binary_files${/}ressource_test_reu${/}ressource_test_reu.txt
Remove File ..${/}dyn${/}reu.inc.php
\ No newline at end of file

Modified: trunk/tests/binary_files/ressource_test_reu/LCE.csv
===================================================================
--- trunk/tests/binary_files/ressource_test_reu/LCE.csv 2019-02-08 23:21:16 UTC (rev 1628)
+++ trunk/tests/binary_files/ressource_test_reu/LCE.csv 2019-02-11 14:24:22 UTC (rev 1629)
@@ -1,2 +1,2 @@
-Code Type Liste;Libellé Type Liste;Numéro d'électeur;Code catégorie d'électeur;Libellé catégorie d'électeur;Date d'inscription;Nom;Nom d'usage;Prénoms;Sexe;Date de naissance;Code commune de naissance;Libellé commune de naissance;Code pays de naissance;Libellé pays de naissance;Code nationalité;Libellé nationalité;Numéro de voie;Type et libellé de voie;1er Complément adresse;2nd Complément adresse;Lieu-Dit;Code postal;Libellé de commune;Libellé du pays;Identifiant Bureau de vote;Code Bureau de vote;Libellé bureau de vote;Numéro d'ordre dans le bureau de vote;Code circonscription législative;Libellé circonscription législative;Code canton;Libellé canton;Code motif inscription;Libellé motif inscription;;;;
-ugle;;;;LCM;Liste municipale europeenne;1;1;Actif;;GARCIA MARTINEZ;;MARIA;F;10/03/1990;99134;MADRID (ESPAGNE);99134;ESPAGNE;ESP;ESPAGNOLE;0;RUE DE L'HOTEL DE VILLE;;;;13200;LIBREVILLE;FRANCE;101;1;HOTEL DE VILLE;1;;;;;VOL1;Inscription volontaire
+Code UGLE;Code commune de l'UGLE;Libellé Ugle;Date extraction;Code Type Liste;Libellé Type Liste;Numéro d'électeur;Code catégorie d'électeur;Libellé catégorie d'électeur;Date d'inscription;Nom;Nom d'usage;Prénoms;Sexe;Date de naissance;Code commune de naissance;Libellé commune de naissance;Code pays de naissance;Libellé pays de naissance;Code nationalité;Libellé nationalité;Numéro de voie;Type et libellé de voie;1er Complément adresse;2nd Complément adresse;Lieu-Dit;Code postal;Libellé de commune;Libellé du pays;Identifiant Bureau de vote;Code Bureau de vote;Libellé bureau de vote;Numéro d'ordre dans le bureau de vote;Code circonscription législative;Libellé circonscription législative;Code canton;Libellé canton;Code motif inscription;Libellé motif inscription
+ugle;;;;LCE;Liste européenne;80;1;Actif;;TESTINTERFACE;;TESTINTERFACEINSCRIPTION;M;16/02/1965;13055;MARSEILLE;99999;FRANCE;FRA;FRANCAISE;6;RUE DE LA REPUBLIQUE;;;;13200;LIBREVILLE;;102;2;ECOLE MATERNELLE;80;;;;;VOL1;Inscription volontaire

Modified: trunk/tests/binary_files/ressource_test_reu/LP.csv
===================================================================
--- trunk/tests/binary_files/ressource_test_reu/LP.csv 2019-02-08 23:21:16 UTC (rev 1628)
+++ trunk/tests/binary_files/ressource_test_reu/LP.csv 2019-02-11 14:24:22 UTC (rev 1629)
@@ -1,7 +1,7 @@
Code UGLE;Code commune de l'UGLE;Libellé Ugle;Date extraction;Code Type Liste;Libellé Type Liste;Numéro d'électeur;Code catégorie d'électeur;Libellé catégorie d'électeur;Date d'inscription;Nom;Nom d'usage;Prénoms;Sexe;Date de naissance;Code commune de naissance;Libellé commune de naissance;Code pays de naissance;Libellé pays de naissance;Code nationalité;Libellé nationalité;Numéro de voie;Type et libellé de voie;1er Complément adresse;2nd Complément adresse;Lieu-Dit;Code postal;Libellé de commune;Libellé du pays;Identifiant Bureau de vote;Code Bureau de vote;Libellé bureau de vote;Numéro d'ordre dans le bureau de vote;Code circonscription législative;Libellé circonscription législative;Code canton;Libellé canton;Code motif inscription;Libellé motif inscription
-ugle;;;;LP;Liste principale;1;1;Actif;;ABAY;;BARAN;M;09/08/1994;28134;DREUX;99999;FRANCE;FRA;FRANCAISE;25;RUE CHARLES DE GAULLE;;;;13200;LIBREVILLE;;102;2;ECOLE MATERNELLE;23;;;;;VOL1;Inscription volontaire
+ugle;;;;LP;Liste principale;1;1;Actif;;ABAY;;BARANDO;M;00/00/1994;28134;DREUX;99999;FRANCE;FRA;FRANCAISE;25;RUE CHARLES DE GAULLE;;;;13200;LIBREVILLE;;102;2;ECOLE MATERNELLE;23;;;;;VOL1;Inscription volontaire
ugle;;;;LP;Liste principale;2;1;Actif;;ABEUDJE;;ALEXANDRE EHYGSENE;M;04/08/1994;28134;DREUX;99999;FRANCE;FRA;FRANCAISE;12;RUE DE L'HOTEL DE VILLE;;;;13200;LIBREVILLE;;101;1;HOTEL DE VILLE;2;;;;;VOL1;Inscription volontaire
-ugle;;;;LP;Liste principale;51;1;Actif;;AZERTY;;FRANCOIS;M;01/03/1962;80010;AILLY-SUR-NOYE;99999;FRANCE;FRA;FRANCAISE;38;AVENUE DE LA LIBERATION;;;;13200;LIBREVILLE;;101;1;HOTEL DE VILLE;24;;;;;VOL1;Inscription volontaire
+ugle;;;;LP;Liste principale;51;1;Actif;;AZERTYTOUT;;FRANCOIS;M;00/03/1962;80010;AILLY-SUR-NOYE;99999;FRANCE;FRA;FRANCAISE;38;AVENUE DE LA LIBERATION;;;;13200;LIBREVILLE;;101;1;HOTEL DE VILLE;24;;;;;VOL1;Inscription volontaire
ugle;;;;LP;Liste principale;40;1;Actif;;BELLOZ;;PHILIPPE;M;12/12/1933;59350;LILLE;99131;BELGIQUE;BEL;BELGE;1;BOULEVARD MAQUIS MARCEAU;;;;13200;LIBREVILLE;;103;3;SALES DES FETES;5;;;;;VOL1;Inscription volontaire
ugle;;;;LP;Liste principale;7;1;Actif;;BIG;;BOB;M;01/01/1983;67001;ACHENHEIM;99999;FRANCE;FRA;FRANCAISE;15;BOULEVARD MAQUIS MARCEAU;;;;13200;LIBREVILLE;;103;3;SALES DES FETES;8;;;;;VOL1;Inscription volontaire
ugle;;;;LP;Liste principale;41;1;Actif;;CAMILLE;;LOUIS;M;01/09/1951;69383;LYON 03;99999;FRANCE;FRA;FRANCAISE;3;PLACE CASTELLANE;;;;13200;LIBREVILLE;;103;3;SALES DES FETES;6;;;;;VOL1;Inscription volontaire

Reply all
Reply to author
Forward
0 new messages