master
Aurelien PLANCKE 1 year ago
parent 9c00e85369
commit 6cfa26ca17
  1. 2
      03_etudiant_test.py
  2. 12
      05_saisie_note_test.py
  3. BIN
      __pycache__/setting.cpython-37.pyc
  4. 2
      lancement_de_tout_les_tests.sh
  5. 41
      scriptGenerateReportPage.sh

@ -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

@ -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:

@ -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

@ -1,41 +0,0 @@
#!/bin/bash
TIME=$(date +%d%m_%H%M%S)
echo '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Author" content="Made by 'tree'">
<meta name="GENERATOR" content="$Version: $ tree v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro $">
<title>Directory Tree</title>
<style type="text/css">
<!--
BODY { font-family : ariel, monospace, sans-serif; }
P { font-weight: normal; font-family : ariel, monospace, sans-serif; color: black; background-color: transparent;}
B { font-weight: normal; color: black; background-color: transparent;}
A:visited { font-weight : normal; text-decoration : none; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
A:link { font-weight : normal; text-decoration : none; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
A:hover { color : #000000; font-weight : normal; text-decoration : underline; background-color : yellow; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
A:active { color : #000000; font-weight: normal; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
.VERSION { font-size: small; font-family : arial, sans-serif; }
.NORM { color: black; background-color: transparent;}
.FIFO { color: purple; background-color: transparent;}
.CHAR { color: yellow; background-color: transparent;}
.DIR { color: blue; background-color: transparent;}
.BLOCK { color: yellow; background-color: transparent;}
.LINK { color: aqua; background-color: transparent;}
.SOCK { color: fuchsia;background-color: transparent;}
.EXEC { color: green; background-color: transparent;}
-->
</style>
</head>
<body>
<h1>Directory Tree</h1><p>
<a href="./ResultatTest/">./ResultatTest/</a><br>
' >> ./ResultatTest/Résumé_"${TIME}".html
for file in ./ResultatTest/*.html; do
RESULT=$(cat $file | grep "Summary")
BASEFILE=$(basename $file)
LINK="${BASEFILE}"
echo "├── <a href=${LINK}>${BASEFILE}</a>'${RESULT}'<br>" >> ./ResultatTest/Résumé_${TIME}.html
done
echo '<br><br><br><br></body></html>' >> ./ResultatTest/Résumé_"${TIME}".html
Loading…
Cancel
Save