testexecfw/stf/stfext/testmodules/testcombiner/group/TestCombinerExample.cfg
author Johnson Ma <johnson.ma@nokia.com>
Fri, 09 Apr 2010 10:46:28 +0800
changeset 2 8bb370ba6d1d
permissions -rw-r--r--
contribute STF 1.0.0

[Test]
title complete
run demomodule Demo.cfg 1 testid=demo ini=ini.txt expect=0
pause demo
resume demo
complete demo
[Endtest]

[Test]
title complete and rerun
run demomodule Demo.cfg 1 testid=demo expect=0
pause demo
resume demo
complete demo
run demomodule Demo.cfg 1
[Endtest]

[Test]
title cancel
run demomodule Demo.cfg 1 testid=demo ini=ini.txt expect=-3
pause demo time=2000
cancel demo
[Endtest]

[Test]
title double
run demomodule Demo.cfg 1 testid=demo10 ini=ini.txt expect=-3
run demomodule Demo.cfg 1 testid=demo20 ini=ini.txt
pause demo10
pause demo20
resume demo10
cancel demo10
resume demo20
[Endtest]

[Test]
title timer2
run timermodule Demo.cfg 0 testid=t1 expect=-2
run timermodule Demo.cfg 1 testid=t2
pause t1
complete t2
resume t1
[Endtest]

[Test]
title pause t1 5 sec
run timermodule Demo.cfg 0 testid=t1 expect=-2
run timermodule Demo.cfg 1 testid=t2
pause t1 time=5000
[Endtest]

[Test]  
title test TestCombiner state events
request demo
set demo state=1
wait demo
release demo 
unset demo
[Endtest]

[Test]  
title test TestCombiner indication event set
set demo
[Endtest]

[Test]  
title test TestCombiner indication event req-wait-rel
request demo
wait demo
release demo 
[Endtest]

[Test]  
title wait TestModuleState1 event (testmodule/TestCombiner combined)
request TestModuleState1
run testmodule ex.cfg 18
wait TestModuleState1
release TestModuleState1
[Endtest]

[Test]  
title multiple wait TestModuleIndication1 event (testmodule/TestCombiner combined)
request TestModuleIndication1
run testmodule ex.cfg 20
wait TestModuleIndication1
wait TestModuleIndication1
wait TestModuleIndication1
wait TestModuleIndication1
wait TestModuleIndication1
wait TestModuleIndication1
release TestModuleIndication1
[Endtest]