*** Settings *** Documentation Les widgets. # On inclut les mots-clefs Resource resources/resources.robot # On ouvre/ferme le navigateur au début/à la fin du Test Suite. Suite Setup For Suite Setup Suite Teardown For Suite Teardown *** Test Cases *** Widget "RSS" [Documentation] Ce widget lis les flux RSS. # 3 paramètres présent : # - urls = 1 ou 2 url séparé par une virgule # - mode = client_side ou server_side # - max_item = nb d'élément affiché donc un entier # Copy des fichiers de flux rss dans /app pour y avoir accés Supprime un répertoire s'il existe ..${/}app${/}rss Copy Directory ..${/}tests${/}binary_files${/}rss ..${/}app${/} ${url_rss_no_entry} = Set Variable ${PROJECT_URL}app/rss/rss_no_entry.xml ${url_rss_1} = Set Variable ${PROJECT_URL}app/rss/rss_1.xml ${url_rss_2} = Set Variable ${PROJECT_URL}app/rss/rss_2.xml Depuis la page d'accueil admin admin # Création des widget # Widget RSS NO ENTRY CLIENT = urls=${url_rss_no_entry} mode = client_side max_item = 3 # Depuis la page d'ajout d'un widget Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form Input Text libelle RSS NO ENTRY CLIENT # Selection Select From List By Label type file - le contenu du widget provient d'un script sur le serveur Select From List By Label script rss Input Text arguments urls=${url_rss_no_entry}\nmode=client_side\nmax_item=3 Click On Submit Button # Widget RSS NO ENTRY SERVER = urls=${url_rss_no_entry} mode = client_side max_item = 3 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form Input Text libelle RSS NO ENTRY SERVER # Selection Select From List By Label type file - le contenu du widget provient d'un script sur le serveur Select From List By Label script rss Input Text arguments urls=${url_rss_no_entry}\nmode=server_side\nmax_item=3 Click On Submit Button # Widget RSS CLIENT 3items 1urls = urls=${url_rss_1} mode = client_side max_item = 3 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form Input Text libelle RSS CLIENT 3items 1urls # Selection Select From List By Label type file - le contenu du widget provient d'un script sur le serveur Select From List By Label script rss Input Text arguments urls=${url_rss_1}\nmode=client_side\nmax_item=3 Click On Submit Button # Widget RSS CLIENT 2items 2urls = urls=${url_rss_1},${url_rss_2} mode = client_side max_item = 2 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form Input Text libelle RSS CLIENT 3items 2urls # Selection Select From List By Label type file - le contenu du widget provient d'un script sur le serveur Select From List By Label script rss Input Text arguments urls=${url_rss_1},${url_rss_2}\nmode=client_side\nmax_item=3 Click On Submit Button # Widget RSS SERVER 1items 1urls = urls=${url_rss_1} mode = server_side max_item = 1 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form Input Text libelle RSS SERVER 1items 1urls # Selection Select From List By Label type file - le contenu du widget provient d'un script sur le serveur Select From List By Label script rss Input Text arguments urls=${url_rss_1}\nmode=server_side\nmax_item=1 Click On Submit Button # Widget RSS SERVER 2items 2urls = urls={url_rss_1},${url_rss_2} mode = server_side max_item = 2 Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_widget&action=0&advs_id=&premier=0&tricol=&valide=&retour=form Input Text libelle RSS SERVER 2items 2urls # Selection Select From List By Label type file - le contenu du widget provient d'un script sur le serveur Select From List By Label script rss Input Text arguments urls=${url_rss_1},${url_rss_2}\nmode=server_side\nmax_item=2 Click On Submit Button # Composition du tableau de bord du profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Input Text bloc C1 Select From List By Label om_widget RSS NO ENTRY CLIENT Click On Submit Button ${id_widget_client_no_entry}= Get Text om_dashboard Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Input Text bloc C1 Select From List By Label om_widget RSS NO ENTRY SERVER Click On Submit Button ${id_widget_server_no_entry}= Get Text om_dashboard Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Input Text bloc C1 Select From List By Label om_widget RSS CLIENT 3items 1urls Click On Submit Button ${id_widget_client_3i_1u}= Get Text om_dashboard Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Input Text bloc C1 Select From List By Label om_widget RSS CLIENT 3items 2urls Click On Submit Button ${id_widget_client_3i_2u}= Get Text om_dashboard Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Input Text bloc C1 Select From List By Label om_widget RSS SERVER 1items 1urls Click On Submit Button ${id_widget_server_1i_1u}= Get Text om_dashboard Go To ${PROJECT_URL}/app/index.php?module=form&obj=om_dashboard&action=0&advs_id=&premier=0&tricol=-0&valide=&retour=form Select From List By Label om_profil ADMINISTRATEUR TECHNIQUE ET FONCTIONNEL Input Text bloc C1 Select From List By Label om_widget RSS SERVER 2items 2urls Click On Submit Button ${id_widget_server_2i_2u}= Get Text om_dashboard # Vérification des informations reçu Depuis la page d'accueil admin admin # Vérification Pour le widget RSS SERVER 2items 2urls # titre widget Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-header h3 RSS SERVER 2items 2urls # Channel Element Should Contain css=div#widget_${id_widget_server_2i_2u} div.widget-content div.widget-rss-marker ul RSS_1 5 Items # item 1 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 # Description item 1 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 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 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 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 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 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 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 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 # Vérification Pour le widget RSS SERVER 1items 1urls Element Should Contain css=div#widget_${id_widget_server_1i_1u} div.widget-header h3 RSS SERVER 1items 1urls Element Should Contain css=div#widget_${id_widget_server_1i_1u} div.widget-content div.widget-rss-marker ul h4 RSS_1 5 Items 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 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 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 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 # Vérification pour le widget RSS CLIENT 3items 2urls Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-header h3 RSS CLIENT 3items 2urls Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker RSS_1 5 Items Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_1 du flux rss_1 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 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_2 du flux rss_1 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 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker item_3 du flux rss_1 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 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 Element Should Contain css=div#widget_${id_widget_client_3i_2u} div.widget-content div.widget-rss-marker RSS_2 4 Item # Vérification pour le widget RSS CLIENT 3items 1urls Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-header h3 RSS CLIENT 3items 1urls Element Should Contain css=div#widget_${id_widget_client_3i_1u} div.widget-content div.widget-rss-marker ul h4 RSS_1 5 Items 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 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 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 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 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 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 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 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 # Vérification pour le widget RSS NO ENTRY CLIENT Element Should Contain css=div#widget_${id_widget_client_no_entry} div.widget-header h3 RSS NO ENTRY CLIENT Element Should Contain css=div#widget_${id_widget_client_no_entry} div.widget-content div.widget-rss-marker Aucune donnée disponible # Vérification pour le widget RSS NO ENTRY SERVER Element Should Contain css=div#widget_${id_widget_server_no_entry} div.widget-header h3 RSS NO ENTRY SERVER Element Should Contain css=div#widget_${id_widget_server_no_entry} div.widget-content div.widget-rss-marker Aucune donnée disponible # Suppression des fichiers de /app. Remove Directory ..${/}app${/}rss true # # Suppression des widget du tdb Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=& Click Link ${id_widget_client_no_entry} Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer Click On Form Portlet Action om_dashboard supprimer Click On Submit Button Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=& Click Link ${id_widget_server_no_entry} Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer Click On Form Portlet Action om_dashboard supprimer Click On Submit Button Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=& Click Link ${id_widget_server_2i_2u} Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer Click On Form Portlet Action om_dashboard supprimer Click On Submit Button Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=& Click Link ${id_widget_server_1i_1u} Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer Click On Form Portlet Action om_dashboard supprimer Click On Submit Button Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=& Click Link ${id_widget_client_3i_2u} Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer Click On Form Portlet Action om_dashboard supprimer Click On Submit Button Go To ${PROJECT_URL}/app/index.php?module=tab&obj=om_dashboard&premier=0&tricol=-0&advs_id=&valide=&style=tab&onglet=& Click Link ${id_widget_client_3i_1u} Wait Until Page Contains Element css=#action-form-om_dashboard-supprimer Click On Form Portlet Action om_dashboard supprimer Click On Submit Button