70 likes | 240 Views
Proposal for a New Work Item: IDL to TTCN-3 Mapping. Ina Schieferdecker. TTCN-3 for CORBA. TTCN-3 suitable for testing of CORBA based systems asynchronous communication properly used GIOP/IIOP synchronous communication properly used for SII, API test and any other IDL interface Issues
E N D
Proposal for a New Work Item:IDL to TTCN-3 Mapping Ina Schieferdecker
TTCN-3 for CORBA • TTCN-3 suitable for testing of CORBA based systems • asynchronous communication properly used GIOP/IIOP • synchronous communication properly used for SII, API test and any other IDL interface • Issues • Integration of IDL into TTCN-3: Mapping rules for IDL to TTCN-3 • Predefined, unique use of IDL definitions in TTCN-3 • Easy implementation of tests: • Unique adaptor for CORBA tests in TTCN-3
Basic Concept of IDL to TTCN-3 Mapping TTCN-3 Test System IDL Definition MTC operation signature attribute port Abstract TSI Real TSI interface SUT
An Example // TTCN-3 module PolicyTest { import allfrom CORBA; typerecord WrongPolicy {}; {extension “CORBA v2.3, IDL: exception”}; typeenumerated objectstate {active, deactive, non_aom} {extension “CORBA v2.3, IDL: enum”}; : group RequestPolicyTest { signature check_objectState(in CORBA_Object svtProvider) return objectState; signature create_objectRef() return CORBA_Object exception (WrongPolicy); } typeport CORBA_RequestPolicyTest procedure { out create_objectRef, check_objectstate; } typecomponent MTCType { port RequestPolicyTest MTCpco}; typecomponent TSIType { port RequestPolicyTest SYSpco }; : } // IDL module PolicyTest { exception WrongPolicy; enum objectstate {active, deactive, no_aom} : interface RequestPolicyTest { objectstate check_objectstate(inObject obj); Object create_object(); raises {WrongPolicy}; }; };