2 # -*- coding: utf-8 -*-
3 """Tests de blocFissure ; en standalone
5 Cas tests basés sur les matériels :
10 + ellipse, ellipse_disque, ellipse_probleme
17 __revision__ = "V02.04"
22 # Lancement des cas-tests
25 salome.salome_init_without_session()
27 from blocFissure.CasTests.blocFissureTest import blocFissureTest
28 BLOCFISSURE_TEST = blocFissureTest(["cylindre", "cylindre_2", "disquePerce", "faceGauche","ellipse_1", "ellipse_2"])
29 #BLOCFISSURE_TEST = blocFissureTest(["cylindre", "cylindre_2", "disquePerce", "faceGauche","ellipse_1", "ellipse_2", "faceGauche_2"])
30 MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement()
31 #sys.stdout.write(MESSAGE_ERREUR)
36 if ( "NOOK" in MESSAGE_ERREUR ):
37 LAUX = MESSAGE_ERREUR.split()
38 ERREUR = int(LAUX[LAUX.index("NOOK")+2])
42 MESSAGE_ERREUR = "Impossible de trouver le diagnostic de la procédure de tests."
46 sys.stderr.write(MESSAGE_ERREUR)
47 #raise Exception(MESSAGE_ERREUR)