Salome HOME
Fix for bug IPAL9983 : Object browser is not updated after dataflow run.
[modules/superv.git] / examples / GraphErrMsgs.py
1 from SuperV import *
2
3 GraphErrMsgs = Graph( "GraphErrMsgs" )
4
5 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/SyrStruct.xml'
6
7 GraphErrMsgs.Import( anXmlFile )
8
9 exec GraphErrMsgs.ListNodes( 'GraphErrMsgs' )
10 # ==> m3,m3incr,incra,div2,incrb,SyrComponent,forN,whileNotOne,fori,whileEven,EndOfforN,EndOfwhileNotOne,EndOffori,EndOfwhileEven,ifNotEven,EndOfifNotEven
11
12 exec ifNotEven.ListPorts()
13 # ==> IifNotEvenSyrComponent,IifNotEvenN,IifNotEvenK,IifNotEvenGate,OifNotEvenOdd,OifNotEvenEven,OifNotEvenSyrComponent,OifNotEvenN,OifNotEvenK,OifNotEvenDefault
14
15 exec EndOfifNotEven.ListPorts()
16 # ==> IEndOfifNotEvenN,IEndOfifNotEvenK,IEndOfifNotEvenDefault,OEndOfifNotEvenN,OEndOfifNotEvenK,OEndOfifNotEvenGate
17
18 aLink = GraphErrMsgs.Link( OifNotEvenEven , IEndOfifNotEvenN )
19 if aLink != None :
20     print "Error link from OifNotEvenEven to IEndOfifNotEvenN was created"
21     print "GraphErrMsgs test failed"
22     sys.exit(1)
23
24 exec EndOfwhileEven.ListPorts()
25 # ==> IEndOfwhileEvenSyrComponent,IEndOfwhileEvenN,IEndOfwhileEvenK,IEndOfwhileEvenGate,OEndOfwhileEvenSyrComponent,OEndOfwhileEvenN,OEndOfwhileEvenK,OEndOfwhileEvenGate
26
27 exec EndOffori.ListPorts()
28 # ==> IEndOfforii,IEndOfforiK,IEndOfforiGate,OEndOfforii,OEndOfforiK,OEndOfforiGate
29
30 aLink = GraphErrMsgs.Link( OEndOfwhileEvenK , IEndOfifNotEvenK )
31 aLink.destroy()
32
33 aLink = GraphErrMsgs.Link( OEndOfforiK , IEndOfifNotEvenK )
34 aLink.destroy()
35
36 aLink = GraphErrMsgs.Link( OifNotEvenN , IEndOfifNotEvenK )
37 if aLink == None :
38     print "Error link from OifNotEvenN to IEndOfifNotEvenK was not created"
39     print "GraphErrMsgs test failed"
40     sys.exit(1)
41
42 exec whileEven.ListPorts()
43 # ==>IwhileEvenSyrComponent,IwhileEvenN,IwhileEvenK,IwhileEvenGate,OwhileEvenSyrComponent,OwhileEvenN,OwhileEvenK,OwhileEvenGate
44
45 aLink = GraphErrMsgs.Link( OifNotEvenK , IwhileEvenK )
46 aLink.destroy()
47
48 aLink = GraphErrMsgs.Link( OifNotEvenOdd , IwhileEvenK )
49 if aLink != None :
50     print "Error link from OifNotEvenOdd to IwhileEvenK was created"
51     print "GraphErrMsgs test failed"
52     sys.exit(1)
53
54 aLink = GraphErrMsgs.Link( OifNotEvenDefault , IwhileEvenK )
55 if aLink != None :
56     print "Error link from OifNotEvenDefault to IwhileEvenK was created"
57     print "GraphErrMsgs test failed"
58     sys.exit(1)
59
60 exec div2.ListPorts()
61 # ==> Idiv2anEvenInteger,Idiv2Gate,Odiv2anInteger,Odiv2Gate
62
63 aLink = GraphErrMsgs.Link( OwhileEvenN , Idiv2Gate )
64 if aLink != None :
65     print "Error link from OwhileEvenN to Idiv2Gate was created"
66     print "GraphErrMsgs test failed"
67     sys.exit(1)
68
69 print "GraphErrMsgs Errors Messages :"
70 print GraphErrMsgs.Messages()
71
72 RunOk = GraphErrMsgs.Run()
73 if RunOk != 0 :
74     print "Error : Success call to Run"
75     print "GraphErrMsgs test failed"
76     sys.exit(1)
77
78 GraphErrMsgs.DoneW()
79
80 print "GraphErrMsgs Errors Messages :"
81 print GraphErrMsgs.Messages()
82
83
84 from SuperV import *
85
86 # GraphBadInputInLoop
87 GraphBadInputInLoop = Graph( "GraphBadInputInLoop" )
88
89 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadInputInLoop.xml'
90
91 GraphBadInputInLoop.Import( anXmlFile )
92
93 RunOk = GraphBadInputInLoop.Run()
94 if RunOk != 0 :
95     print "Error : Success call to Run"
96     print "GraphBadInputInLoop test failed"
97     sys.exit(1)
98
99 GraphBadInputInLoop.DoneW()
100
101 print "GraphBadInputInLoop Errors Messages :"
102 print GraphBadInputInLoop.Messages()
103
104
105
106 from SuperV import *
107
108 # GraphBadInputInLoop1
109 GraphBadInputInLoop1 = Graph( "GraphBadInputInLoop1" )
110
111 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadInputInLoop1.xml'
112
113 GraphBadInputInLoop1.Import( anXmlFile )
114
115 RunOk = GraphBadInputInLoop1.Run()
116 if RunOk != 0 :
117     print "Error : Success call to Run"
118     print "GraphBadInputInLoop1 test failed"
119     sys.exit(1)
120
121 GraphBadInputInLoop1.DoneW()
122
123 print "GraphBadInputInLoop1 Errors Messages :"
124 print GraphBadInputInLoop1.Messages()
125
126
127
128 from SuperV import *
129
130 # GraphBadInputInLoop2
131 GraphBadInputInLoop2 = Graph( "GraphBadInputInLoop2" )
132
133 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadInputInLoop2.xml'
134
135 GraphBadInputInLoop2.Import( anXmlFile )
136
137 RunOk = GraphBadInputInLoop2.Run()
138 if RunOk != 0 :
139     print "Error : Success call to Run"
140     print "GraphBadInputInLoop2 test failed"
141     sys.exit(1)
142
143 GraphBadInputInLoop2.DoneW()
144
145 print "GraphBadInputInLoop2 Errors Messages :"
146 print GraphBadInputInLoop2.Messages()
147
148
149
150 from SuperV import *
151
152 # GraphBadInputInLoop3
153 GraphBadInputInLoop3 = Graph( "GraphBadInputInLoop3" )
154
155 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadInputInLoop3.xml'
156
157 GraphBadInputInLoop3.Import( anXmlFile )
158
159 RunOk = GraphBadInputInLoop3.Run()
160 if RunOk != 0 :
161     print "Error : Success call to Run"
162     print "GraphBadInputInLoop3 test failed"
163     sys.exit(1)
164
165 GraphBadInputInLoop3.DoneW()
166
167 print "GraphBadInputInLoop3 Errors Messages :"
168 print GraphBadInputInLoop3.Messages()
169
170
171
172 from SuperV import *
173
174 # GraphBadOutputOfLoop
175 GraphBadOutputOfLoop = Graph( "GraphBadOutputOfLoop" )
176
177 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadOutputOfLoop.xml'
178
179 GraphBadOutputOfLoop.Import( anXmlFile )
180
181 RunOk = GraphBadOutputOfLoop.Run()
182 if RunOk != 0 :
183     print "Error : Success call to Run"
184     print "GraphBadOutputOfLoop test failed"
185     sys.exit(1)
186
187 GraphBadOutputOfLoop.DoneW()
188
189 print "GraphBadOutputOfLoop Errors Messages :"
190 print GraphBadOutputOfLoop.Messages()
191
192
193
194 from SuperV import *
195
196 # GraphBadOutputOfLoop1
197 GraphBadOutputOfLoop1 = Graph( "GraphBadOutputOfLoop1" )
198
199 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadOutputOfLoop1.xml'
200
201 GraphBadOutputOfLoop1.Import( anXmlFile )
202
203 RunOk = GraphBadOutputOfLoop1.Run()
204 if RunOk != 0 :
205     print "Error : Success call to Run"
206     print "GraphBadOutputOfLoop1 test failed"
207     sys.exit(1)
208
209 GraphBadOutputOfLoop1.DoneW()
210
211 print "GraphBadOutputOfLoop1 Errors Messages :"
212 print GraphBadOutputOfLoop1.Messages()
213
214
215
216 from SuperV import *
217
218 # GraphBadOutputOfLoop2
219 GraphBadOutputOfLoop2 = Graph( "GraphBadOutputOfLoop2" )
220
221 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphBadOutputOfLoop2.xml'
222
223 GraphBadOutputOfLoop2.Import( anXmlFile )
224
225 RunOk = GraphBadOutputOfLoop2.Run()
226 if RunOk != 0 :
227     print "Error : Success call to Run"
228     print "GraphBadOutputOfLoop2 test failed"
229     sys.exit(1)
230
231 GraphBadOutputOfLoop2.DoneW()
232
233 print "GraphBadOutputOfLoop2 Errors Messages :"
234 print GraphBadOutputOfLoop2.Messages()
235
236
237
238 from SuperV import *
239
240 # GraphConvertObjRefCheckNotCompatible
241 GraphConvertObjRefCheckNotCompatible = Graph( "GraphConvertObjRefCheckNotCompatible" )
242
243 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphConvertObjRefCheckNotCompatible.xml'
244
245 GraphConvertObjRefCheckNotCompatible.Import( anXmlFile )
246
247 RunOk = GraphConvertObjRefCheckNotCompatible.Run()
248 if RunOk != 0 :
249     print "Error : Success call to Run"
250     print "GraphConvertObjRefCheckNotCompatible test failed"
251     sys.exit(1)
252
253 GraphConvertObjRefCheckNotCompatible.DoneW()
254
255 print "GraphConvertObjRefCheckNotCompatible Errors Messages :"
256 print GraphConvertObjRefCheckNotCompatible.Messages()
257
258
259
260
261 from SuperV import *
262
263 # GraphWrongPythonFunctions
264 GraphWrongPythonFunctions = Graph( "GraphWrongPythonFunctions" )
265
266 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphWrongPythonFunctions.xml'
267
268 GraphWrongPythonFunctions.Import( anXmlFile )
269
270 RunOk = GraphWrongPythonFunctions.Run()
271 if RunOk != 0 :
272     print "Error : Success call to Run"
273     print "GraphWrongPythonFunctions test failed"
274     sys.exit(1)
275
276 GraphWrongPythonFunctions.DoneW()
277
278 print "GraphWrongPythonFunctions Errors Messages :"
279 print GraphWrongPythonFunctions.Messages()
280
281
282
283 from SuperV import *
284
285 # GraphWrongContainerOrComponent
286 GraphWrongContainerOrComponent = Graph( "GraphWrongContainerOrComponent" )
287
288 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphWrongContainerOrComponent.xml'
289
290 GraphWrongContainerOrComponent.Import( anXmlFile )
291
292 RunOk = GraphWrongContainerOrComponent.Run()
293 if RunOk == 0 :
294     print "Error : UnSuccess call to Run"
295     print "GraphWrongContainerOrComponent test failed"
296     sys.exit(1)
297
298 GraphWrongContainerOrComponent.DoneW()
299
300 print "GraphWrongContainerOrComponent Errors Messages :"
301 print GraphWrongContainerOrComponent.Messages()
302
303
304
305 from SuperV import *
306
307 # GraphLoopSwitchDefaultAborted
308 GraphLoopSwitchDefaultAborted = Graph( "GraphLoopSwitchDefaultAborted" )
309
310 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchDefaultAborted.xml'
311
312 GraphLoopSwitchDefaultAborted.Import( anXmlFile )
313
314 RunOk = GraphLoopSwitchDefaultAborted.Run()
315 if RunOk == 0 :
316     print "Error : UnSuccess call to Run"
317     print "GraphLoopSwitchDefaultAborted test failed"
318     sys.exit(1)
319
320 GraphLoopSwitchDefaultAborted.DoneW()
321
322 print "GraphLoopSwitchDefaultAborted Errors Messages :"
323 print GraphLoopSwitchDefaultAborted.Messages()
324
325
326
327 from SuperV import *
328
329 # GraphLoopSwitchOfSwitchAborted
330 GraphLoopSwitchOfSwitchAborted = Graph( "GraphLoopSwitchOfSwitchAborted" )
331
332 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchOfSwitchAborted.xml'
333
334 GraphLoopSwitchOfSwitchAborted.Import( anXmlFile )
335
336 RunOk = GraphLoopSwitchOfSwitchAborted.Run()
337 if RunOk == 0 :
338     print "Error : UnSuccess call to Run"
339     print "GraphLoopSwitchOfSwitchAborted test failed"
340     sys.exit(1)
341
342 GraphLoopSwitchOfSwitchAborted.DoneW()
343
344 print "GraphLoopSwitchOfSwitchAborted Errors Messages :"
345 print GraphLoopSwitchOfSwitchAborted.Messages()
346
347
348
349 from SuperV import *
350
351 # GraphLoopSwitchOfSwitchNOTValid
352 GraphLoopSwitchOfSwitchNOTValid = Graph( "GraphLoopSwitchOfSwitchNOTValid" )
353
354 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchOfSwitchNOTValid.xml'
355
356 GraphLoopSwitchOfSwitchNOTValid.Import( anXmlFile )
357
358 RunOk = GraphLoopSwitchOfSwitchNOTValid.Run()
359 if RunOk != 0 :
360     print "Error : Success call to Run"
361     print "GraphLoopSwitchOfSwitchNOTValid test failed"
362     sys.exit(1)
363
364 GraphLoopSwitchOfSwitchNOTValid.DoneW()
365
366 print "GraphLoopSwitchOfSwitchNOTValid Errors Messages :"
367 print GraphLoopSwitchOfSwitchNOTValid.Messages()
368
369
370 from SuperV import *
371
372 # GraphLoopSwitchsAborted
373 GraphLoopSwitchsAborted = Graph( "GraphLoopSwitchsAborted" )
374
375 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchsAborted.xml'
376
377 GraphLoopSwitchsAborted.Import( anXmlFile )
378
379 RunOk = GraphLoopSwitchsAborted.Run()
380 if RunOk == 0 :
381     print "Error : UnSuccess call to Run"
382     print "GraphLoopSwitchsAborted test failed"
383     sys.exit(1)
384
385 GraphLoopSwitchsAborted.DoneW()
386
387 print "GraphLoopSwitchsAborted Errors Messages :"
388 print GraphLoopSwitchsAborted.Messages()
389
390
391
392 from SuperV import *
393
394 # GraphLoopSwitchsBranchesDefaultAborted
395 GraphLoopSwitchsBranchesDefaultAborted = Graph( "GraphLoopSwitchsBranchesDefaultAborted" )
396
397 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchsBranchesDefaultAborted.xml'
398
399 GraphLoopSwitchsBranchesDefaultAborted.Import( anXmlFile )
400
401 RunOk = GraphLoopSwitchsBranchesDefaultAborted.Run()
402 if RunOk == 0 :
403     print "Error : UnSuccess call to Run"
404     print "GraphLoopSwitchsBranchesDefaultAborted test failed"
405     sys.exit(1)
406
407 GraphLoopSwitchsBranchesDefaultAborted.DoneW()
408
409 print "GraphLoopSwitchsBranchesDefaultAborted Errors Messages :"
410 print GraphLoopSwitchsBranchesDefaultAborted.Messages()
411
412
413
414 from SuperV import *
415
416 # GraphLoopSwitchsNOTValid
417 GraphLoopSwitchsNOTValid = Graph( "GraphLoopSwitchsNOTValid" )
418
419 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchsNOTValid.xml'
420
421 GraphLoopSwitchsNOTValid.Import( anXmlFile )
422
423 RunOk = GraphLoopSwitchsNOTValid.Run()
424 if RunOk != 0 :
425     print "Error : Success call to Run"
426     print "GraphLoopSwitchsNOTValid test failed"
427     sys.exit(1)
428
429 GraphLoopSwitchsNOTValid.DoneW()
430
431 print "GraphLoopSwitchsNOTValid Errors Messages :"
432 print GraphLoopSwitchsNOTValid.Messages()
433
434
435 from SuperV import *
436
437 # GraphSwitchCheckBranch2NOTValid
438 GraphSwitchCheckBranch2NOTValid = Graph( "GraphSwitchCheckBranch2NOTValid" )
439
440 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckBranch2NOTValid.xml'
441
442 GraphSwitchCheckBranch2NOTValid.Import( anXmlFile )
443
444 RunOk = GraphSwitchCheckBranch2NOTValid.Run()
445 if RunOk != 0 :
446     print "Error : Success call to Run"
447     print "GraphSwitchCheckBranch2NOTValid test failed"
448     sys.exit(1)
449
450 GraphSwitchCheckBranch2NOTValid.DoneW()
451
452 print "GraphSwitchCheckBranch2NOTValid Errors Messages :"
453 print GraphSwitchCheckBranch2NOTValid.Messages()
454
455
456 from SuperV import *
457
458 # GraphSwitchCheckDefault1NOTValid
459 GraphSwitchCheckDefault1NOTValid = Graph( "GraphSwitchCheckDefault1NOTValid" )
460
461 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault1NOTValid.xml'
462
463 GraphSwitchCheckDefault1NOTValid.Import( anXmlFile )
464
465 RunOk = GraphSwitchCheckDefault1NOTValid.Run()
466 if RunOk != 0 :
467     print "Error : Success call to Run"
468     print "GraphSwitchCheckDefault1NOTValid test failed"
469     sys.exit(1)
470
471 GraphSwitchCheckDefault1NOTValid.DoneW()
472
473 print "GraphSwitchCheckDefault1NOTValid Errors Messages :"
474 print GraphSwitchCheckDefault1NOTValid.Messages()
475
476
477 from SuperV import *
478
479 # GraphSwitchCheckDefault2NOTValid
480 GraphSwitchCheckDefault2NOTValid = Graph( "GraphSwitchCheckDefault2NOTValid" )
481
482 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault2NOTValid.xml'
483
484 GraphSwitchCheckDefault2NOTValid.Import( anXmlFile )
485
486 RunOk = GraphSwitchCheckDefault2NOTValid.Run()
487 if RunOk != 0 :
488     print "Error : Success call to Run"
489     print "GraphSwitchCheckDefault2NOTValid test failed"
490     sys.exit(1)
491
492 GraphSwitchCheckDefault2NOTValid.DoneW()
493
494 print "GraphSwitchCheckDefault2NOTValid Errors Messages :"
495 print GraphSwitchCheckDefault2NOTValid.Messages()
496
497
498 from SuperV import *
499
500 # GraphSwitchCheckDefault2NOTValid1
501 GraphSwitchCheckDefault2NOTValid1 = Graph( "GraphSwitchCheckDefault2NOTValid1" )
502
503 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault2NOTValid1.xml'
504
505 GraphSwitchCheckDefault2NOTValid1.Import( anXmlFile )
506
507 RunOk = GraphSwitchCheckDefault2NOTValid1.Run()
508 if RunOk != 0 :
509     print "Error : Success call to Run"
510     print "GraphSwitchCheckDefault2NOTValid1 test failed"
511     sys.exit(1)
512
513 GraphSwitchCheckDefault2NOTValid1.DoneW()
514
515 print "GraphSwitchCheckDefault2NOTValid1 Errors Messages :"
516 print GraphSwitchCheckDefault2NOTValid1.Messages()
517
518
519 from SuperV import *
520
521 # GraphSwitchCheckDefault2NOTValid2
522 GraphSwitchCheckDefault2NOTValid2 = Graph( "GraphSwitchCheckDefault2NOTValid2" )
523
524 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault2NOTValid2.xml'
525
526 GraphSwitchCheckDefault2NOTValid2.Import( anXmlFile )
527
528 RunOk = GraphSwitchCheckDefault2NOTValid2.Run()
529 if RunOk != 0 :
530     print "Error : Success call to Run"
531     print "GraphSwitchCheckDefault2NOTValid2 test failed"
532     sys.exit(1)
533
534 GraphSwitchCheckDefault2NOTValid2.DoneW()
535
536 print "GraphSwitchCheckDefault2NOTValid2 Errors Messages :"
537 print GraphSwitchCheckDefault2NOTValid2.Messages()
538
539
540 from SuperV import *
541
542 # GraphSwitchCrash
543 GraphSwitchCrash = Graph( "GraphSwitchCrash" )
544
545 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCrash.xml'
546
547 GraphSwitchCrash.Import( anXmlFile )
548
549 RunOk = GraphSwitchCrash.Run()
550 if RunOk == 0 :
551     print "Error : UnSuccess call to Run"
552     print "GraphSwitchCrash test failed"
553     sys.exit(1)
554
555 GraphSwitchCrash.DoneW()
556
557 print "GraphSwitchCrash Errors Messages :"
558 print GraphSwitchCrash.Messages()
559
560
561 from SuperV import *
562
563 # GraphSwitchErrExec
564 GraphSwitchErrExec = Graph( "GraphSwitchErrExec" )
565
566 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchErrExec.xml'
567
568 GraphSwitchErrExec.Import( anXmlFile )
569
570 RunOk = GraphSwitchErrExec.Run()
571 if RunOk == 0 :
572     print "Error : UnSuccess call to Run"
573     print "GraphSwitchErrExec test failed"
574     sys.exit(1)
575
576 GraphSwitchErrExec.DoneW()
577
578 print "GraphSwitchErrExec Errors Messages :"
579 print GraphSwitchErrExec.Messages()
580
581
582 from SuperV import *
583
584 # GraphSwitchGatesNoDefaultAborted
585 GraphSwitchGatesNoDefaultAborted = Graph( "GraphSwitchGatesNoDefaultAborted" )
586
587 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchGatesNoDefaultAborted.xml'
588
589 GraphSwitchGatesNoDefaultAborted.Import( anXmlFile )
590
591 RunOk = GraphSwitchGatesNoDefaultAborted.Run()
592 if RunOk == 0 :
593     print "Error : UnSuccess call to Run"
594     print "GraphSwitchGatesNoDefaultAborted test failed"
595     sys.exit(1)
596
597 GraphSwitchGatesNoDefaultAborted.DoneW()
598
599 print "GraphSwitchGatesNoDefaultAborted Errors Messages :"
600 print GraphSwitchGatesNoDefaultAborted.Messages()
601
602
603 from SuperV import *
604
605 # GraphSwitchOutputNOTValid
606 GraphSwitchOutputNOTValid = Graph( "GraphSwitchOutputNOTValid" )
607
608 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchOutputNOTValid.xml'
609
610 GraphSwitchOutputNOTValid.Import( anXmlFile )
611
612 RunOk = GraphSwitchOutputNOTValid.Run()
613 if RunOk != 0 :
614     print "Error : Success call to Run"
615     print "GraphSwitchOutputNOTValid test failed"
616     sys.exit(1)
617
618 GraphSwitchOutputNOTValid.DoneW()
619
620 print "GraphSwitchOutputNOTValid Errors Messages :"
621 print GraphSwitchOutputNOTValid.Messages()
622
623
624 from SuperV import *
625
626 # GraphSyrControlAborted
627 GraphSyrControlAborted = Graph( "GraphSyrControlAborted" )
628
629 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSyrControlAborted.xml'
630
631 GraphSyrControlAborted.Import( anXmlFile )
632
633 RunOk = GraphSyrControlAborted.Run()
634 if RunOk == 0 :
635     print "Error : UnSuccess call to Run"
636     print "GraphSyrControlAborted test failed"
637     sys.exit(1)
638
639 GraphSyrControlAborted.DoneW()
640
641 print "GraphSyrControlAborted Errors Messages :"
642 print GraphSyrControlAborted.Messages()
643
644
645 from SuperV import *
646
647 # GraphSyrControlAve
648 GraphSyrControlAve = Graph( "GraphSyrControlAve" )
649
650 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSyrControlAve.xml'
651
652 GraphSyrControlAve.Import( anXmlFile )
653
654 RunOk = GraphSyrControlAve.Run()
655 if RunOk == 0 :
656     print "Error : Success call to Run"
657     print "GraphSyrControlAve test failed"
658     sys.exit(1)
659
660 GraphSyrControlAve.DoneW()
661
662 Messages = GraphSyrControlAve.Messages()
663 if Messages != "" :
664     print "Error GraphSyrControlAve has Messages :"
665     print Messages
666     sys.exit(1)
667
668
669 from SuperV import *
670
671 # GraphSyrControlAveValid
672 GraphSyrControlAveValid = Graph( "GraphSyrControlAveValid" )
673
674 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSyrControlAveValid.xml'
675
676 GraphSyrControlAveValid.Import( anXmlFile )
677
678 RunOk = GraphSyrControlAveValid.Run()
679 if RunOk == 0 :
680     print "Error : Success call to Run"
681     print "GraphSyrControlAveValid test failed"
682     sys.exit(1)
683
684 GraphSyrControlAveValid.DoneW()
685
686 Messages = GraphSyrControlAveValid.Messages()
687 if Messages != "" :
688     print "Error GraphSyrControlAveValid has Messages :"
689     print Messages
690     sys.exit(1)
691
692
693 from SuperV import *
694
695 # GraphSyrControlAveExecutable
696 GraphSyrControlAveExecutable = Graph( "GraphSyrControlAveExecutable" )
697
698 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSyrControlAveExecutable.xml'
699
700 GraphSyrControlAveExecutable.Import( anXmlFile )
701
702 RunOk = GraphSyrControlAveExecutable.Run()
703 if RunOk == 0 :
704     print "Error : UnSuccess call to Run"
705     print "GraphSyrControlAveExecutable test failed"
706     sys.exit(1)
707
708 GraphSyrControlAveExecutable.DoneW()
709
710 Messages = GraphSyrControlAveExecutable.Messages()
711 if Messages != "" :
712     print "Error GraphSyrControlAveExecutable has Messages :"
713     print Messages
714     sys.exit(1)
715
716
717 from SuperV import *
718
719 # GraphSyrControlAveNOTValid
720 GraphSyrControlAveNOTValid = Graph( "GraphSyrControlAveNOTValid" )
721
722 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSyrControlAveNOTValid.xml'
723
724 GraphSyrControlAveNOTValid.Import( anXmlFile )
725
726 RunOk = GraphSyrControlAveNOTValid.Run()
727 if RunOk != 0 :
728     print "Error : Success call to Run"
729     print "GraphSyrControlAveNOTValid test failed"
730     sys.exit(1)
731
732 GraphSyrControlAveNOTValid.DoneW()
733
734 print "GraphSyrControlAveNOTValid Errors Messages :"
735 print GraphSyrControlAveNOTValid.Messages()
736
737
738 from SuperV import *
739
740 # GraphSyrControlAveNOTValid1
741 GraphSyrControlAveNOTValid1 = Graph( "GraphSyrControlAveNOTValid1" )
742
743 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSyrControlAveNOTValid1.xml'
744
745 GraphSyrControlAveNOTValid1.Import( anXmlFile )
746
747 RunOk = GraphSyrControlAveNOTValid1.Run()
748 if RunOk == 0 :
749     print "Error : UnSuccess call to Run"
750     print "GraphSyrControlAveNOTValid1 test failed"
751     sys.exit(1)
752
753 GraphSyrControlAveNOTValid1.DoneW()
754
755 print "GraphSyrControlAveNOTValid1 Errors Messages :"
756 print GraphSyrControlAveNOTValid1.Messages()
757
758
759 from SuperV import *
760
761 # GraphSwitch
762 GraphSwitch = Graph( "GraphSwitch" )
763
764 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitch.xml'
765
766 GraphSwitch.Import( anXmlFile )
767
768 RunOk = GraphSwitch.Run()
769 if RunOk == 0 :
770     print "Error : UnSuccess call to Run"
771     print "GraphSwitch test failed"
772     sys.exit(1)
773
774 GraphSwitch.DoneW()
775
776 Messages = GraphSwitch.Messages()
777 if Messages != "" :
778     print "Error GraphSwitch has Messages :"
779     print Messages
780     sys.exit(1)
781
782
783 from SuperV import *
784
785 # GraphSwitchExecutable
786 GraphSwitchExecutable = Graph( "GraphSwitchExecutable" )
787
788 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchExecutable.xml'
789
790 GraphSwitchExecutable.Import( anXmlFile )
791
792 RunOk = GraphSwitchExecutable.Run()
793 if RunOk == 0 :
794     print "Error : UnSuccess call to Run"
795     print "GraphSwitchExecutable test failed"
796     sys.exit(1)
797
798 GraphSwitchExecutable.DoneW()
799
800 Messages = GraphSwitchExecutable.Messages()
801 if Messages != "" :
802     print "Error GraphSwitchExecutable has Messages :"
803     print Messages
804     sys.exit(1)
805
806
807 from SuperV import *
808
809 # GraphSwitchNOTExecutable
810 GraphSwitchNOTExecutable = Graph( "GraphSwitchNOTExecutable" )
811
812 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchNOTExecutable.xml'
813
814 GraphSwitchNOTExecutable.Import( anXmlFile )
815
816 RunOk = GraphSwitchNOTExecutable.Run()
817 if RunOk != 0 :
818     print "Error : Success call to Run"
819     print "GraphSwitchNOTExecutable test failed"
820     sys.exit(1)
821
822 GraphSwitchNOTExecutable.DoneW()
823
824 print "GraphSwitchNOTExecutable Errors Messages :"
825 print GraphSwitchNOTExecutable.Messages()
826
827
828 from SuperV import *
829
830 # GraphSwitchNOTExecutable1
831 GraphSwitchNOTExecutable1 = Graph( "GraphSwitchNOTExecutable1" )
832
833 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchNOTExecutable1.xml'
834
835 GraphSwitchNOTExecutable1.Import( anXmlFile )
836
837 RunOk = GraphSwitchNOTExecutable1.Run()
838 if RunOk != 0 :
839     print "Error : Success call to Run"
840     print "GraphSwitchNOTExecutable1 test failed"
841     sys.exit(1)
842
843 GraphSwitchNOTExecutable1.DoneW()
844
845 print "GraphSwitchNOTExecutable1 Errors Messages :"
846 print GraphSwitchNOTExecutable1.Messages()
847
848
849
850 from SuperV import *
851
852 # GraphSwitchNOTExecutable2
853 GraphSwitchNOTExecutable2 = Graph( "GraphSwitchNOTExecutable2" )
854
855 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchNOTExecutable2.xml'
856
857 GraphSwitchNOTExecutable2.Import( anXmlFile )
858
859 RunOk = GraphSwitchNOTExecutable2.Run()
860 if RunOk != 0 :
861     print "Error : Success call to Run"
862     print "GraphSwitchNOTExecutable2 test failed"
863     sys.exit(1)
864
865 GraphSwitchNOTExecutable2.DoneW()
866
867 print "GraphSwitchNOTExecutable2 Errors Messages :"
868 print GraphSwitchNOTExecutable2.Messages()
869
870
871
872 from SuperV import *
873
874 # GraphSwitchBranchGates
875 GraphSwitchBranchGates = Graph( "GraphSwitchBranchGates" )
876
877 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchBranchGates.xml'
878
879 GraphSwitchBranchGates.Import( anXmlFile )
880
881 RunOk = GraphSwitchBranchGates.Run()
882 if RunOk == 0 :
883     print "Error : UnSuccess call to Run"
884     print "GraphSwitchBranchGates test failed"
885     sys.exit(1)
886
887 GraphSwitchBranchGates.DoneW()
888
889 Messages = GraphSwitchBranchGates.Messages()
890 if Messages != "" :
891     print "Error GraphSwitchBranchGates has Messages :"
892     print Messages
893     sys.exit(1)
894
895
896 from SuperV import *
897
898 # GraphInLinesUnValid
899 GraphInLinesUnValid = Graph( "GraphInLinesUnValid" )
900
901 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphInLinesUnValid.xml'
902
903 GraphInLinesUnValid.Import( anXmlFile )
904
905 RunOk = GraphInLinesUnValid.Run()
906 if RunOk != 0 :
907     print "Error : Success call to Run"
908     print "GraphInLinesUnValid test failed"
909     sys.exit(1)
910
911 GraphInLinesUnValid.DoneW()
912
913 print "GraphInLinesUnValid Errors Messages :"
914 print GraphInLinesUnValid.Messages()
915
916
917
918 from SuperV import *
919
920 # GraphSwitchCheckBranch2NOTValid
921 GraphSwitchCheckBranch2NOTValid = Graph( "GraphSwitchCheckBranch2NOTValid" )
922
923 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckBranch2NOTValid.xml'
924
925 GraphSwitchCheckBranch2NOTValid.Import( anXmlFile )
926
927 RunOk = GraphSwitchCheckBranch2NOTValid.Run()
928 if RunOk != 0 :
929     print "Error : Success call to Run"
930     print "GraphSwitchCheckBranch2NOTValid test failed"
931     sys.exit(1)
932
933 GraphSwitchCheckBranch2NOTValid.DoneW()
934
935 print "GraphSwitchCheckBranch2NOTValid Errors Messages :"
936 print GraphSwitchCheckBranch2NOTValid.Messages()
937
938
939
940 from SuperV import *
941
942 # GraphSwitchCheckDefault1NOTValid
943 GraphSwitchCheckDefault1NOTValid = Graph( "GraphSwitchCheckDefault1NOTValid" )
944
945 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault1NOTValid.xml'
946
947 GraphSwitchCheckDefault1NOTValid.Import( anXmlFile )
948
949 RunOk = GraphSwitchCheckDefault1NOTValid.Run()
950 if RunOk != 0 :
951     print "Error : Success call to Run"
952     print "GraphSwitchCheckDefault1NOTValid test failed"
953     sys.exit(1)
954
955 GraphSwitchCheckDefault1NOTValid.DoneW()
956
957 print "GraphSwitchCheckDefault1NOTValid Errors Messages :"
958 print GraphSwitchCheckDefault1NOTValid.Messages()
959
960
961 from SuperV import *
962
963 # GraphSwitchCheckDefault2NOTValid
964 GraphSwitchCheckDefault2NOTValid = Graph( "GraphSwitchCheckDefault2NOTValid" )
965
966 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault2NOTValid.xml'
967
968 GraphSwitchCheckDefault2NOTValid.Import( anXmlFile )
969
970 RunOk = GraphSwitchCheckDefault2NOTValid.Run()
971 if RunOk != 0 :
972     print "Error : Success call to Run"
973     print "GraphSwitchCheckDefault2NOTValid test failed"
974     sys.exit(1)
975
976 GraphSwitchCheckDefault2NOTValid.DoneW()
977
978 print "GraphSwitchCheckDefault2NOTValid Errors Messages :"
979 print GraphSwitchCheckDefault2NOTValid.Messages()
980
981
982
983
984 from SuperV import *
985
986 # GraphSwitchCheckDefault2NOTValid1
987 GraphSwitchCheckDefault2NOTValid1 = Graph( "GraphSwitchCheckDefault2NOTValid1" )
988
989 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault2NOTValid1.xml'
990
991 GraphSwitchCheckDefault2NOTValid1.Import( anXmlFile )
992
993 RunOk = GraphSwitchCheckDefault2NOTValid1.Run()
994 if RunOk != 0 :
995     print "Error : Success call to Run"
996     print "GraphSwitchCheckDefault2NOTValid1 test failed"
997     sys.exit(1)
998
999 GraphSwitchCheckDefault2NOTValid1.DoneW()
1000
1001 print "GraphSwitchCheckDefault2NOTValid1 Errors Messages :"
1002 print GraphSwitchCheckDefault2NOTValid1.Messages()
1003
1004
1005
1006 from SuperV import *
1007
1008 # GraphSwitchCheckDefault2NOTValid2
1009 GraphSwitchCheckDefault2NOTValid2 = Graph( "GraphSwitchCheckDefault2NOTValid2" )
1010
1011 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchCheckDefault2NOTValid2.xml'
1012
1013 GraphSwitchCheckDefault2NOTValid2.Import( anXmlFile )
1014
1015 RunOk = GraphSwitchCheckDefault2NOTValid2.Run()
1016 if RunOk != 0 :
1017     print "Error : Success call to Run"
1018     print "GraphSwitchCheckDefault2NOTValid2 test failed"
1019     sys.exit(1)
1020
1021 GraphSwitchCheckDefault2NOTValid2.DoneW()
1022
1023 print "GraphSwitchCheckDefault2NOTValid2 Errors Messages :"
1024 print GraphSwitchCheckDefault2NOTValid2.Messages()
1025
1026
1027 from SuperV import *
1028
1029 # GraphLoopsCoupled
1030 GraphLoopsCoupled = Graph( "GraphLoopsCoupled" )
1031
1032 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopsCoupled.xml'
1033
1034 GraphLoopsCoupled.Import( anXmlFile )
1035
1036 RunOk = GraphLoopsCoupled.Run()
1037 if RunOk != 0 :
1038     print "Error : Success call to Run"
1039     print "GraphLoopsCoupled test failed"
1040     sys.exit(1)
1041
1042 GraphLoopsCoupled.DoneW()
1043
1044 print "GraphLoopsCoupled Errors Messages :"
1045 print GraphLoopsCoupled.Messages()
1046
1047
1048 from SuperV import *
1049
1050 # GraphLoopGates
1051 GraphLoopGates = Graph( "GraphLoopGates" )
1052
1053 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopGates.xml'
1054
1055 GraphLoopGates.Import( anXmlFile )
1056
1057 RunOk = GraphLoopGates.Run()
1058 if RunOk == 0 :
1059     print "Error : UnSuccess call to Run"
1060     print "GraphLoopGates test failed"
1061     sys.exit(1)
1062
1063 GraphLoopGates.DoneW()
1064
1065 Messages = GraphSwitchBranchGates.Messages()
1066 if Messages != "" :
1067     print "Error GraphSwitchBranchGates has Messages :"
1068     print Messages
1069     sys.exit(1)
1070
1071
1072
1073 from SuperV import *
1074
1075 # GraphLoopGatesNOTValid
1076 GraphLoopGatesNOTValid = Graph( "GraphLoopGatesNOTValid" )
1077
1078 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopGatesNOTValid.xml'
1079
1080 GraphLoopGatesNOTValid.Import( anXmlFile )
1081
1082 RunOk = GraphLoopGatesNOTValid.Run()
1083 if RunOk != 0 :
1084     print "Error : Success call to Run"
1085     print "GraphLoopGatesNOTValid test failed"
1086     sys.exit(1)
1087
1088 GraphLoopGatesNOTValid.DoneW()
1089
1090 print "GraphLoopGatesNOTValid Errors Messages :"
1091 print GraphLoopGatesNOTValid.Messages()
1092
1093
1094 from SuperV import *
1095
1096 # GraphSwitchManyCases
1097 GraphSwitchManyCases = Graph( "GraphSwitchManyCases" )
1098
1099 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchManyCases.xml'
1100
1101 GraphSwitchManyCases.Import( anXmlFile )
1102
1103 RunOk = GraphSwitchManyCases.Run()
1104 if RunOk != 0 :
1105     print "Error : Success call to Run"
1106     print "GraphSwitchManyCases test failed"
1107     sys.exit(1)
1108
1109 GraphSwitchManyCases.DoneW()
1110
1111 print "GraphSwitchManyCases Errors Messages :"
1112 print GraphSwitchManyCases.Messages()
1113
1114
1115
1116 from SuperV import *
1117
1118 # GraphLoopTwoBranches
1119 GraphLoopTwoBranches = Graph( "GraphLoopTwoBranches" )
1120
1121 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopTwoBranches.xml'
1122
1123 GraphLoopTwoBranches.Import( anXmlFile )
1124
1125 RunOk = GraphLoopTwoBranches.Run()
1126 if RunOk == 0 :
1127     print "Error : UnSuccess call to Run"
1128     print "GraphLoopTwoBranches test failed"
1129     sys.exit(1)
1130
1131 GraphLoopTwoBranches.DoneW()
1132
1133 print "GraphLoopTwoBranches Errors Messages :"
1134 print GraphLoopTwoBranches.Messages()
1135
1136
1137
1138 from SuperV import *
1139
1140 # GraphSwitchOutputNOTValid
1141 GraphSwitchOutputNOTValid = Graph( "GraphSwitchOutputNOTValid" )
1142
1143 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphSwitchOutputNOTValid.xml'
1144
1145 GraphSwitchOutputNOTValid.Import( anXmlFile )
1146
1147 RunOk = GraphSwitchOutputNOTValid.Run()
1148 if RunOk != 0 :
1149     print "Error : Success call to Run"
1150     print "GraphSwitchOutputNOTValid test failed"
1151     sys.exit(1)
1152
1153 GraphSwitchOutputNOTValid.DoneW()
1154
1155 print "GraphSwitchOutputNOTValid Errors Messages :"
1156 print GraphSwitchOutputNOTValid.Messages()
1157
1158
1159
1160 from SuperV import *
1161
1162 # GraphLoopSwitch
1163 GraphLoopSwitch = Graph( "GraphLoopSwitch" )
1164
1165 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitch.xml'
1166
1167 GraphLoopSwitch.Import( anXmlFile )
1168
1169 RunOk = GraphLoopSwitch.Run()
1170 if RunOk == 0 :
1171     print "Error : UnSuccess call to Run"
1172     print "GraphLoopSwitch test failed"
1173     sys.exit(1)
1174
1175 GraphLoopSwitch.DoneW()
1176
1177 Messages = GraphLoopSwitch.Messages()
1178 if Messages != "" :
1179     print "Error GraphLoopSwitch has Messages :"
1180     print Messages
1181     sys.exit(1)
1182
1183
1184
1185 from SuperV import *
1186
1187 # GraphLoopSwitchGateDefault
1188 GraphLoopSwitchGateDefault = Graph( "GraphLoopSwitchGateDefault" )
1189
1190 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchGateDefault.xml'
1191
1192 GraphLoopSwitchGateDefault.Import( anXmlFile )
1193
1194 RunOk = GraphLoopSwitchGateDefault.Run()
1195 if RunOk == 0 :
1196     print "Error : UnSuccess call to Run"
1197     print "GraphLoopSwitchGateDefault test failed"
1198     sys.exit(1)
1199
1200 GraphLoopSwitchGateDefault.DoneW()
1201
1202 Messages = GraphLoopSwitchGateDefault.Messages()
1203 if Messages != "" :
1204     print "Error GraphLoopSwitchGateDefault has Messages :"
1205     print Messages
1206     sys.exit(1)
1207
1208
1209 from SuperV import *
1210
1211 # GraphLoopSwitchGatesDefault
1212 GraphLoopSwitchGatesDefault = Graph( "GraphLoopSwitchGatesDefault" )
1213
1214 anXmlFile = os.getenv('SUPERV_ROOT_DIR') + '/examples/GraphLoopSwitchGatesDefault.xml'
1215
1216 GraphLoopSwitchGatesDefault.Import( anXmlFile )
1217
1218 RunOk = GraphLoopSwitchGatesDefault.Run()
1219 if RunOk == 1 :
1220     print "Error : Success call to Run"
1221     print "GraphLoopSwitchGatesDefault test failed"
1222     sys.exit(1)
1223
1224 GraphLoopSwitchGatesDefault.DoneW()
1225
1226 print "GraphLoopSwitchGatesDefault Errors Messages :"
1227 print GraphLoopSwitchGatesDefault.Messages()
1228
1229
1230
1231
1232
1233 sys.exit(0)
1234