From: GERALD NICOLAS Date: Mon, 26 Apr 2021 16:31:41 +0000 (+0200) Subject: Préparation à la scission des cas-tests X-Git-Tag: V9_7_0rc1~5^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=89b205395d338a1dab9d104d06f86757526365ef;p=modules%2Fsmesh.git Préparation à la scission des cas-tests --- diff --git a/doc/salome/examples/blocFissure_02_without_session.py b/doc/salome/examples/blocFissure_02_without_session.py new file mode 100755 index 000000000..454c70f3d --- /dev/null +++ b/doc/salome/examples/blocFissure_02_without_session.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Tests de blocFissure ; en standalone + +Cas tests basés sur les matériels : +. decoupeCylindre +. disque_perce +. fissureGauche +. fissureGauche2 ++ ellipse, ellipse_disque, ellipse_probleme + +Copyright 2021 EDF +Gérald NICOLAS ++33.1.78.19.43.52 +""" + +__revision__ = "V02.03" + +import os +import sys + +# Lancement des cas-tests +import salome +salome.standalone() +salome.salome_init() + +from blocFissure.CasTests.blocFissureTest import blocFissureTest +BLOCFISSURE_TEST = blocFissureTest(["cylindre", "cylindre_2", "disquePerce", "faceGauche","ellipse_1", "ellipse_2", "faceGauche_2"]) +#BLOCFISSURE_TEST = blocFissureTest(["cylindre", "cylindre_2", "disquePerce", "faceGauche","ellipse_1", "ellipse_2"]) +MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement() +sys.stdout.write(MESSAGE_ERREUR) +del BLOCFISSURE_TEST + +# Diagnostic +if MESSAGE_ERREUR: + if ( "NOOK" in MESSAGE_ERREUR ): + LAUX = MESSAGE_ERREUR.split() + ERREUR = int(LAUX[LAUX.index("NOOK")+2]) + else: + ERREUR = 0 +else: + MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests." + ERREUR = -1 + +if ERREUR: + sys.stderr.write(MESSAGE_ERREUR) + #raise Exception(MESSAGE_ERREUR) + assert(False) + diff --git a/doc/salome/examples/blocFissure_03_without_session.py b/doc/salome/examples/blocFissure_03_without_session.py new file mode 100755 index 000000000..a6f730c21 --- /dev/null +++ b/doc/salome/examples/blocFissure_03_without_session.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Tests de blocFissure ; en standalone + +Cas tests basés sur les matériels : +. eprouvetteCourbe +. eprouvetteDroite + +Copyright 2021 EDF +Gérald NICOLAS ++33.1.78.19.43.52 +""" + +__revision__ = "V02.03" + +import os +import sys + +# Lancement des cas-tests +import salome +salome.standalone() +salome.salome_init() + +from blocFissure.CasTests.blocFissureTest import blocFissureTest +BLOCFISSURE_TEST = blocFissureTest(["eprouvetteCourbe", "eprouvetteDroite", "eprouvetteDroite_2"]) +MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement() +#sys.stdout.write(MESSAGE_ERREUR) +del BLOCFISSURE_TEST + +# Diagnostic +if MESSAGE_ERREUR: + if ( "NOOK" in MESSAGE_ERREUR ): + LAUX = MESSAGE_ERREUR.split() + ERREUR = int(LAUX[LAUX.index("NOOK")+2]) + else: + ERREUR = 0 +else: + MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests." + ERREUR = -1 + +if ERREUR: + sys.stderr.write(MESSAGE_ERREUR) + #raise Exception(MESSAGE_ERREUR) + assert(False) + diff --git a/doc/salome/examples/blocFissure_04_without_session.py b/doc/salome/examples/blocFissure_04_without_session.py new file mode 100755 index 000000000..e535f7632 --- /dev/null +++ b/doc/salome/examples/blocFissure_04_without_session.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Tests de blocFissure ; en standalone + +Cas tests basés sans matériels (1/3) + +Copyright 2021 EDF +Gérald NICOLAS ++33.1.78.19.43.52 +""" + +__revision__ = "V02.03" + +import os +import sys + +# Lancement des cas-tests +import salome +salome.standalone() +salome.salome_init() + +from blocFissure.CasTests.blocFissureTest import blocFissureTest +BLOCFISSURE_TEST = blocFissureTest(["fissureCoude_1", "fissureCoude_2", "fissureCoude_3", "fissureCoude_4", "fissureCoude_5"]) +MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement() +#sys.stdout.write(MESSAGE_ERREUR) +del BLOCFISSURE_TEST + +# Diagnostic +if MESSAGE_ERREUR: + if ( "NOOK" in MESSAGE_ERREUR ): + LAUX = MESSAGE_ERREUR.split() + ERREUR = int(LAUX[LAUX.index("NOOK")+2]) + else: + ERREUR = 0 +else: + MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests." + ERREUR = -1 + +if ERREUR: + sys.stderr.write(MESSAGE_ERREUR) + #raise Exception(MESSAGE_ERREUR) + assert(False) + diff --git a/doc/salome/examples/blocFissure_05_without_session.py b/doc/salome/examples/blocFissure_05_without_session.py new file mode 100755 index 000000000..16e4bb331 --- /dev/null +++ b/doc/salome/examples/blocFissure_05_without_session.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Tests de blocFissure ; en standalone + +Cas tests basés sans matériels (1/3) + +Copyright 2021 EDF +Gérald NICOLAS ++33.1.78.19.43.52 +""" + +__revision__ = "V02.03" + +import os +import sys + +# Lancement des cas-tests +import salome +salome.standalone() +salome.salome_init() + +from blocFissure.CasTests.blocFissureTest import blocFissureTest +BLOCFISSURE_TEST = blocFissureTest(["fissureCoude_6", "fissureCoude_7", "fissureCoude_8", "fissureCoude_9", "fissureCoude_10"]) +MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement() +#sys.stdout.write(MESSAGE_ERREUR) +del BLOCFISSURE_TEST + +# Diagnostic +if MESSAGE_ERREUR: + if ( "NOOK" in MESSAGE_ERREUR ): + LAUX = MESSAGE_ERREUR.split() + ERREUR = int(LAUX[LAUX.index("NOOK")+2]) + else: + ERREUR = 0 +else: + MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests." + ERREUR = -1 + +if ERREUR: + sys.stderr.write(MESSAGE_ERREUR) + #raise Exception(MESSAGE_ERREUR) + assert(False) + diff --git a/doc/salome/examples/blocFissure_06_without_session.py b/doc/salome/examples/blocFissure_06_without_session.py new file mode 100755 index 000000000..185f5d74f --- /dev/null +++ b/doc/salome/examples/blocFissure_06_without_session.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Tests de blocFissure ; en standalone + +Cas tests basés sans matériels (1/3) + +Copyright 2021 EDF +Gérald NICOLAS ++33.1.78.19.43.52 +""" + +__revision__ = "V02.03" + +import os +import sys + +# Lancement des cas-tests +import salome +salome.standalone() +salome.salome_init() + +from blocFissure.CasTests.blocFissureTest import blocFissureTest +BLOCFISSURE_TEST = blocFissureTest(["fissure_Coude", "fissure_Coude_4"]) +MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement() +#sys.stdout.write(MESSAGE_ERREUR) +del BLOCFISSURE_TEST + +# Diagnostic +if MESSAGE_ERREUR: + if ( "NOOK" in MESSAGE_ERREUR ): + LAUX = MESSAGE_ERREUR.split() + ERREUR = int(LAUX[LAUX.index("NOOK")+2]) + else: + ERREUR = 0 +else: + MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests." + ERREUR = -1 + +if ERREUR: + sys.stderr.write(MESSAGE_ERREUR) + #raise Exception(MESSAGE_ERREUR) + assert(False) + diff --git a/doc/salome/examples/blocFissure_07_without_session.py b/doc/salome/examples/blocFissure_07_without_session.py new file mode 100755 index 000000000..0d5413215 --- /dev/null +++ b/doc/salome/examples/blocFissure_07_without_session.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Tests de blocFissure ; en standalone + +Cas tests basés sur les matériels : +. vis +. tube + +Copyright 2021 EDF +Gérald NICOLAS ++33.1.78.19.43.52 +""" + +__revision__ = "V02.03" + +import os +import sys + +# Lancement des cas-tests +import salome +salome.standalone() +salome.salome_init() + +from blocFissure.CasTests.blocFissureTest import blocFissureTest +BLOCFISSURE_TEST = blocFissureTest(["vis"]) +#BLOCFISSURE_TEST = blocFissureTest(["vis", "tube"]) +MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement() +#sys.stdout.write(MESSAGE_ERREUR) +del BLOCFISSURE_TEST + +# Diagnostic +if MESSAGE_ERREUR: + if ( "NOOK" in MESSAGE_ERREUR ): + LAUX = MESSAGE_ERREUR.split() + ERREUR = int(LAUX[LAUX.index("NOOK")+2]) + else: + ERREUR = 0 +else: + MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests." + ERREUR = -1 + +if ERREUR: + sys.stderr.write(MESSAGE_ERREUR) + #raise Exception(MESSAGE_ERREUR) + assert(False) +