1 # Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
26 GraphErrMsgs = Graph( "GraphErrMsgs" )
28 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/SyrStruct.xml'
30 GraphErrMsgs.Import( anXmlFile )
32 exec GraphErrMsgs.ListNodes( 'GraphErrMsgs' )
33 # ==> m3,m3incr,incra,div2,incrb,SyrComponent,forN,whileNotOne,fori,whileEven,EndOfforN,EndOfwhileNotOne,EndOffori,EndOfwhileEven,ifNotEven,EndOfifNotEven
35 exec ifNotEven.ListPorts()
36 # ==> IifNotEvenSyrComponent,IifNotEvenN,IifNotEvenK,IifNotEvenGate,OifNotEvenOdd,OifNotEvenEven,OifNotEvenSyrComponent,OifNotEvenN,OifNotEvenK,OifNotEvenDefault
38 exec EndOfifNotEven.ListPorts()
39 # ==> IEndOfifNotEvenN,IEndOfifNotEvenK,IEndOfifNotEvenDefault,OEndOfifNotEvenN,OEndOfifNotEvenK,OEndOfifNotEvenGate
41 aLink = GraphErrMsgs.Link( OifNotEvenEven , IEndOfifNotEvenN )
43 print "Error link from OifNotEvenEven to IEndOfifNotEvenN was created"
44 print "GraphErrMsgs test failed"
47 exec EndOfwhileEven.ListPorts()
48 # ==> IEndOfwhileEvenSyrComponent,IEndOfwhileEvenN,IEndOfwhileEvenK,IEndOfwhileEvenGate,OEndOfwhileEvenSyrComponent,OEndOfwhileEvenN,OEndOfwhileEvenK,OEndOfwhileEvenGate
50 exec EndOffori.ListPorts()
51 # ==> IEndOfforii,IEndOfforiK,IEndOfforiGate,OEndOfforii,OEndOfforiK,OEndOfforiGate
53 aLink = GraphErrMsgs.Link( OEndOfwhileEvenK , IEndOfifNotEvenK )
56 aLink = GraphErrMsgs.Link( OEndOfforiK , IEndOfifNotEvenK )
59 aLink = GraphErrMsgs.Link( OifNotEvenN , IEndOfifNotEvenK )
61 print "Error link from OifNotEvenN to IEndOfifNotEvenK was not created"
62 print "GraphErrMsgs test failed"
65 exec whileEven.ListPorts()
66 # ==>IwhileEvenSyrComponent,IwhileEvenN,IwhileEvenK,IwhileEvenGate,OwhileEvenSyrComponent,OwhileEvenN,OwhileEvenK,OwhileEvenGate
68 aLink = GraphErrMsgs.Link( OifNotEvenK , IwhileEvenK )
71 aLink = GraphErrMsgs.Link( OifNotEvenOdd , IwhileEvenK )
73 print "Error link from OifNotEvenOdd to IwhileEvenK was created"
74 print "GraphErrMsgs test failed"
77 aLink = GraphErrMsgs.Link( OifNotEvenDefault , IwhileEvenK )
79 print "Error link from OifNotEvenDefault to IwhileEvenK was created"
80 print "GraphErrMsgs test failed"
84 # ==> Idiv2anEvenInteger,Idiv2Gate,Odiv2anInteger,Odiv2Gate
86 aLink = GraphErrMsgs.Link( OwhileEvenN , Idiv2Gate )
88 print "Error link from OwhileEvenN to Idiv2Gate was created"
89 print "GraphErrMsgs test failed"
92 print "GraphErrMsgs Errors Messages :"
93 print GraphErrMsgs.Messages()
95 RunOk = GraphErrMsgs.Run()
97 print "Error : Success call to Run"
98 print "GraphErrMsgs test failed"
103 print "GraphErrMsgs Errors Messages :"
104 print GraphErrMsgs.Messages()
109 # GraphBadInputInLoop
110 GraphBadInputInLoop = Graph( "GraphBadInputInLoop" )
112 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop.xml'
114 GraphBadInputInLoop.Import( anXmlFile )
116 RunOk = GraphBadInputInLoop.Run()
118 print "Error : Success call to Run"
119 print "GraphBadInputInLoop test failed"
122 GraphBadInputInLoop.DoneW()
124 print "GraphBadInputInLoop Errors Messages :"
125 print GraphBadInputInLoop.Messages()
131 # GraphBadInputInLoop1
132 GraphBadInputInLoop1 = Graph( "GraphBadInputInLoop1" )
134 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop1.xml'
136 GraphBadInputInLoop1.Import( anXmlFile )
138 RunOk = GraphBadInputInLoop1.Run()
140 print "Error : Success call to Run"
141 print "GraphBadInputInLoop1 test failed"
144 GraphBadInputInLoop1.DoneW()
146 print "GraphBadInputInLoop1 Errors Messages :"
147 print GraphBadInputInLoop1.Messages()
153 # GraphBadInputInLoop2
154 GraphBadInputInLoop2 = Graph( "GraphBadInputInLoop2" )
156 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop2.xml'
158 GraphBadInputInLoop2.Import( anXmlFile )
160 RunOk = GraphBadInputInLoop2.Run()
162 print "Error : Success call to Run"
163 print "GraphBadInputInLoop2 test failed"
166 GraphBadInputInLoop2.DoneW()
168 print "GraphBadInputInLoop2 Errors Messages :"
169 print GraphBadInputInLoop2.Messages()
175 # GraphBadInputInLoop3
176 GraphBadInputInLoop3 = Graph( "GraphBadInputInLoop3" )
178 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadInputInLoop3.xml'
180 GraphBadInputInLoop3.Import( anXmlFile )
182 RunOk = GraphBadInputInLoop3.Run()
184 print "Error : Success call to Run"
185 print "GraphBadInputInLoop3 test failed"
188 GraphBadInputInLoop3.DoneW()
190 print "GraphBadInputInLoop3 Errors Messages :"
191 print GraphBadInputInLoop3.Messages()
197 # GraphBadOutputOfLoop
198 GraphBadOutputOfLoop = Graph( "GraphBadOutputOfLoop" )
200 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadOutputOfLoop.xml'
202 GraphBadOutputOfLoop.Import( anXmlFile )
204 RunOk = GraphBadOutputOfLoop.Run()
206 print "Error : Success call to Run"
207 print "GraphBadOutputOfLoop test failed"
210 GraphBadOutputOfLoop.DoneW()
212 print "GraphBadOutputOfLoop Errors Messages :"
213 print GraphBadOutputOfLoop.Messages()
219 # GraphBadOutputOfLoop1
220 GraphBadOutputOfLoop1 = Graph( "GraphBadOutputOfLoop1" )
222 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadOutputOfLoop1.xml'
224 GraphBadOutputOfLoop1.Import( anXmlFile )
226 RunOk = GraphBadOutputOfLoop1.Run()
228 print "Error : Success call to Run"
229 print "GraphBadOutputOfLoop1 test failed"
232 GraphBadOutputOfLoop1.DoneW()
234 print "GraphBadOutputOfLoop1 Errors Messages :"
235 print GraphBadOutputOfLoop1.Messages()
241 # GraphBadOutputOfLoop2
242 GraphBadOutputOfLoop2 = Graph( "GraphBadOutputOfLoop2" )
244 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphBadOutputOfLoop2.xml'
246 GraphBadOutputOfLoop2.Import( anXmlFile )
248 RunOk = GraphBadOutputOfLoop2.Run()
250 print "Error : Success call to Run"
251 print "GraphBadOutputOfLoop2 test failed"
254 GraphBadOutputOfLoop2.DoneW()
256 print "GraphBadOutputOfLoop2 Errors Messages :"
257 print GraphBadOutputOfLoop2.Messages()
263 # GraphConvertObjRefCheckNotCompatible
264 GraphConvertObjRefCheckNotCompatible = Graph( "GraphConvertObjRefCheckNotCompatible" )
266 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphConvertObjRefCheckNotCompatible.xml'
268 GraphConvertObjRefCheckNotCompatible.Import( anXmlFile )
270 RunOk = GraphConvertObjRefCheckNotCompatible.Run()
272 print "Error : Success call to Run"
273 print "GraphConvertObjRefCheckNotCompatible test failed"
276 GraphConvertObjRefCheckNotCompatible.DoneW()
278 print "GraphConvertObjRefCheckNotCompatible Errors Messages :"
279 print GraphConvertObjRefCheckNotCompatible.Messages()
286 # GraphWrongPythonFunctions
287 GraphWrongPythonFunctions = Graph( "GraphWrongPythonFunctions" )
289 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphWrongPythonFunctions.xml'
291 GraphWrongPythonFunctions.Import( anXmlFile )
293 RunOk = GraphWrongPythonFunctions.Run()
295 print "Error : Success call to Run"
296 print "GraphWrongPythonFunctions test failed"
299 GraphWrongPythonFunctions.DoneW()
301 print "GraphWrongPythonFunctions Errors Messages :"
302 print GraphWrongPythonFunctions.Messages()
308 # GraphWrongContainerOrComponent
309 GraphWrongContainerOrComponent = Graph( "GraphWrongContainerOrComponent" )
311 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphWrongContainerOrComponent.xml'
313 GraphWrongContainerOrComponent.Import( anXmlFile )
315 RunOk = GraphWrongContainerOrComponent.Run()
317 print "Error : UnSuccess call to Run"
318 print "GraphWrongContainerOrComponent test failed"
321 GraphWrongContainerOrComponent.DoneW()
323 print "GraphWrongContainerOrComponent Errors Messages :"
324 print GraphWrongContainerOrComponent.Messages()
330 # GraphLoopSwitchDefaultAborted
331 GraphLoopSwitchDefaultAborted = Graph( "GraphLoopSwitchDefaultAborted" )
333 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchDefaultAborted.xml'
335 GraphLoopSwitchDefaultAborted.Import( anXmlFile )
337 RunOk = GraphLoopSwitchDefaultAborted.Run()
339 print "Error : UnSuccess call to Run"
340 print "GraphLoopSwitchDefaultAborted test failed"
343 GraphLoopSwitchDefaultAborted.DoneW()
345 print "GraphLoopSwitchDefaultAborted Errors Messages :"
346 print GraphLoopSwitchDefaultAborted.Messages()
352 # GraphLoopSwitchOfSwitchAborted
353 GraphLoopSwitchOfSwitchAborted = Graph( "GraphLoopSwitchOfSwitchAborted" )
355 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchOfSwitchAborted.xml'
357 GraphLoopSwitchOfSwitchAborted.Import( anXmlFile )
359 RunOk = GraphLoopSwitchOfSwitchAborted.Run()
361 print "Error : UnSuccess call to Run"
362 print "GraphLoopSwitchOfSwitchAborted test failed"
365 GraphLoopSwitchOfSwitchAborted.DoneW()
367 print "GraphLoopSwitchOfSwitchAborted Errors Messages :"
368 print GraphLoopSwitchOfSwitchAborted.Messages()
374 # GraphLoopSwitchOfSwitchNOTValid
375 GraphLoopSwitchOfSwitchNOTValid = Graph( "GraphLoopSwitchOfSwitchNOTValid" )
377 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchOfSwitchNOTValid.xml'
379 GraphLoopSwitchOfSwitchNOTValid.Import( anXmlFile )
381 RunOk = GraphLoopSwitchOfSwitchNOTValid.Run()
383 print "Error : Success call to Run"
384 print "GraphLoopSwitchOfSwitchNOTValid test failed"
387 GraphLoopSwitchOfSwitchNOTValid.DoneW()
389 print "GraphLoopSwitchOfSwitchNOTValid Errors Messages :"
390 print GraphLoopSwitchOfSwitchNOTValid.Messages()
395 # GraphLoopSwitchsAborted
396 GraphLoopSwitchsAborted = Graph( "GraphLoopSwitchsAborted" )
398 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchsAborted.xml'
400 GraphLoopSwitchsAborted.Import( anXmlFile )
402 RunOk = GraphLoopSwitchsAborted.Run()
404 print "Error : UnSuccess call to Run"
405 print "GraphLoopSwitchsAborted test failed"
408 GraphLoopSwitchsAborted.DoneW()
410 print "GraphLoopSwitchsAborted Errors Messages :"
411 print GraphLoopSwitchsAborted.Messages()
417 # GraphLoopSwitchsBranchesDefaultAborted
418 GraphLoopSwitchsBranchesDefaultAborted = Graph( "GraphLoopSwitchsBranchesDefaultAborted" )
420 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchsBranchesDefaultAborted.xml'
422 GraphLoopSwitchsBranchesDefaultAborted.Import( anXmlFile )
424 RunOk = GraphLoopSwitchsBranchesDefaultAborted.Run()
426 print "Error : UnSuccess call to Run"
427 print "GraphLoopSwitchsBranchesDefaultAborted test failed"
430 GraphLoopSwitchsBranchesDefaultAborted.DoneW()
432 print "GraphLoopSwitchsBranchesDefaultAborted Errors Messages :"
433 print GraphLoopSwitchsBranchesDefaultAborted.Messages()
439 # GraphLoopSwitchsNOTValid
440 GraphLoopSwitchsNOTValid = Graph( "GraphLoopSwitchsNOTValid" )
442 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchsNOTValid.xml'
444 GraphLoopSwitchsNOTValid.Import( anXmlFile )
446 RunOk = GraphLoopSwitchsNOTValid.Run()
448 print "Error : Success call to Run"
449 print "GraphLoopSwitchsNOTValid test failed"
452 GraphLoopSwitchsNOTValid.DoneW()
454 print "GraphLoopSwitchsNOTValid Errors Messages :"
455 print GraphLoopSwitchsNOTValid.Messages()
460 # GraphSwitchCheckBranch2NOTValid
461 GraphSwitchCheckBranch2NOTValid = Graph( "GraphSwitchCheckBranch2NOTValid" )
463 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml'
465 GraphSwitchCheckBranch2NOTValid.Import( anXmlFile )
467 RunOk = GraphSwitchCheckBranch2NOTValid.Run()
469 print "Error : Success call to Run"
470 print "GraphSwitchCheckBranch2NOTValid test failed"
473 GraphSwitchCheckBranch2NOTValid.DoneW()
475 print "GraphSwitchCheckBranch2NOTValid Errors Messages :"
476 print GraphSwitchCheckBranch2NOTValid.Messages()
481 # GraphSwitchCheckDefault1NOTValid
482 GraphSwitchCheckDefault1NOTValid = Graph( "GraphSwitchCheckDefault1NOTValid" )
484 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml'
486 GraphSwitchCheckDefault1NOTValid.Import( anXmlFile )
488 RunOk = GraphSwitchCheckDefault1NOTValid.Run()
490 print "Error : Success call to Run"
491 print "GraphSwitchCheckDefault1NOTValid test failed"
494 GraphSwitchCheckDefault1NOTValid.DoneW()
496 print "GraphSwitchCheckDefault1NOTValid Errors Messages :"
497 print GraphSwitchCheckDefault1NOTValid.Messages()
502 # GraphSwitchCheckDefault2NOTValid
503 GraphSwitchCheckDefault2NOTValid = Graph( "GraphSwitchCheckDefault2NOTValid" )
505 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml'
507 GraphSwitchCheckDefault2NOTValid.Import( anXmlFile )
509 RunOk = GraphSwitchCheckDefault2NOTValid.Run()
511 print "Error : Success call to Run"
512 print "GraphSwitchCheckDefault2NOTValid test failed"
515 GraphSwitchCheckDefault2NOTValid.DoneW()
517 print "GraphSwitchCheckDefault2NOTValid Errors Messages :"
518 print GraphSwitchCheckDefault2NOTValid.Messages()
523 # GraphSwitchCheckDefault2NOTValid1
524 GraphSwitchCheckDefault2NOTValid1 = Graph( "GraphSwitchCheckDefault2NOTValid1" )
526 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml'
528 GraphSwitchCheckDefault2NOTValid1.Import( anXmlFile )
530 RunOk = GraphSwitchCheckDefault2NOTValid1.Run()
532 print "Error : Success call to Run"
533 print "GraphSwitchCheckDefault2NOTValid1 test failed"
536 GraphSwitchCheckDefault2NOTValid1.DoneW()
538 print "GraphSwitchCheckDefault2NOTValid1 Errors Messages :"
539 print GraphSwitchCheckDefault2NOTValid1.Messages()
544 # GraphSwitchCheckDefault2NOTValid2
545 GraphSwitchCheckDefault2NOTValid2 = Graph( "GraphSwitchCheckDefault2NOTValid2" )
547 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml'
549 GraphSwitchCheckDefault2NOTValid2.Import( anXmlFile )
551 RunOk = GraphSwitchCheckDefault2NOTValid2.Run()
553 print "Error : Success call to Run"
554 print "GraphSwitchCheckDefault2NOTValid2 test failed"
557 GraphSwitchCheckDefault2NOTValid2.DoneW()
559 print "GraphSwitchCheckDefault2NOTValid2 Errors Messages :"
560 print GraphSwitchCheckDefault2NOTValid2.Messages()
566 GraphSwitchCrash = Graph( "GraphSwitchCrash" )
568 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCrash.xml'
570 GraphSwitchCrash.Import( anXmlFile )
572 RunOk = GraphSwitchCrash.Run()
574 print "Error : UnSuccess call to Run"
575 print "GraphSwitchCrash test failed"
578 GraphSwitchCrash.DoneW()
580 print "GraphSwitchCrash Errors Messages :"
581 print GraphSwitchCrash.Messages()
587 GraphSwitchErrExec = Graph( "GraphSwitchErrExec" )
589 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchErrExec.xml'
591 GraphSwitchErrExec.Import( anXmlFile )
593 RunOk = GraphSwitchErrExec.Run()
595 print "Error : UnSuccess call to Run"
596 print "GraphSwitchErrExec test failed"
599 GraphSwitchErrExec.DoneW()
601 print "GraphSwitchErrExec Errors Messages :"
602 print GraphSwitchErrExec.Messages()
607 # GraphSwitchGatesNoDefaultAborted
608 GraphSwitchGatesNoDefaultAborted = Graph( "GraphSwitchGatesNoDefaultAborted" )
610 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchGatesNoDefaultAborted.xml'
612 GraphSwitchGatesNoDefaultAborted.Import( anXmlFile )
614 RunOk = GraphSwitchGatesNoDefaultAborted.Run()
616 print "Error : UnSuccess call to Run"
617 print "GraphSwitchGatesNoDefaultAborted test failed"
620 GraphSwitchGatesNoDefaultAborted.DoneW()
622 print "GraphSwitchGatesNoDefaultAborted Errors Messages :"
623 print GraphSwitchGatesNoDefaultAborted.Messages()
628 # GraphSwitchOutputNOTValid
629 GraphSwitchOutputNOTValid = Graph( "GraphSwitchOutputNOTValid" )
631 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchOutputNOTValid.xml'
633 GraphSwitchOutputNOTValid.Import( anXmlFile )
635 RunOk = GraphSwitchOutputNOTValid.Run()
637 print "Error : Success call to Run"
638 print "GraphSwitchOutputNOTValid test failed"
641 GraphSwitchOutputNOTValid.DoneW()
643 print "GraphSwitchOutputNOTValid Errors Messages :"
644 print GraphSwitchOutputNOTValid.Messages()
649 # GraphSyrControlAborted
650 GraphSyrControlAborted = Graph( "GraphSyrControlAborted" )
652 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAborted.xml'
654 GraphSyrControlAborted.Import( anXmlFile )
656 RunOk = GraphSyrControlAborted.Run()
658 print "Error : UnSuccess call to Run"
659 print "GraphSyrControlAborted test failed"
662 GraphSyrControlAborted.DoneW()
664 print "GraphSyrControlAborted Errors Messages :"
665 print GraphSyrControlAborted.Messages()
671 GraphSyrControlAve = Graph( "GraphSyrControlAve" )
673 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAve.xml'
675 GraphSyrControlAve.Import( anXmlFile )
677 RunOk = GraphSyrControlAve.Run()
679 print "Error : Success call to Run"
680 print "GraphSyrControlAve test failed"
683 GraphSyrControlAve.DoneW()
685 State = GraphSyrControlAve.State()
686 if State != SUPERV.DoneState:
687 Messages = GraphSyrControlAve.Messages()
688 print "Error GraphSyrControlAve has Messages :"
695 # GraphSyrControlAveValid
696 GraphSyrControlAveValid = Graph( "GraphSyrControlAveValid" )
698 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveValid.xml'
700 GraphSyrControlAveValid.Import( anXmlFile )
702 RunOk = GraphSyrControlAveValid.Run()
704 print "Error : Success call to Run"
705 print "GraphSyrControlAveValid test failed"
708 GraphSyrControlAveValid.DoneW()
710 Messages = GraphSyrControlAveValid.Messages()
711 State = GraphSyrControlAveValid.State()
712 if State != SUPERV.DoneState:
713 print "Error GraphSyrControlAveValid has Messages :"
720 # GraphSyrControlAveExecutable
721 GraphSyrControlAveExecutable = Graph( "GraphSyrControlAveExecutable" )
723 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveExecutable.xml'
725 GraphSyrControlAveExecutable.Import( anXmlFile )
727 RunOk = GraphSyrControlAveExecutable.Run()
729 print "Error : UnSuccess call to Run"
730 print "GraphSyrControlAveExecutable test failed"
733 GraphSyrControlAveExecutable.DoneW()
735 State = GraphSyrControlAveExecutable.State()
736 if State != SUPERV.DoneState:
737 Messages = GraphSyrControlAveExecutable.Messages()
738 print "Error GraphSyrControlAveExecutable has Messages :"
745 # GraphSyrControlAveNOTValid
746 GraphSyrControlAveNOTValid = Graph( "GraphSyrControlAveNOTValid" )
748 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveNOTValid.xml'
750 GraphSyrControlAveNOTValid.Import( anXmlFile )
752 RunOk = GraphSyrControlAveNOTValid.Run()
754 print "Error : Success call to Run"
755 print "GraphSyrControlAveNOTValid test failed"
758 GraphSyrControlAveNOTValid.DoneW()
760 print "GraphSyrControlAveNOTValid Errors Messages :"
761 print GraphSyrControlAveNOTValid.Messages()
766 # GraphSyrControlAveNOTValid1
767 GraphSyrControlAveNOTValid1 = Graph( "GraphSyrControlAveNOTValid1" )
769 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSyrControlAveNOTValid1.xml'
771 GraphSyrControlAveNOTValid1.Import( anXmlFile )
773 RunOk = GraphSyrControlAveNOTValid1.Run()
775 print "Error : UnSuccess call to Run"
776 print "GraphSyrControlAveNOTValid1 test failed"
779 GraphSyrControlAveNOTValid1.DoneW()
781 print "GraphSyrControlAveNOTValid1 Errors Messages :"
782 print GraphSyrControlAveNOTValid1.Messages()
789 GraphSwitch = Graph( "GraphSwitch" )
791 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitch.xml'
793 GraphSwitch.Import( anXmlFile )
795 RunOk = GraphSwitch.Run()
797 print "Error : UnSuccess call to Run"
798 print "GraphSwitch test failed"
803 Messages = GraphSwitch.Messages()
805 print "Error GraphSwitch has Messages :"
812 # GraphSwitchExecutable
813 GraphSwitchExecutable = Graph( "GraphSwitchExecutable" )
815 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchExecutable.xml'
817 GraphSwitchExecutable.Import( anXmlFile )
819 RunOk = GraphSwitchExecutable.Run()
821 print "Error : UnSuccess call to Run"
822 print "GraphSwitchExecutable test failed"
825 GraphSwitchExecutable.DoneW()
827 Messages = GraphSwitchExecutable.Messages()
829 print "Error GraphSwitchExecutable has Messages :"
836 # GraphSwitchNOTExecutable
837 GraphSwitchNOTExecutable = Graph( "GraphSwitchNOTExecutable" )
839 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchNOTExecutable.xml'
841 GraphSwitchNOTExecutable.Import( anXmlFile )
843 RunOk = GraphSwitchNOTExecutable.Run()
845 print "Error : Success call to Run"
846 print "GraphSwitchNOTExecutable test failed"
849 GraphSwitchNOTExecutable.DoneW()
851 print "GraphSwitchNOTExecutable Errors Messages :"
852 print GraphSwitchNOTExecutable.Messages()
857 # GraphSwitchNOTExecutable1
858 GraphSwitchNOTExecutable1 = Graph( "GraphSwitchNOTExecutable1" )
860 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchNOTExecutable1.xml'
862 GraphSwitchNOTExecutable1.Import( anXmlFile )
864 RunOk = GraphSwitchNOTExecutable1.Run()
866 print "Error : Success call to Run"
867 print "GraphSwitchNOTExecutable1 test failed"
870 GraphSwitchNOTExecutable1.DoneW()
872 print "GraphSwitchNOTExecutable1 Errors Messages :"
873 print GraphSwitchNOTExecutable1.Messages()
879 # GraphSwitchNOTExecutable2
880 GraphSwitchNOTExecutable2 = Graph( "GraphSwitchNOTExecutable2" )
882 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchNOTExecutable2.xml'
884 GraphSwitchNOTExecutable2.Import( anXmlFile )
886 RunOk = GraphSwitchNOTExecutable2.Run()
888 print "Error : Success call to Run"
889 print "GraphSwitchNOTExecutable2 test failed"
892 GraphSwitchNOTExecutable2.DoneW()
894 print "GraphSwitchNOTExecutable2 Errors Messages :"
895 print GraphSwitchNOTExecutable2.Messages()
901 # GraphSwitchBranchGates
902 GraphSwitchBranchGates = Graph( "GraphSwitchBranchGates" )
904 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchBranchGates.xml'
906 GraphSwitchBranchGates.Import( anXmlFile )
908 RunOk = GraphSwitchBranchGates.Run()
910 print "Error : UnSuccess call to Run"
911 print "GraphSwitchBranchGates test failed"
914 GraphSwitchBranchGates.DoneW()
916 Messages = GraphSwitchBranchGates.Messages()
918 print "Error GraphSwitchBranchGates has Messages :"
925 # GraphInLinesUnValid
926 GraphInLinesUnValid = Graph( "GraphInLinesUnValid" )
928 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphInLinesUnValid.xml'
930 GraphInLinesUnValid.Import( anXmlFile )
932 RunOk = GraphInLinesUnValid.Run()
934 print "Error : Success call to Run"
935 print "GraphInLinesUnValid test failed"
938 GraphInLinesUnValid.DoneW()
940 print "GraphInLinesUnValid Errors Messages :"
941 print GraphInLinesUnValid.Messages()
947 # GraphSwitchCheckBranch2NOTValid
948 GraphSwitchCheckBranch2NOTValid = Graph( "GraphSwitchCheckBranch2NOTValid" )
950 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckBranch2NOTValid.xml'
952 GraphSwitchCheckBranch2NOTValid.Import( anXmlFile )
954 RunOk = GraphSwitchCheckBranch2NOTValid.Run()
956 print "Error : Success call to Run"
957 print "GraphSwitchCheckBranch2NOTValid test failed"
960 GraphSwitchCheckBranch2NOTValid.DoneW()
962 print "GraphSwitchCheckBranch2NOTValid Errors Messages :"
963 print GraphSwitchCheckBranch2NOTValid.Messages()
969 # GraphSwitchCheckDefault1NOTValid
970 GraphSwitchCheckDefault1NOTValid = Graph( "GraphSwitchCheckDefault1NOTValid" )
972 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault1NOTValid.xml'
974 GraphSwitchCheckDefault1NOTValid.Import( anXmlFile )
976 RunOk = GraphSwitchCheckDefault1NOTValid.Run()
978 print "Error : Success call to Run"
979 print "GraphSwitchCheckDefault1NOTValid test failed"
982 GraphSwitchCheckDefault1NOTValid.DoneW()
984 print "GraphSwitchCheckDefault1NOTValid Errors Messages :"
985 print GraphSwitchCheckDefault1NOTValid.Messages()
990 # GraphSwitchCheckDefault2NOTValid
991 GraphSwitchCheckDefault2NOTValid = Graph( "GraphSwitchCheckDefault2NOTValid" )
993 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid.xml'
995 GraphSwitchCheckDefault2NOTValid.Import( anXmlFile )
997 RunOk = GraphSwitchCheckDefault2NOTValid.Run()
999 print "Error : Success call to Run"
1000 print "GraphSwitchCheckDefault2NOTValid test failed"
1003 GraphSwitchCheckDefault2NOTValid.DoneW()
1005 print "GraphSwitchCheckDefault2NOTValid Errors Messages :"
1006 print GraphSwitchCheckDefault2NOTValid.Messages()
1011 from SuperV import *
1013 # GraphSwitchCheckDefault2NOTValid1
1014 GraphSwitchCheckDefault2NOTValid1 = Graph( "GraphSwitchCheckDefault2NOTValid1" )
1016 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid1.xml'
1018 GraphSwitchCheckDefault2NOTValid1.Import( anXmlFile )
1020 RunOk = GraphSwitchCheckDefault2NOTValid1.Run()
1022 print "Error : Success call to Run"
1023 print "GraphSwitchCheckDefault2NOTValid1 test failed"
1026 GraphSwitchCheckDefault2NOTValid1.DoneW()
1028 print "GraphSwitchCheckDefault2NOTValid1 Errors Messages :"
1029 print GraphSwitchCheckDefault2NOTValid1.Messages()
1033 from SuperV import *
1035 # GraphSwitchCheckDefault2NOTValid2
1036 GraphSwitchCheckDefault2NOTValid2 = Graph( "GraphSwitchCheckDefault2NOTValid2" )
1038 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchCheckDefault2NOTValid2.xml'
1040 GraphSwitchCheckDefault2NOTValid2.Import( anXmlFile )
1042 RunOk = GraphSwitchCheckDefault2NOTValid2.Run()
1044 print "Error : Success call to Run"
1045 print "GraphSwitchCheckDefault2NOTValid2 test failed"
1048 GraphSwitchCheckDefault2NOTValid2.DoneW()
1050 print "GraphSwitchCheckDefault2NOTValid2 Errors Messages :"
1051 print GraphSwitchCheckDefault2NOTValid2.Messages()
1054 from SuperV import *
1057 GraphLoopsCoupled = Graph( "GraphLoopsCoupled" )
1059 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopsCoupled.xml'
1061 GraphLoopsCoupled.Import( anXmlFile )
1063 RunOk = GraphLoopsCoupled.Run()
1065 print "Error : Success call to Run"
1066 print "GraphLoopsCoupled test failed"
1069 GraphLoopsCoupled.DoneW()
1071 print "GraphLoopsCoupled Errors Messages :"
1072 print GraphLoopsCoupled.Messages()
1075 from SuperV import *
1078 GraphLoopGates = Graph( "GraphLoopGates" )
1080 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopGates.xml'
1082 GraphLoopGates.Import( anXmlFile )
1084 RunOk = GraphLoopGates.Run()
1086 print "Error : UnSuccess call to Run"
1087 print "GraphLoopGates test failed"
1090 GraphLoopGates.DoneW()
1092 Messages = GraphSwitchBranchGates.Messages()
1094 print "Error GraphSwitchBranchGates has Messages :"
1100 from SuperV import *
1102 # GraphLoopGatesNOTValid
1103 GraphLoopGatesNOTValid = Graph( "GraphLoopGatesNOTValid" )
1105 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopGatesNOTValid.xml'
1107 GraphLoopGatesNOTValid.Import( anXmlFile )
1109 RunOk = GraphLoopGatesNOTValid.Run()
1111 print "Error : Success call to Run"
1112 print "GraphLoopGatesNOTValid test failed"
1115 GraphLoopGatesNOTValid.DoneW()
1117 print "GraphLoopGatesNOTValid Errors Messages :"
1118 print GraphLoopGatesNOTValid.Messages()
1121 from SuperV import *
1123 # GraphSwitchManyCases
1124 GraphSwitchManyCases = Graph( "GraphSwitchManyCases" )
1126 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchManyCases.xml'
1128 GraphSwitchManyCases.Import( anXmlFile )
1130 RunOk = GraphSwitchManyCases.Run()
1132 print "Error : UnSuccess call to Run"
1133 print "GraphSwitchManyCases test failed"
1136 GraphSwitchManyCases.DoneW()
1138 print "GraphSwitchManyCases Errors Messages :"
1139 print GraphSwitchManyCases.Messages()
1143 from SuperV import *
1145 # GraphLoopTwoBranches
1146 GraphLoopTwoBranches = Graph( "GraphLoopTwoBranches" )
1148 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopTwoBranches.xml'
1150 GraphLoopTwoBranches.Import( anXmlFile )
1152 RunOk = GraphLoopTwoBranches.Run()
1154 print "Error : UnSuccess call to Run"
1155 print "GraphLoopTwoBranches test failed"
1158 GraphLoopTwoBranches.DoneW()
1160 print "GraphLoopTwoBranches Errors Messages :"
1161 print GraphLoopTwoBranches.Messages()
1165 from SuperV import *
1167 # GraphSwitchOutputNOTValid
1168 GraphSwitchOutputNOTValid = Graph( "GraphSwitchOutputNOTValid" )
1170 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphSwitchOutputNOTValid.xml'
1172 GraphSwitchOutputNOTValid.Import( anXmlFile )
1174 RunOk = GraphSwitchOutputNOTValid.Run()
1176 print "Error : Success call to Run"
1177 print "GraphSwitchOutputNOTValid test failed"
1180 GraphSwitchOutputNOTValid.DoneW()
1182 print "GraphSwitchOutputNOTValid Errors Messages :"
1183 print GraphSwitchOutputNOTValid.Messages()
1187 from SuperV import *
1190 GraphLoopSwitch = Graph( "GraphLoopSwitch" )
1192 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitch.xml'
1194 GraphLoopSwitch.Import( anXmlFile )
1196 RunOk = GraphLoopSwitch.Run()
1198 print "Error : UnSuccess call to Run"
1199 print "GraphLoopSwitch test failed"
1202 GraphLoopSwitch.DoneW()
1204 Messages = GraphLoopSwitch.Messages()
1206 print "Error GraphLoopSwitch has Messages :"
1212 from SuperV import *
1214 # GraphLoopSwitchGateDefault
1215 GraphLoopSwitchGateDefault = Graph( "GraphLoopSwitchGateDefault" )
1217 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchGateDefault.xml'
1219 GraphLoopSwitchGateDefault.Import( anXmlFile )
1221 RunOk = GraphLoopSwitchGateDefault.Run()
1223 print "Error : UnSuccess call to Run"
1224 print "GraphLoopSwitchGateDefault test failed"
1227 GraphLoopSwitchGateDefault.DoneW()
1229 Messages = GraphLoopSwitchGateDefault.Messages()
1231 print "Error GraphLoopSwitchGateDefault has Messages :"
1236 from SuperV import *
1238 # GraphLoopSwitchGatesDefault
1239 GraphLoopSwitchGatesDefault = Graph( "GraphLoopSwitchGatesDefault" )
1241 anXmlFile = os.getenv('DATA_DIR') + '/Superv/Graphs/GraphLoopSwitchGatesDefault.xml'
1243 GraphLoopSwitchGatesDefault.Import( anXmlFile )
1245 RunOk = GraphLoopSwitchGatesDefault.Run()
1247 print "Error : Success call to Run"
1248 print "GraphLoopSwitchGatesDefault test failed"
1251 GraphLoopSwitchGatesDefault.DoneW()
1253 print "GraphLoopSwitchGatesDefault Errors Messages :"
1254 print GraphLoopSwitchGatesDefault.Messages()