[openelec-Commits] r1198 - branches/migrate-tests-to-robot-framework/tests

0 views
Skip to first unread message

tux...@adullact.net

unread,
Apr 27, 2017, 9:11:16 AM4/27/17
to openmairi...@googlegroups.com
Author: tuxayo
Date: 2017-04-27 15:11:14 +0200 (Thu, 27 Apr 2017)
New Revision: 1198

Added:
branches/migrate-tests-to-robot-framework/tests/020_reqmos.robot
Log:
tests: add test to check reqmos

Part of porting the old Selenium tests to Robot Framework


Added: branches/migrate-tests-to-robot-framework/tests/020_reqmos.robot
===================================================================
--- branches/migrate-tests-to-robot-framework/tests/020_reqmos.robot (rev 0)
+++ branches/migrate-tests-to-robot-framework/tests/020_reqmos.robot 2017-04-27 13:11:14 UTC (rev 1198)
@@ -0,0 +1,45 @@
+*** Settings ***
+Resource resources/resources.robot
+Suite Setup For Suite Setup
+Suite Teardown For Suite Teardown
+Documentation Test case reqmos
+
+*** Test Cases ***
+Vérifier tous les exports reqmo
+ [Documentation] Aucune requête mémorisée reqmo du menu "Export" ->
+ ... "Requêtes mémorisées" ne doit produire d'erreur de base de données.
+
+ @{reqmo_filenames} = List Directory ../sql/pgsql/ *.reqmo.inc
+
+ Depuis la page d'accueil admin admin
+ Go To Submenu In Menu edition reqmo
+
+ :FOR ${reqmo_filename} IN @{reqmo_filenames}
+ # we call Split Extension twice to remove .inc and .reqmo
+ \ ${reqmo_name} ${_} = Split Extension ${reqmo_filename}
+ \ ${reqmo_name} ${_} = Split Extension ${reqmo_name}
+ # TODO: fix these values. This is a workaround to disable the test for
+ # these reqmos. This allows to keep testing the other reqmos. And
+ # to still use the rest of the test suite without being anoyed by this
+ # test. This is only while the actual bug is being fixed and must not
+ # stay forever like that.
+ \ Run Keyword If '${reqmo_name}' == 'stat_procuration_election_bureau'
+ \ ... Continue For Loop
+ \ Run Keyword If '${reqmo_name}' == 'stat_procuration_sexe'
+ \ ... Continue For Loop
+ \ Vérifier un export reqmo ${reqmo_name}
+
+
+*** Keywords ***
+Vérifier un export reqmo
+ [Arguments] ${reqmo_name}
+ Click Link ${reqmo_name}
+ Page Should Not Contain Errors
+ # Execute reqmo
+ Click Element name=valid.reqmo
+ Page Should Not Contain Errors
+
+ # Go back to reqmo list
+ Click link Retour
+ Click link Retour
+ Capture Page Screenshot

Reply all
Reply to author
Forward
0 new messages