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 9ff96bd..4c16c7d 100644 Binary files a/__pycache__/setting.cpython-37.pyc and b/__pycache__/setting.cpython-37.pyc differ diff --git a/lancement_de_tout_les_tests.sh b/lancement_de_tout_les_tests.sh index f84cf2b..5bda1b8 100755 --- a/lancement_de_tout_les_tests.sh +++ b/lancement_de_tout_les_tests.sh @@ -1,6 +1,6 @@ #!/bin/bash #Ce script lance en séquence les différents jeux de tests. -if [ "$#" -ne 2 ] +if [ "$#" -ne 1 ] then if [ "$1" = "--cleanup" ] || [ "$1" = "--c" ] then diff --git a/scriptGenerateReportPage.sh b/scriptGenerateReportPage.sh deleted file mode 100755 index 9eaf827..0000000 --- a/scriptGenerateReportPage.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -TIME=$(date +%d%m_%H%M%S) -echo ' - - - - - - 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