fmi...@adullact.net
unread,Nov 17, 2017, 3:56:21 AM11/17/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairi...@googlegroups.com
Author: fmichon
Date: 2017-11-17 09:56:11 +0100 (Fri, 17 Nov 2017)
New Revision: 1333
Added:
branches/5.0.0-develop/tests/130_radiation.robot
branches/5.0.0-develop/tests/220_mairie_europe.robot
branches/5.0.0-develop/tests/230_centre_vote.robot
Removed:
branches/5.0.0-develop/tests/130_mairie_europe.robot
branches/5.0.0-develop/tests/140_centre_vote.robot
Modified:
branches/5.0.0-develop/sql/pgsql/inscription.inc.php
branches/5.0.0-develop/sql/pgsql/modification.inc.php
branches/5.0.0-develop/sql/pgsql/radiation.inc.php
branches/5.0.0-develop/tests/110_inscription.robot
branches/5.0.0-develop/tests/120_modification.robot
Log:
* La recherche par date de naissance dans les listings inscription, modification et radiation ne pouvais plus se faire dans le format JJ/MM/AAAA mais seulement dans le format AAAA-MM-JJ.
Modified: branches/5.0.0-develop/sql/pgsql/inscription.inc.php
===================================================================
--- branches/5.0.0-develop/sql/pgsql/inscription.inc.php 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/sql/pgsql/inscription.inc.php 2017-11-17 08:56:11 UTC (rev 1333)
@@ -52,7 +52,7 @@
"prenom as \""._("Prenom")."\"",
"nom_usage as \""._("Nom d'usage")."\"",
"param_mouvement.libelle as \""._("Mouvement")."\"",
- "date_naissance as \""._("Date de naissance")."\"",
+ "to_char(date_naissance,'DD/MM/YYYY') as \""._("Date de naissance")."\"",
);
//
Modified: branches/5.0.0-develop/sql/pgsql/modification.inc.php
===================================================================
--- branches/5.0.0-develop/sql/pgsql/modification.inc.php 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/sql/pgsql/modification.inc.php 2017-11-17 08:56:11 UTC (rev 1333)
@@ -51,7 +51,7 @@
"prenom as \""._("Prenom")."\"",
"nom_usage as \""._("Nom d'usage")."\"",
"param_mouvement.libelle as \""._("Mouvement")."\"",
- "date_naissance as \""._("Date de naissance")."\"",
+ "to_char(date_naissance,'DD/MM/YYYY') as \""._("Date de naissance")."\"",
);
//
Modified: branches/5.0.0-develop/sql/pgsql/radiation.inc.php
===================================================================
--- branches/5.0.0-develop/sql/pgsql/radiation.inc.php 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/sql/pgsql/radiation.inc.php 2017-11-17 08:56:11 UTC (rev 1333)
@@ -53,7 +53,7 @@
"prenom as \""._("Prenom")."\"",
"nom_usage as \""._("Nom d'usage")."\"",
"param_mouvement.libelle as \""._("Mouvement")."\"",
- "date_naissance as \""._("Date de naissance")."\"",
+ "to_char(date_naissance,'DD/MM/YYYY') as \""._("Date de naissance")."\"",
);
//
Modified: branches/5.0.0-develop/tests/110_inscription.robot
===================================================================
--- branches/5.0.0-develop/tests/110_inscription.robot 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/tests/110_inscription.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -6,7 +6,7 @@
*** Test Cases ***
-Fonctionnement général
+Saisie d'une nouvelle inscription
[Documentation]
#
Depuis la page d'accueil admin admin
@@ -159,3 +159,45 @@
First Tab Title Should Be Résultats De La Recherche De Doublon
Submenu In Menu Should Be Selected saisie inscription
+
+Listing des inscriptions
+ [Documentation]
+ #
+ Depuis la page d'accueil admin admin
+ #
+ Go To Submenu In Menu consultation inscriptions
+ Page Title Should Be Consultation > Inscription
+ First Tab Title Should Be Inscription
+ Element Should Be Visible css=#tab-inscription
+
+
+Recherche par date de naissance dans le listing des inscriptions
+ [Documentation]
+ #
+ Depuis la page d'accueil admin admin
+ #
+ Go To Submenu In Menu consultation inscriptions
+ # Aucun résultat
+ Use Simple Search Tous 01/01/1754
+ Page Should Contain Aucun enregistrement.
+ # Recherche générale avec une date complète
+ Use Simple Search Tous 30/01/1968
+ Page Should Contain 30/01/1968 à LAPEYROUSE-MORNAY
+ Page Should Not Contain 12/03/1992 à AURONS
+ # Recherche générale avec une date tronquée
+ Use Simple Search Tous 05/1968
+ Page Should Contain 20/05/1968 à FUVEAU
+ Page Should Contain 20/05/1968 à ARACHES
+ Page Should Not Contain 30/01/1968 à LAPEYROUSE-MORNAY
+ # Recherche générale avec l'année
+ Use Simple Search Tous 1968
+ Page Should Contain 20/05/1968 à FUVEAU
+ Page Should Contain 30/01/1968 à LAPEYROUSE-MORNAY
+ Page Should Not Contain 12/03/1992 à AURONS
+ # Recherche sur date de naissance avec une date tronquée
+ Use Simple Search Date de naissance 05/1968
+ Page Should Contain 20/05/1968 à FUVEAU
+ Page Should Contain 20/05/1968 à ARACHES
+ Page Should Not Contain 30/01/1968 à LAPEYROUSE-MORNAY
+
+
Modified: branches/5.0.0-develop/tests/120_modification.robot
===================================================================
--- branches/5.0.0-develop/tests/120_modification.robot 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/tests/120_modification.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -2,7 +2,7 @@
Resource resources/resources.robot
Suite Setup For Suite Setup
Suite Teardown For Suite Teardown
-Documentation Mouvements de type modification.
+Documentation Modification.
*** Test Cases ***
Changement d'adresse et provenance d'un élécteur.
@@ -55,3 +55,42 @@
${provenance_id_field} = Get Text css=#provenance
Should Be Equal 83 021 ${provenance_id_field}
+
+Listing des modifications
+ [Documentation]
+ #
+ Depuis la page d'accueil admin admin
+ #
+ Go To Submenu In Menu consultation modifications
+ Page Title Should Be Consultation > Modification
+ First Tab Title Should Be Modification
+ Element Should Be Visible css=#tab-modification
+
+
+Recherche par date de naissance dans le listing des modifications
+ [Documentation]
+ #
+ Depuis la page d'accueil admin admin
+ #
+ Go To Submenu In Menu consultation modifications
+ # Aucun résultat
+ Use Simple Search Tous 01/01/1754
+ Page Should Contain Aucun enregistrement.
+ # Recherche générale avec une date complète
+ Use Simple Search Tous 02/09/1990
+ Page Should Contain 02/09/1990 à MARSEILLE 16
+ Page Should Not Contain 30/10/1990 à MARTIGUES
+ # Recherche générale avec une date tronquée
+ Use Simple Search Tous 10/1990
+ Page Should Contain 30/10/1990 à MARTIGUES
+ Page Should Not Contain 02/09/1990 à MARSEILLE 16
+ # Recherche générale avec l'année
+ Use Simple Search Tous 1990
+ Page Should Contain 30/10/1990 à MARTIGUES
+ Page Should Contain 02/09/1990 à MARSEILLE 16
+ Page Should Not Contain 12/01/1956 à ARQUES
+ # Recherche sur date de naissance avec une date tronquée
+ Use Simple Search Date de naissance 10/1990
+ Page Should Contain 30/10/1990 à MARTIGUES
+ Page Should Not Contain 02/09/1990 à MARSEILLE 16
+
Deleted: branches/5.0.0-develop/tests/130_mairie_europe.robot
===================================================================
--- branches/5.0.0-develop/tests/130_mairie_europe.robot 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/tests/130_mairie_europe.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -1,40 +0,0 @@
-*** Settings ***
-Resource resources/resources.robot
-Suite Setup For Suite Setup
-Suite Teardown For Suite Teardown
-Documentation Mairie Europe
-
-
-*** Test Cases ***
-Création/modification/suppression
- Depuis la page d'accueil admin admin
-
- ## Création
- Go To Submenu In Menu saisie mairieeurope
- Click On Submit Button
- Error Message Should Contain Mairie est obligatoire
-
- &{args_mairie_europe} = Create Dictionary
- ... nom_electeur=Fabre
- ... mairie=MAIRIE DE VARSOVIE
- Ajouter une inscription en marie Europe ${args_mairie_europe}
-
- ## Modification
- Go To Submenu In Menu consultation mairieeuropes
- Click Link css=[href*=FABRE]
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#mairie ${args_mairie_europe.mairie}
- Click Link modifier
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Input Text mairie MAIRIE DE BIALYSTOK
- Click On Submit Button
- Valid Message Should Be Vos modifications ont bien été enregistrées.
- Element Should Contain css=#mairie MAIRIE DE BIALYSTOK
-
- ## Suppression
- Go To Submenu In Menu consultation mairieeuropes
- Click Link css=[href*=FABRE]
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#mairie MAIRIE DE BIALYSTOK
- Click Link supprimer
- # valider la suppression
- Click On Submit Button
- Valid Message Should Be La suppression a été correctement effectuée.
- Element Should Not Contain css=.tab-tab MAIRIE DE BIALYSTOK
Added: branches/5.0.0-develop/tests/130_radiation.robot
===================================================================
--- branches/5.0.0-develop/tests/130_radiation.robot (rev 0)
+++ branches/5.0.0-develop/tests/130_radiation.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -0,0 +1,46 @@
+*** Settings ***
+Resource resources/resources.robot
+Suite Setup For Suite Setup
+Suite Teardown For Suite Teardown
+Documentation Radiation.
+
+
+*** Test Cases ***
+Listing des radiations
+ [Documentation]
+ #
+ Depuis la page d'accueil admin admin
+ #
+ Go To Submenu In Menu consultation radiations
+ Page Title Should Be Consultation > Radiation
+ First Tab Title Should Be Radiation
+ Element Should Be Visible css=#tab-radiation
+
+
+Recherche par date de naissance dans le listing des radiations
+ [Documentation]
+ #
+ Depuis la page d'accueil admin admin
+ #
+ Go To Submenu In Menu consultation radiations
+ # Aucun résultat
+ Use Simple Search Tous 01/01/1754
+ Page Should Contain Aucun enregistrement.
+ # Recherche générale avec une date complète
+ Use Simple Search Tous 04/10/1994
+ Page Should Contain 04/10/1994 à ABANCOURT
+ Page Should Not Contain 18/03/1994 à MARSEILLE
+ # Recherche générale avec une date tronquée
+ Use Simple Search Tous 10/1994
+ Page Should Contain 04/10/1994 à ABANCOURT
+ Page Should Not Contain 18/03/1994 à MARSEILLE
+ # Recherche générale avec l'année
+ Use Simple Search Tous 1994
+ Page Should Contain 04/10/1994 à ABANCOURT
+ Page Should Contain 18/03/1994 à MARSEILLE
+ Page Should Not Contain 14/03/1945 à LIMOGES
+ # Recherche sur date de naissance avec une date tronquée
+ Use Simple Search Date de naissance 10/1994
+ Page Should Contain 04/10/1994 à ABANCOURT
+ Page Should Not Contain 18/03/1994 à MARSEILLE
+
Deleted: branches/5.0.0-develop/tests/140_centre_vote.robot
===================================================================
--- branches/5.0.0-develop/tests/140_centre_vote.robot 2017-11-16 06:10:26 UTC (rev 1332)
+++ branches/5.0.0-develop/tests/140_centre_vote.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -1,44 +0,0 @@
-*** Settings ***
-Resource resources/resources.robot
-Suite Setup For Suite Setup
-Suite Teardown For Suite Teardown
-Documentation Mairie Europe
-
-
-*** Test Cases ***
-Création/modification/suppression
- Depuis la page d'accueil admin admin
-
- ## Création
- Go To Submenu In Menu saisie centrevote
- Click On Submit Button
- Error Message Should Contain Du est obligatoire
- Error Message Should Contain Au est obligatoire
- Error Message Should Contain Électeur est obligatoire
- Error Message Should Contain L'identifiant de l'électeur doit être valide
-
- &{args_centre_vote} = Create Dictionary
- ... nom_electeur=Fabre
- ... debut_validite=23/07/2017
- ... fin_validite=23/08/2017
- Ajouter une inscription en centre de vote ${args_centre_vote}
-
- ## Modification
- Go To Submenu In Menu consultation centrevotes
- Click Link css=[href*=FABRE]
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#debut_validite ${args_centre_vote.debut_validite}
- Click Link modifier
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Input Text fin_validite 15/09/2017
- Click On Submit Button
- Valid Message Should Be Vos modifications ont bien été enregistrées.
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#fin_validite 15/09/2017
-
- ## Suppression
- Go To Submenu In Menu consultation centrevotes
- Click Link css=[href*=FABRE]
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#fin_validite 15/09/2017
- Click Link supprimer
- # valider la suppression
- Click On Submit Button
- Valid Message Should Be La suppression a été correctement effectuée.
- Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Not Contain css=.tab-tab 15/09/2017
Copied: branches/5.0.0-develop/tests/220_mairie_europe.robot (from rev 1332, branches/5.0.0-develop/tests/130_mairie_europe.robot)
===================================================================
--- branches/5.0.0-develop/tests/220_mairie_europe.robot (rev 0)
+++ branches/5.0.0-develop/tests/220_mairie_europe.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -0,0 +1,40 @@
+*** Settings ***
+Resource resources/resources.robot
+Suite Setup For Suite Setup
+Suite Teardown For Suite Teardown
+Documentation Mairie Europe
+
+
+*** Test Cases ***
+Création/modification/suppression
+ Depuis la page d'accueil admin admin
+
+ ## Création
+ Go To Submenu In Menu saisie mairieeurope
+ Click On Submit Button
+ Error Message Should Contain Mairie est obligatoire
+
+ &{args_mairie_europe} = Create Dictionary
+ ... nom_electeur=Fabre
+ ... mairie=MAIRIE DE VARSOVIE
+ Ajouter une inscription en marie Europe ${args_mairie_europe}
+
+ ## Modification
+ Go To Submenu In Menu consultation mairieeuropes
+ Click Link css=[href*=FABRE]
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#mairie ${args_mairie_europe.mairie}
+ Click Link modifier
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Input Text mairie MAIRIE DE BIALYSTOK
+ Click On Submit Button
+ Valid Message Should Be Vos modifications ont bien été enregistrées.
+ Element Should Contain css=#mairie MAIRIE DE BIALYSTOK
+
+ ## Suppression
+ Go To Submenu In Menu consultation mairieeuropes
+ Click Link css=[href*=FABRE]
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#mairie MAIRIE DE BIALYSTOK
+ Click Link supprimer
+ # valider la suppression
+ Click On Submit Button
+ Valid Message Should Be La suppression a été correctement effectuée.
+ Element Should Not Contain css=.tab-tab MAIRIE DE BIALYSTOK
Copied: branches/5.0.0-develop/tests/230_centre_vote.robot (from rev 1332, branches/5.0.0-develop/tests/140_centre_vote.robot)
===================================================================
--- branches/5.0.0-develop/tests/230_centre_vote.robot (rev 0)
+++ branches/5.0.0-develop/tests/230_centre_vote.robot 2017-11-17 08:56:11 UTC (rev 1333)
@@ -0,0 +1,44 @@
+*** Settings ***
+Resource resources/resources.robot
+Suite Setup For Suite Setup
+Suite Teardown For Suite Teardown
+Documentation Mairie Europe
+
+
+*** Test Cases ***
+Création/modification/suppression
+ Depuis la page d'accueil admin admin
+
+ ## Création
+ Go To Submenu In Menu saisie centrevote
+ Click On Submit Button
+ Error Message Should Contain Du est obligatoire
+ Error Message Should Contain Au est obligatoire
+ Error Message Should Contain Électeur est obligatoire
+ Error Message Should Contain L'identifiant de l'électeur doit être valide
+
+ &{args_centre_vote} = Create Dictionary
+ ... nom_electeur=Fabre
+ ... debut_validite=23/07/2017
+ ... fin_validite=23/08/2017
+ Ajouter une inscription en centre de vote ${args_centre_vote}
+
+ ## Modification
+ Go To Submenu In Menu consultation centrevotes
+ Click Link css=[href*=FABRE]
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#debut_validite ${args_centre_vote.debut_validite}
+ Click Link modifier
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Input Text fin_validite 15/09/2017
+ Click On Submit Button
+ Valid Message Should Be Vos modifications ont bien été enregistrées.
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#fin_validite 15/09/2017
+
+ ## Suppression
+ Go To Submenu In Menu consultation centrevotes
+ Click Link css=[href*=FABRE]
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain css=#fin_validite 15/09/2017
+ Click Link supprimer
+ # valider la suppression
+ Click On Submit Button
+ Valid Message Should Be La suppression a été correctement effectuée.
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Not Contain css=.tab-tab 15/09/2017