12.07.2015 Views

Testing Embedded Systems in the Automotive Industry with TTCN-3

Testing Embedded Systems in the Automotive Industry with TTCN-3

Testing Embedded Systems in the Automotive Industry with TTCN-3

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Use Case: Test of an Indicator<strong>Test<strong>in</strong>g</strong> Activation of Indicatorwww.temea.orgtestcase tc1( ) runs on IndicatorTestComponent{var float l_actv, r_actv, f_actv;const float TMAX = 0.06;activate(tc_timout);leverIn.send (LEFT);l_actv:= now;<strong>in</strong>terleave{[ ] FrontOut.receive(ON) -> timestamp f_actv;[ ] RearOut.receive(ON) -> timestamp r_actv;}if ((f_actv-l_actv > TMAX)or (f_actv-r_actv > TMAX)){setverdict(fail)}setverdict(pass);}18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!