stif/TestCombiner/group/TestCombinerExample.cfg
changeset 0 a03f92240627
equal deleted inserted replaced
-1:000000000000 0:a03f92240627
       
     1 [Test]
       
     2 title complete
       
     3 run demomodule Demo.cfg 1 testid=demo ini=ini.txt expect=0
       
     4 pause demo
       
     5 resume demo
       
     6 complete demo
       
     7 [Endtest]
       
     8 
       
     9 [Test]
       
    10 title complete and rerun
       
    11 run demomodule Demo.cfg 1 testid=demo expect=0
       
    12 pause demo
       
    13 resume demo
       
    14 complete demo
       
    15 run demomodule Demo.cfg 1
       
    16 [Endtest]
       
    17 
       
    18 [Test]
       
    19 title cancel
       
    20 run demomodule Demo.cfg 1 testid=demo ini=ini.txt expect=-3
       
    21 pause demo time=2000
       
    22 cancel demo
       
    23 [Endtest]
       
    24 
       
    25 [Test]
       
    26 title double
       
    27 run demomodule Demo.cfg 1 testid=demo10 ini=ini.txt expect=-3
       
    28 run demomodule Demo.cfg 1 testid=demo20 ini=ini.txt
       
    29 pause demo10
       
    30 pause demo20
       
    31 resume demo10
       
    32 cancel demo10
       
    33 resume demo20
       
    34 [Endtest]
       
    35 
       
    36 [Test]
       
    37 title timer2
       
    38 run timermodule Demo.cfg 0 testid=t1 expect=-2
       
    39 run timermodule Demo.cfg 1 testid=t2
       
    40 pause t1
       
    41 complete t2
       
    42 resume t1
       
    43 [Endtest]
       
    44 
       
    45 [Test]
       
    46 title pause t1 5 sec
       
    47 run timermodule Demo.cfg 0 testid=t1 expect=-2
       
    48 run timermodule Demo.cfg 1 testid=t2
       
    49 pause t1 time=5000
       
    50 [Endtest]
       
    51 
       
    52 [Test]  
       
    53 title test TestCombiner state events
       
    54 request demo
       
    55 set demo state=1
       
    56 wait demo
       
    57 release demo 
       
    58 unset demo
       
    59 [Endtest]
       
    60 
       
    61 [Test]  
       
    62 title test TestCombiner indication event set
       
    63 set demo
       
    64 [Endtest]
       
    65 
       
    66 [Test]  
       
    67 title test TestCombiner indication event req-wait-rel
       
    68 request demo
       
    69 wait demo
       
    70 release demo 
       
    71 [Endtest]
       
    72 
       
    73 [Test]  
       
    74 title wait TestModuleState1 event (testmodule/TestCombiner combined)
       
    75 request TestModuleState1
       
    76 run testmodule ex.cfg 18
       
    77 wait TestModuleState1
       
    78 release TestModuleState1
       
    79 [Endtest]
       
    80 
       
    81 [Test]  
       
    82 title multiple wait TestModuleIndication1 event (testmodule/TestCombiner combined)
       
    83 request TestModuleIndication1
       
    84 run testmodule ex.cfg 20
       
    85 wait TestModuleIndication1
       
    86 wait TestModuleIndication1
       
    87 wait TestModuleIndication1
       
    88 wait TestModuleIndication1
       
    89 wait TestModuleIndication1
       
    90 wait TestModuleIndication1
       
    91 release TestModuleIndication1
       
    92 [Endtest]
       
    93 
       
    94