From 6cfa26ca170679e41add392cf46788966cbd0f74 Mon Sep 17 00:00:00 2001 From: Aurelien PLANCKE Date: Fri, 25 Jun 2021 13:44:16 +0200 Subject: [PATCH] modif id --- 03_etudiant_test.py | 2 +- 05_saisie_note_test.py | 12 ++++++--- __pycache__/setting.cpython-37.pyc | Bin 697 -> 707 bytes lancement_de_tout_les_tests.sh | 2 +- scriptGenerateReportPage.sh | 41 ----------------------------- 5 files changed, 10 insertions(+), 47 deletions(-) delete mode 100755 scriptGenerateReportPage.sh diff --git a/03_etudiant_test.py b/03_etudiant_test.py index cd21ebc..7aa2811 100644 --- a/03_etudiant_test.py +++ b/03_etudiant_test.py @@ -108,7 +108,7 @@ class PythonOrgSearch(unittest.TestCase): driver.find_element_by_id("tf_submit").click() time.sleep(1) self.assertTrue( - codepostaldomicile in driver.find_element_by_id("student-adress").text + codepostaldomicile in driver.find_element_by_id("student-address").text ) # Test Inscription d'un étudiant dans un semestre diff --git a/05_saisie_note_test.py b/05_saisie_note_test.py index da736fb..c49c59d 100644 --- a/05_saisie_note_test.py +++ b/05_saisie_note_test.py @@ -89,14 +89,18 @@ class PythonOrgSearch(unittest.TestCase): driver.get(URL) driver.find_element_by_link_text("semestre 4").click() self.wait.until(EC.url_changes(URL)) + matiereExist = False try: driver.find_element_by_class_name("formsemestre_status_ue") global URL_SEMESTRE URL_SEMESTRE = driver.current_url - self.assertTrue(True) + matiereExist = True except NoSuchElementException: - self.assertFalse(False) + matiereExist = False + self.assertTrue(matiereExist) + #Test : Changement de responsable sur module + # @expected : Le nom du responsable choisi apparait désormais sur le module concerné def test_030_changement_responsable_sur_module(self): driver = self.driver isThere = False @@ -123,7 +127,7 @@ class PythonOrgSearch(unittest.TestCase): driver.find_element_by_id("tf_submit").click() time.sleep(1) driver.get(URL_MATIERE) - nomResponsable = driver.find_element_by_id("ens_Responsable") + nomResponsable = driver.find_element_by_id("ens-responsable") self.assertTrue(SCODOC_CHEF_ID.lower() in nomResponsable.text.lower()) global isAdmin isAdmin = False @@ -146,7 +150,7 @@ class PythonOrgSearch(unittest.TestCase): driver.find_element_by_id("tf_submit").click() time.sleep(1) driver.get(URL_MATIERE) - professeurDansModule = driver.find_elements_by_class_name("ens_Dans_Module") + professeurDansModule = driver.find_elements_by_class_name("ens-in-module") time.sleep(5) professeurString = [] for professeur in professeurDansModule: diff --git a/__pycache__/setting.cpython-37.pyc b/__pycache__/setting.cpython-37.pyc index 9ff96bd99f61846960bca24820308cab131dca5f..4c16c7d18f3b385e3a1725d89f196f8b5213a2b1 100644 GIT binary patch delta 88 zcmdnVdYF~liI - - - - - - Directory Tree - - - -

Directory Tree

- ./ResultatTest/
-' >> ./ResultatTest/Résumé_"${TIME}".html -for file in ./ResultatTest/*.html; do - RESULT=$(cat $file | grep "Summary") - BASEFILE=$(basename $file) - LINK="${BASEFILE}" - echo "├── ${BASEFILE}'${RESULT}'
" >> ./ResultatTest/Résumé_${TIME}.html -done -echo '



' >> ./ResultatTest/Résumé_"${TIME}".html \ No newline at end of file