*** Settings *** Documentation Election ... ... Cette série de tests permet de créer une élection et de la ... configurer pour le test des fonctionnalités de base. Resource resources/resources.robot # On ouvre et on ferme le navigateur respectivement au début et à la fin # du Test Suite. Suite Setup For Suite Setup Suite Teardown For Suite Teardown # A chaque début de Test Case on se positionne sur le tableau bord # administrateur Test Setup For Test Setup admin admin *** Test Cases *** Création Élection Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link xpath=/html/body/table[2]/tbody/tr/td/a Page Should Not Contain Errors Select From List By Label typeelection Municipales Input Text election_date 23/03/2014 Input Text election_libelle MUNICIPALES 2014 Select From List By Label election_tour Premier tour Select From List By Label election_canton CANTON 99 Input Text election_nbcandidat 2 Select From List By Label election_h_ouver 08:00:00 Select From List By Label election_h_ferm 20:00:00 Select From List By Label participation toutes les heures Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 Enregistrement ajouté Configuration Élection Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Select From List By Label candidat NOM1 Prénom1 Input Text liste_prefecture 003 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis à jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[5]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[3]/td/a Page Should Not Contain Errors Select From List By Label candidat NOM2 Prénom2 Input Text liste_prefecture 002 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis à jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[5]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Button config_bureau Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau Input Text inscrit 1468 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis a jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[6]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[3]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau Input Text inscrit 1367 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis a jour Paramétrage Listes Municipales Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click On Menu Element In Rubrik Paramétrage Liste municipale Page Title Should Be Paramétrage Liste municipale Click Link xpath=/html/body/table[2]/tbody/tr/td/a Page Should Not Contain Errors Select From List By Label candidat NOM1 Prénom1 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 Enregistrement ajouté Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[9]/td/center/a Page Should Not Contain Errors Page Title Should Be Paramétrage Liste municipale Click Link xpath=/html/body/table[2]/tbody/tr/td/a Page Should Not Contain Errors Select From List By Label candidat NOM2 Prénom2 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 Enregistrement ajouté Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[9]/td/center/a Page Should Not Contain Errors Page Title Should Be Paramétrage Liste municipale Saisie Résultats Définitifs et vérification des animations Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click On Menu Element In Rubrik Affichage Animations # Modification de l'affichage de l'animation No 1 Click Element css=tr.odd:nth-child(3) > td:nth-child(2) > a:nth-child(1) > img:nth-child(1) Select From List By Label affichage Résultats Click Button xpath=//input[@type='button'] Sleep 3 # Lancement de l'animation No 1 "Résultats" Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain Element css=li.wait Page Should Not Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Wait Until Page Contains Element css=.list-group-item.election-type-MUN Click Element css=.list-group-item.election-type-MUN # Clic sur l'onglet Résultats Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 0 bureau arrivé sur 2 Close Window Select Window Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[2]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Bureau n°1 Input Text votant 1084 Input Text exprime 1016 Input Text blanc 10 Input Text nul 58 Input Text candidat1 652 Input Text candidat2 364 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE Sleep 1 Click On Menu Element In Rubrik Affichage Animations # Lancement de l'animation No 1 "Résultats" Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Wait Until Page Contains Element css=.list-group-item.election-type-MUN Click Element css=.list-group-item.election-type-MUN Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 1 bureau arrivé sur 2 Close Window Select Window # Saisie des résultats du 2ème bureau Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[3]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Bureau n°2 Input Text votant 1102 Input Text exprime 1017 Input Text blanc 17 Input Text nul 68 Input Text candidat1 558 Input Text candidat2 459 Click Button xpath=//input[@type='submit'] Sleep 1 Click On Menu Element In Rubrik Affichage Animations # Lancement de l'animation No 1 "Résultats" Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain Element css=.first.arrived Page Should Contain Element css=.arrived.active .glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Wait Until Page Contains Element css=.list-group-item.election-type-MUN Click Element css=.list-group-item.election-type-MUN Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 2 bureaux arrivés sur 2 Close Window Select Window Publication des résultats [Documentation] Ce test case vérifie la fonctionnalité de publication optionnelle ... des résultats définitifs d'une élection. ... Cas d'utilisation : ... 1) Création d'une élection sans l'option de publication puis activation entre 2 ... saisies. Les fonctionnalités de publication ne doivent pas être présentes, et les ... résultats publiés automatiquement. ... 2) Création d'une élection avec l'option de publication : ... - vérification que les résultats ne sont pas publiés avant que la case soit cochée ... - vérification que la saisie d'un bureau en erreur avec l'option ... generation_bureau_erreur activée est publiable, puis le cas inverse ... - vérification que la dé-publication enlève bien le bureau des animations ... 3) Vérification que la saisie d'une simulation provoque bien la mise à jour ... dans les animations. ... 4) Pour l'élection précédente créée avec l'option de publication activée, désactiver ... l'option de publication et vérifier que les cases de publication soient toujours ... présentes, et la publication automatique lors de la saisie des résultats ## ## Cas d'utilisation n°1 ## Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link xpath=/html/body/table[2]/tbody/tr/td/a Page Should Not Contain Errors Select From List By Label typeelection Presidentielles Input Text election_date 23/04/2017 Input Text election_libelle PRESIDENTIELLE 2017 Select From List By Label election_tour Premier tour Select From List By Label election_canton CANTON 99 Input Text election_nbcandidat 2 Select From List By Label election_h_ouver 08:00:00 Select From List By Label election_h_ferm 20:00:00 Select From List By Label participation toutes les heures Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 Enregistrement ajouté Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link PRESIDENTIELLE 2017 Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Select From List By Label candidat NOM1 Prénom1 Input Text liste_prefecture 003 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis à jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[5]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[3]/td/a Page Should Not Contain Errors Select From List By Label candidat NOM2 Prénom2 Input Text liste_prefecture 002 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis à jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[5]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Button config_bureau Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau Input Text inscrit 1468 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis a jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[6]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[3]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau Input Text inscrit 1367 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis a jour # Modification de l'affichage de l'animation No 1 Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(2) > a:nth-child(1) > img:nth-child(1) Select From List By Label affichage Résultats Click Button xpath=//input[@type='button'] Sleep 1 # Selection de l'élection PRESIDENTIELLE Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link PRESIDENTIELLE 2017 Page Should Not Contain Errors Page Title Should Be Configuration Election # Activation de l'option dans var.inc ${path} = Set Variable ..${/}dyn${/}var.inc ${config} = Get File ${path} ${output} = Replace String ${config} $publication_bureau = false; $publication_bureau = true; Remove File ${path} Wait Until Removed ${path} Append To File ${path} ${output} # L'option "publication_bureau" étant désactivée par défaut, on ne doit pas avoir # la colonne publication Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 PRESIDENTIELLE 2017 Page Should Not Contain Errors Page Should Not Contain Publication Page Should Not Contain Element css=.last.actions.publication Click Link xpath=/html/body/div[5]/div/table/tbody/tr[2]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/04/2017 PRESIDENTIELLE 2017 Bureau n°1 Input Text votant 1084 Input Text exprime 1016 Input Text blanc 10 Input Text nul 58 Input Text candidat1 652 Input Text candidat2 364 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE # Lancement de l'animation No 1 "Résultats" Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Click Element css=.list-group-item.election-type-PRE Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 1 bureau arrivé sur 2 Close Window Select Window ## ## Cas d'utilisation n°2 ## Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link xpath=/html/body/table[2]/tbody/tr/td/a Page Should Not Contain Errors Select From List By Label typeelection Legislatives Input Text election_date 23/04/2017 Input Text election_libelle LEGISLATIVES 2017 Select From List By Label election_tour Premier tour Select From List By Label election_canton CANTON 99 Input Text election_nbcandidat 2 Select From List By Label election_h_ouver 08:00:00 Select From List By Label election_h_ferm 20:00:00 Select From List By Label participation toutes les heures Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 Enregistrement ajouté Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link LEGISLATIVES 2017 Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Select From List By Label candidat NOM1 Prénom1 Input Text liste_prefecture 003 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis à jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[5]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[3]/td/a Page Should Not Contain Errors Select From List By Label candidat NOM2 Prénom2 Input Text liste_prefecture 002 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis à jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[5]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Button config_bureau Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau Input Text inscrit 1468 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis a jour Click Link xpath=/html/body/div[3]/fieldset/form/table/tbody/tr[6]/td/center/a Page Should Not Contain Errors Page Title Should Be Configuration Election Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[3]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau Input Text inscrit 1367 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain 1 enregistrement mis a jour Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link LEGISLATIVES 2017 Page Should Not Contain Errors Page Title Should Be Configuration Election Click On Menu Element In Rubrik Affichage Animations # Modification de l'affichage de l'animation No 1 Click Element css=tr.odd:nth-child(3) > td:nth-child(2) > a:nth-child(1) > img:nth-child(1) Select From List By Label affichage Résultats Click Button xpath=//input[@type='button'] Sleep 1 # Selection de l'élection LEGISLATIVES Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link LEGISLATIVES 2017 Page Should Not Contain Errors Page Title Should Be Configuration Election # Vérification que les animations soient vides # Lancement de l'animation No 1 "Résultats" Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Not Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=.list-group-item.election-type-LEG Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 0 bureau arrivé sur 2 Close Window Select Window # L'option "publication_bureau" étant activée, on doit avoir la colonne publication Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Page Should Not Contain Errors Page Should Contain Publication Page Should Contain Element css=.last.actions.publication # La case à cocher publication de la 1ère ligne doit être activée et décochée Element Should Be Disabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Case à cocher publication de la 2ème ligne Element Should Be Disabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Saisie des résultats définitifs du bureau 1 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[2]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Bureau n°1 Input Text votant 1084 Input Text exprime 1016 Input Text blanc 10 Input Text nul 58 Input Text candidat1 652 Input Text candidat2 364 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Page Should Not Contain Errors Page Should Contain Publication Page Should Contain Element css=.last.actions.publication # La case à cocher publication du bureau n°1 doit être activée et décochée Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Même chose pour la case à cocher publication du 2ème bureau Element Should Be Disabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.even > td:nth-child(6) > input:nth-child(1) # Lancement de l'animation No 1 "Résultats" Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Page Should Not Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=.list-group-item.election-type-LEG Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 0 bureau arrivé sur 2 Close Window Select Window # On coche la case publication pour le bureau 1 Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Select Checkbox css=.odd > td:nth-child(6) > input:nth-child(1) Sleep 3 # Lancement de l'animation No 1 "Résultats" Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Page Should Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Click Element css=.list-group-item.election-type-LEG Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 1 bureau arrivé sur 2 Close Window Select Window # Dé-publication des résultats Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Should Contain Element css=.last.actions.publication Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) Unselect Checkbox css=.odd > td:nth-child(6) > input:nth-child(1) Element Should Be Disabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.even > td:nth-child(6) > input:nth-child(1) Sleep 2 # Lancement de l'animation No 1 "Résultats" Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Page Should Not Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=.list-group-item.election-type-LEG Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 0 bureau arrivé sur 2 Close Window Select Window # Re-publication des résultats Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats # On coche la case publication pour le bureau 1 Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Select Checkbox css=.odd > td:nth-child(6) > input:nth-child(1) Sleep 3 Click On Menu Element In Rubrik Affichage Animations # Lancement de l'animation No 1 "Résultats" Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Page Should Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Click Element css=.list-group-item.election-type-LEG Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 1 bureau arrivé sur 2 Close Window Select Window # Saisie des résultats du 2ème bureau Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[3]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Bureau n°2 Input Text votant 1102 Input Text exprime 1017 Input Text blanc 17 Input Text nul 68 Input Text candidat1 999 Input Text candidat2 459 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE Page Should Contain Element css=.bureauErreur Valid Message Should Contain VOTRE SAISIE COMPORTE DES ERREURS Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Should Contain Element css=.last.actions.publication # La case à cocher publication de la 1ère ligne doit être activée Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # On coche la case à cocher publication de la 2ème ligne Element Should Be Enabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.even > td:nth-child(6) > input:nth-child(1) Select Checkbox css=.even > td:nth-child(6) > input:nth-child(1) Sleep 2 Click On Menu Element In Rubrik Affichage Animations # Lancement de l'animation No 1 "Résultats" Click Element css=tr.odd:nth-child(3) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Page Should Contain Element css=.first.arrived Page Should Contain Element css=.arrived.active .glyphicon-ok Close Window Select Window # Vérification de la publication web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Affichage Web Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux - Libreville Click Element css=.list-group-item.election-type-LEG Wait Until Page Contains Element xpath=//a[@href='#resultats'] Click Element xpath=//a[@href='#resultats'] Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Contain resultats 2 bureaux arrivés sur 2 Close Window Select Window # Dé-publication des résultats définitifs du bureau 2 Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Should Contain Element css=.last.actions.publication # La case à cocher publication de la 1ère ligne doit être activée Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Case à cocher publication de la 2ème ligne Element Should Be Enabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.even > td:nth-child(6) > input:nth-child(1) Unselect Checkbox css=.even > td:nth-child(6) > input:nth-child(1) Sleep 2 # Désactivation de l'option generation_bureau_erreur ${path} = Set Variable ..${/}dyn${/}var.inc ${config} = Get File ${path} ${output} = Replace String ${config} $generation_bureau_erreur = true; $generation_bureau_erreur = false; Remove File ${path} Wait Until Removed ${path} Append To File ${path} ${output} # Saisie des résultats du 2ème bureau en erreur Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[3]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Bureau n°2 Input Text votant 1102 Input Text exprime 1017 Input Text blanc 17 Input Text nul 68 Input Text candidat1 990 Input Text candidat2 459 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE Page Should Contain Element css=.bureauErreur Valid Message Should Contain VOTRE SAISIE COMPORTE DES ERREURS # On ne doit pas pouvoir publier les résultats en erreur du bureau 2 Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Should Contain Element css=.last.actions.publication # La case à cocher publication de la 1ère ligne doit être activée Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Case à cocher publication de la 2ème ligne doit être désactivée Element Should Be Disabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.even > td:nth-child(6) > input:nth-child(1) # # Cas d'utilisation n°3 # # Lancement de l'animation No 1 "Résultats" de la 1ère centaine Click On Menu Element In Rubrik Affichage Animations Click Element css=tr.odd:nth-child(6) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Page Should Not Contain Element css=.first.arrived.active Page Should Not Contain Element css=.arrived.glyphicon-ok Close Window Select Window # Saisie de la 1ère centaine du bureau 1 Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Click Element css=.odd > td:nth-child(3) > a:nth-child(1) Page Should Not Contain Errors Page Title Should Be Election 23/04/2017 LEGISLATIVES 2017 Bureau n°1 Input Text votant 100 Input Text exprime 69 Input Text blanc 22 Input Text nul 9 Input Text candidat1 61 Input Text candidat2 8 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE Click On Menu Element In Rubrik Saisie Centaines & Resultats # Les cases de publication doivent rester cochées Page Should Contain Element css=.last.actions.publication # La case à cocher publication de la 1ère ligne doit être activée Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Case à cocher publication de la 2ème ligne Element Should Be Disabled css=.even > td:nth-child(6) > input:nth-child(1) Checkbox Should Not Be Selected css=.even > td:nth-child(6) > input:nth-child(1) Sleep 2 Click On Menu Element In Rubrik Affichage Animations # Lancement de l'animation No 1 "Résultats" de la 1ère centaine Click Element css=tr.odd:nth-child(6) > td:nth-child(3) > a:nth-child(1) Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Select Window Résultats électoraux Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Page Should Contain Element css=.first.arrived.active Page Should Contain Blancs : 22 / Nuls : 9 / Exprimés : 69 Close Window Select Window # On remet var.inc dans l'état initial ${path} = Set Variable ..${/}dyn${/}var.inc ${config} = Get File ${path} ${output} = Replace String ${config} $publication_bureau = true; $publication_bureau = false; ${output} = Replace String ${config} $generation_bureau_erreur = false; $generation_bureau_erreur = true; Remove File ${path} Wait Until Removed ${path} Append To File ${path} ${output} # # Cas d'utilisation n°4 # Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click On Menu Element In Rubrik Saisie Centaines & Resultats # Les cases de publication doivent rester cochées Page Should Contain Element css=.last.actions.publication # La case à cocher publication de la 1ère ligne doit être activée Element Should Be Enabled css=.odd > td:nth-child(6) > input:nth-child(1) Checkbox Should Be Selected css=.odd > td:nth-child(6) > input:nth-child(1) # Case à cocher publication de la 2ème ligne Checkbox Should Not Be Selected css=.even > td:nth-child(6) > input:nth-child(1) Modification des informations du bureau de vote directement depuis la saisie des résultats définitifs [Documentation] On active l'option votant2_procuration_saisie_form du ... fichier dyn/var.inc pour vérifier la modification du nombre d'inscrits, ... du nombre de votants (sur liste d'emargement) et du nombre de ... procuration. # On modifie le configuration Move File ..${/}dyn${/}var.inc ..${/}dyn${/}var.inc.bak Copy File ..${/}tests${/}binary_files${/}var_1.inc ..${/}dyn${/} Move File ..${/}dyn${/}var_1.inc ..${/}dyn${/}var.inc # On récupère les informations du bureau avant modification Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click Button config_bureau Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau ${inscrits_before} = Get Value inscrit ${votant2_before} = Get Value votant2 ${proc_before} = Get Value procuration # On modifie le nombre d'inscrit Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[2]/td[5]/a Page Should Not Contain Errors Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Bureau n°1 Wait Until Page Contains Element inscrit Input Text inscrit 1470 Input Text votant2 5 Input Text procuration 10 Click Button xpath=//input[@type='submit'] Page Should Not Contain Errors Valid Message Should Contain SAISIE ENREGISTREE # On récupère les informations du bureau après modification Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click Button config_bureau Click Link xpath=/html/body/div[3]/div[3]/table[2]/tbody/tr[2]/td/a Page Should Not Contain Errors Page Title Should Be Configuration de l'Election Saisie des inscrits par bureau ${inscrits_after} = Get Value inscrit ${votant2_after} = Get Value votant2 ${proc_after} = Get Value procuration # Le nombre d'inscrit total avant et après modification doit être différent Should Not Be Equal ${inscrits_before} ${inscrits_after} Should Not Be Equal ${votant2_before} ${votant2_after} Should Not Be Equal ${proc_before} ${proc_after} # On vérifie que la nouvelle valeur du nombre des inscrits est aussi sur les # Centaines # Seconde centaine Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[2]/td[4]/a Page Should Not Contain Errors Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Bureau n°1 Page Should Contain 1470 # Première centaine Click On Menu Element In Rubrik Saisie Centaines & Resultats Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Click Link xpath=/html/body/div[5]/div/table/tbody/tr[2]/td[3]/a Page Should Not Contain Errors Page Title Should Be Election 23/03/2014 MUNICIPALES 2014 Bureau n°1 Page Should Contain 1470 # On remet la configuration par défaut Move File ..${/}dyn${/}var.inc.bak ..${/}dyn${/}var.inc Traitement Répartition des sièges Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click On Menu Element In Rubrik Affichage Municipales (calcul répartition des sièges) Page Title Should Be Calcul de la répartition des sièges Export Préfecture Click On Menu Element In Rubrik Configuration Election(s) en cours Page Title Should Be Configuration Election Création, Sélection & Suppression Click Link MUNICIPALES 2014 Page Should Not Contain Errors Page Title Should Be Configuration Election Click On Menu Element In Rubrik Affichage Transmission préfecture Page Title Should Be Transmission des résultats en Préfecture Checkbox Should Not Be Selected css=#gen_votant2 Click Button xpath=//input[@type='submit'] Element Should Contain css=div.message.valid p a été généré et sauvegardé.