From 9eb426087873ef7243b8b7eb55e20d5db810530a Mon Sep 17 00:00:00 2001 From: aurelien Date: Wed, 23 Jun 2021 16:15:08 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20d'un=20script=20pour=20lancer=20les=20t?= =?UTF-8?q?ests=20en=20s=C3=A9quences,=20maj=20readme=20&=20maj=20pour=20r?= =?UTF-8?q?endre=20les=20tests=20plus=20ind=C3=A9pendant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02_creation_formation_test.py | 22 ++++++++++++++++++++++ __pycache__/setting.cpython-37.pyc | Bin 707 -> 697 bytes lancement_de_tout_les_tests.sh | 9 +++++++++ readme.md | 13 ++++++++----- 4 files changed, 39 insertions(+), 5 deletions(-) create mode 100755 lancement_de_tout_les_tests.sh diff --git a/02_creation_formation_test.py b/02_creation_formation_test.py index 3167143..5288d9f 100644 --- a/02_creation_formation_test.py +++ b/02_creation_formation_test.py @@ -257,4 +257,26 @@ if __name__ == "__main__": cmdProcess = ["./scriptCreationDepartement.sh", LINK_SCODOC_SERVER, NOM_DPT] process = subprocess.Popen(cmdProcess) process.wait() + if NAVIGATEUR == "firefox": + driver = webdriver.Firefox() + else: + driver = webdriver.Chrome() + driver.get( + "https://" + + SCODOC_ADMIN_ID + + ":" + + SCODOC_ADMIN_PASS + + "@" + + BASE_NOT_SECURED_URL + + "force_admin_authentication" + ) + driver.get(BASE_URL + "scodoc_admin") + time.sleep(2) + select = Select(driver.find_element_by_id("CreateDept")) + select.select_by_visible_text(NOM_DPT) + driver.find_element_by_name("DeptId").submit() + time.sleep(1) + driver.find_element_by_id("tf_submit").click() + time.sleep(1) + driver.close() unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output="./output")) diff --git a/__pycache__/setting.cpython-37.pyc b/__pycache__/setting.cpython-37.pyc index c79d961097f49fae0b433e2a2fc0f5484c3c706b..9ff96bd99f61846960bca24820308cab131dca5f 100644 GIT binary patch delta 62 zcmX@ix|5aLiIpython3 01_creation_departement_test.py + +###Resultats des tests ###TODO > Lancer les test en parrallèle \ No newline at end of file