forked from aurelien.plancke/ScodocTestClient
modif id
This commit is contained in:
parent
9c00e85369
commit
6cfa26ca17
@ -108,7 +108,7 @@ class PythonOrgSearch(unittest.TestCase):
|
|||||||
driver.find_element_by_id("tf_submit").click()
|
driver.find_element_by_id("tf_submit").click()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
self.assertTrue(
|
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
|
# Test Inscription d'un étudiant dans un semestre
|
||||||
|
@ -89,14 +89,18 @@ class PythonOrgSearch(unittest.TestCase):
|
|||||||
driver.get(URL)
|
driver.get(URL)
|
||||||
driver.find_element_by_link_text("semestre 4").click()
|
driver.find_element_by_link_text("semestre 4").click()
|
||||||
self.wait.until(EC.url_changes(URL))
|
self.wait.until(EC.url_changes(URL))
|
||||||
|
matiereExist = False
|
||||||
try:
|
try:
|
||||||
driver.find_element_by_class_name("formsemestre_status_ue")
|
driver.find_element_by_class_name("formsemestre_status_ue")
|
||||||
global URL_SEMESTRE
|
global URL_SEMESTRE
|
||||||
URL_SEMESTRE = driver.current_url
|
URL_SEMESTRE = driver.current_url
|
||||||
self.assertTrue(True)
|
matiereExist = True
|
||||||
except NoSuchElementException:
|
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):
|
def test_030_changement_responsable_sur_module(self):
|
||||||
driver = self.driver
|
driver = self.driver
|
||||||
isThere = False
|
isThere = False
|
||||||
@ -123,7 +127,7 @@ class PythonOrgSearch(unittest.TestCase):
|
|||||||
driver.find_element_by_id("tf_submit").click()
|
driver.find_element_by_id("tf_submit").click()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
driver.get(URL_MATIERE)
|
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())
|
self.assertTrue(SCODOC_CHEF_ID.lower() in nomResponsable.text.lower())
|
||||||
global isAdmin
|
global isAdmin
|
||||||
isAdmin = False
|
isAdmin = False
|
||||||
@ -146,7 +150,7 @@ class PythonOrgSearch(unittest.TestCase):
|
|||||||
driver.find_element_by_id("tf_submit").click()
|
driver.find_element_by_id("tf_submit").click()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
driver.get(URL_MATIERE)
|
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)
|
time.sleep(5)
|
||||||
professeurString = []
|
professeurString = []
|
||||||
for professeur in professeurDansModule:
|
for professeur in professeurDansModule:
|
||||||
|
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Ce script lance en séquence les différents jeux de tests.
|
#Ce script lance en séquence les différents jeux de tests.
|
||||||
if [ "$#" -ne 2 ]
|
if [ "$#" -ne 1 ]
|
||||||
then
|
then
|
||||||
if [ "$1" = "--cleanup" ] || [ "$1" = "--c" ]
|
if [ "$1" = "--cleanup" ] || [ "$1" = "--c" ]
|
||||||
then
|
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…
Reference in New Issue
Block a user