120 likes | 275 Views
Zhen Ru Dai 1 , Jens Grabowski 2 , Helmut Neukirchen 1. T IMED TTCN-3 Based Graphical Real-Time Test Specification. 1 Institute for Telematics · University of Lübeck · Germany 2 Institute for Informatics · University of Göttingen · Germany. TTCN-3. TTCN-3. T IMED. T IMED. TTCN-3.
E N D
Zhen Ru Dai1, Jens Grabowski2,Helmut Neukirchen1 TIMEDTTCN-3 Based Graphical Real-Time Test Specification 1Institute for Telematics · University of Lübeck · Germany2Institute for Informatics · University of Göttingen · Germany
TTCN-3 TTCN-3 TIMED TIMED TTCN-3 TIMED Test purpose MSC mapping TIMEDGFT generate Test purpose MSC mapping TIMEDGFT generate • Instrument functional testcases to generate timestamps, • Execute testcase, • Apply evaluation functions to the generated timestamps, • Assign a test verdict. Presented at Testcom 2002 (Submitted for standardisation.) Outline & Introduction Test behaviour TTCN-3 mapping GFT Core notation Presentation format
TIMEDTTCN-3=TTCN-3+Time Extensions • Absolute time in form of local clocks • read (self.now), wait (resume) • Timezones • specification of clock synchronised test components • Logfile • log, sort, retrieve of structured data • Conf-Verdict • passconfinconcfail
Test purpose MSC generate Test Case Generation Test behaviour mapping TTCN-3 TIMEDGFT TIMED Core notation Presentation format
Generating TIMEDTTCN-3 from MSC • Pure functional test cases: Proven approach and implemented by TTCN-2 tools, e.g.: • Autolink (Telelogic) • ptk (Motorola) • New: generating TIMEDTTCN-3test cases. • Possible, because MSC allows to attach time constraints to events.
Generated TIMEDTTCN-3 Testcase testcase InresRTexample() runs on inres {var default dflt:=activate(OtherwiseFail);varfloat sendTime1:=-1.0;varinteger iterator1:=0;for (iterator1:=0; iterator1<100; iterator1:=iterator1+1) {if (sendTime1==-1.0) { sendTime1:=self.now+0.01; }else {resume(sendTime1); sendTime1:=sendTime1+0.01; }log(TimestampType:{self.now,"IDATreq1"}); ISAP.send(IDATreq:{"data"}); MSAP.receive(MDATind:{DT,number,"data"});log(TimestampType:{self.now,"MDATind2"}); MSAP.send(MDATreq:{AK,number}); }deactivate(dflt);setverdict(pass);stop;}
Test purpose Test purpose MSC MSC generate generate mapping TIMEDGFT • New GFT symbols. • One-to-one mapping betweenTIMEDTTCN-3 core notation and TIMEDGFT. Graphical Test Case Specification Test behaviour TTCN-3 mapping GFT TIMED Core notation Presentation format
TIMEDGFT Example testcase InresRTexample() runs on inres{varfloat sendTime1:=-1.0;varinteger iterator1:=0;for (iterator1:=0; iterator1<100; iterator1:=iterator1+1) {if (sendTime1==-1.0) { sendTime1:=self.now+0.01; }else {resume(sendTime1); sendTime1:=sendTime1+0.01; }log(TimestampType:{self.now,"IDATreq1"}); ISAP.send(IDATreq:{"data"}); MSAP.receive(MDATind:{DT,number,"data"});log(TimestampType:{self.now,"MDATind2"}); MSAP.send(MDATreq:{AK,number}); }setverdict(pass);stop;}
TIMEDGFT: Extensions to GFT TIMEDTTCN-3 TIMEDGFT
Summary and Outlook • Generating TIMEDTTCN-3 from MSC. • TIMEDGFT, a real-time extension for GFT. • Outlook: • Further tool support for TIMEDTTCN-3. • Pattern-based real-time test engineering with TIMEDTTCN-3. • TIMEDTTCN-3 support for testing soft real-time requirements.