Loading codec/validation/TortureTest_GTP/TortureTestSolution/GtpTortureTestCases.ttcn +95 −14 Original line number Original line Diff line number Diff line Loading @@ -13,36 +13,117 @@ module GtpTortureTestCases timer tmrTimeout := 3.0; timer tmrTimeout := 3.0; } // End of type DiameterComponent } // End of type DiameterComponent //DIAMETER //GTP altstep receiveGTPv1_MSG() runs on GtpComponent altstep receiveGTPv1_MSG_NO_EXTENSIONS( { in bitstring p_version, []p.receive(GTPv1_MSG:?) in octetstring p_messagetype, in octetstring p_len, in octetstring p_teid ) runs on GtpComponent { { var GTPv1_MSG v_recv; []p.receive( GTPv1_MSG: { header := { version := p_version, messagetype := p_messagetype, len := p_len, teid := p_teid, seqnum := omit, npdu_num := omit, extensionheader := omit }, // End of header field body := ? } // End of GTPv1_MSG template ) { setverdict(pass); setverdict(pass); } } []p.receive []p.receive { { setverdict(fail); setverdict(fail); } } []tmrTimeout.timeout []tmrTimeout.timeout { { setverdict(inconc); setverdict(inconc); } } } // End of altstep receiveGTPv1_MSG_NO_EXTENSIONS altstep receiveGTPv1_MSG_WITH_EXTENSIONS( in bitstring p_version, in octetstring p_messagetype, in octetstring p_len, in octetstring p_teid, in octetstring p_seqnum ) runs on GtpComponent { []p.receive( GTPv1_MSG: { header := { version := p_version, messagetype := p_messagetype, len := p_len, teid := p_teid, seqnum := p_seqnum, npdu_num := '00'O, extensionheader := '00'O }, // End of header field body := ? } // End of GTPv1_MSG template ) { setverdict(pass); } []p.receive { setverdict(fail); } } []tmrTimeout.timeout { setverdict(inconc); } } // End of altstep receiveGTPv1_MSG_WITH_EXTENSIONS /** /** 3GPP-Authentication-Information request */ // testcase TC_GTP_SIP_INVITE() runs on GtpComponent {// tmrTimeout.start; receiveGTPv1_MSG_NO_EXTENSIONS('001'B, 'FF'O, '04ED'O, '04C05425'O); } // End of testcase TC_GTP_SIP_INVITE /** */ // testcase TC_GTP_SIP_100_TRYING() runs on GtpComponent {// tmrTimeout.start; receiveGTPv1_MSG_NO_EXTENSIONS('001'B, 'FF'O, '0124'O, '00523005'O); } // End of testcase TC_GTP_SIP_100_TRYING /** */ // testcase TC_GTP_SIP_100_TRYING_WITH_EXTENTIONS() runs on GtpComponent {// tmrTimeout.start; receiveGTPv1_MSG_WITH_EXTENSIONS('001'B, 'FF'O, '0128'O, '04808805'O, 'a42e'O); } // End of testcase TC_GTP_SIP_100_TRYING_WITH_EXTENTIONS /** */ */ // // testcase TC_GTP_BASIC() runs on GtpComponent testcase TC_GTP_SIP_BYE_WITH_EXTENSIONS() runs on GtpComponent {// {// tmrTimeout.start; tmrTimeout.start; receiveGTPv1_MSG(); receiveGTPv1_MSG_WITH_EXTENSIONS('001'B, 'FF'O, '029e'O, '04808805'O, 'f241'O); } // End of testcase TC_GTP_BASIC } // End of testcase TC_GTP_SIP_BYE_WITH_EXTENSIONS control control { { //GTP //GTP execute(TC_GTP_BASIC()); execute(TC_GTP_SIP_INVITE()); execute(TC_GTP_SIP_100_TRYING()); execute(TC_GTP_SIP_100_TRYING_WITH_EXTENTIONS()); execute(TC_GTP_SIP_BYE_WITH_EXTENSIONS()); } } } } No newline at end of file codec/validation/TortureTest_GTP/TortureTestSolution/TortureTestSolution.tcproj +2 −1 Original line number Original line Diff line number Diff line Loading @@ -71,8 +71,9 @@ </scripts> </scripts> <verstool /> <verstool /> <sut> <sut> <exe>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe </exe> <exe>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe -Lall</exe> <target>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe</target> <target>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe</target> <params>-Lall</params> <workdir>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP</workdir> <workdir>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP</workdir> </sut> </sut> <codec_rules>CodecRules_TortureTestSolution.txt</codec_rules> <codec_rules>CodecRules_TortureTestSolution.txt</codec_rules> Loading codec/validation/TortureTest_GTP/TortureTestSolution/TortureTestSolution.tcproj.user +10 −7 Original line number Original line Diff line number Diff line Loading @@ -2,23 +2,26 @@ <user_space> <user_space> <logs> <logs> <items> <items> <log>Session_201209141039533\session_log.xmmlog</log> <log>Session_201209171346369\session_log.xmmlog</log> <log>Session_201209141040277\session_log.xmmlog</log> </items> </items> </logs> </logs> <open> <open> <scripts /> <scripts> <logs> <item> <item> <name>Session_201209141039533\session_log.xmmlog</name> <name>GtpTortureTestCases</name> <tab> <tab> <pos>1</pos> <pos>1</pos> <ln>79</ln> <crln>126</crln> <crcl>0</crcl> </tab> </tab> </item> </item> </scripts> <logs> <item> <item> <name>Session_201209141040277\session_log.xmmlog</name> <name>Session_201209171346369\session_log.xmmlog</name> <tab> <tab> <pos>2</pos> <pos>3</pos> <active /> <active /> </tab> </tab> </item> </item> Loading codec/validation/TortureTest_GTP/data/TC_GTP_SIP_100_TRYING.dat +1 −1 Original line number Original line Diff line number Diff line 32ff012804808805a42e000045000124ab9600003e11b6f60a0d01290a0d03fa13c5236401103fcf5349502f322e302031303020547279696e670d0a46726f6d3a207369703a616e6f6e796d6f757340616e6f6e796d6f75732e696e76616c69643b7461673d32393062623036330d0a546f3a203c7369703a5545344076662d6d7366322e636f6d3e0d0a43616c6c2d49443a20343666663262666631666666303030666633323631363133343066664031302e31332e332e3235300d0a435365713a203133303530333034373520494e564954450d0a5669613a205349502f322e302f5544502031302e31332e332e3235303a393036303b72656365697665643d31302e31332e332e3235303b6272616e63683d7a39684734624b623362343639646532646464386332300d0a0d0a 30ff01240052300545000124ab9600003e11b6f60a0d01290a0d03fa13c5236401103fcf5349502f322e302031303020547279696e670d0a46726f6d3a207369703a616e6f6e796d6f757340616e6f6e796d6f75732e696e76616c69643b7461673d32393062623036330d0a546f3a203c7369703a5545344076662d6d7366322e636f6d3e0d0a43616c6c2d49443a20343666663262666631666666303030666633323631363133343066664031302e31332e332e3235300d0a435365713a203133303530333034373520494e564954450d0a5669613a205349502f322e302f5544502031302e31332e332e3235303a393036303b72656365697665643d31302e31332e332e3235303b6272616e63683d7a39684734624b623362343639646532646464386332300d0a0d0a No newline at end of file No newline at end of file Loading
codec/validation/TortureTest_GTP/TortureTestSolution/GtpTortureTestCases.ttcn +95 −14 Original line number Original line Diff line number Diff line Loading @@ -13,36 +13,117 @@ module GtpTortureTestCases timer tmrTimeout := 3.0; timer tmrTimeout := 3.0; } // End of type DiameterComponent } // End of type DiameterComponent //DIAMETER //GTP altstep receiveGTPv1_MSG() runs on GtpComponent altstep receiveGTPv1_MSG_NO_EXTENSIONS( { in bitstring p_version, []p.receive(GTPv1_MSG:?) in octetstring p_messagetype, in octetstring p_len, in octetstring p_teid ) runs on GtpComponent { { var GTPv1_MSG v_recv; []p.receive( GTPv1_MSG: { header := { version := p_version, messagetype := p_messagetype, len := p_len, teid := p_teid, seqnum := omit, npdu_num := omit, extensionheader := omit }, // End of header field body := ? } // End of GTPv1_MSG template ) { setverdict(pass); setverdict(pass); } } []p.receive []p.receive { { setverdict(fail); setverdict(fail); } } []tmrTimeout.timeout []tmrTimeout.timeout { { setverdict(inconc); setverdict(inconc); } } } // End of altstep receiveGTPv1_MSG_NO_EXTENSIONS altstep receiveGTPv1_MSG_WITH_EXTENSIONS( in bitstring p_version, in octetstring p_messagetype, in octetstring p_len, in octetstring p_teid, in octetstring p_seqnum ) runs on GtpComponent { []p.receive( GTPv1_MSG: { header := { version := p_version, messagetype := p_messagetype, len := p_len, teid := p_teid, seqnum := p_seqnum, npdu_num := '00'O, extensionheader := '00'O }, // End of header field body := ? } // End of GTPv1_MSG template ) { setverdict(pass); } []p.receive { setverdict(fail); } } []tmrTimeout.timeout { setverdict(inconc); } } // End of altstep receiveGTPv1_MSG_WITH_EXTENSIONS /** /** 3GPP-Authentication-Information request */ // testcase TC_GTP_SIP_INVITE() runs on GtpComponent {// tmrTimeout.start; receiveGTPv1_MSG_NO_EXTENSIONS('001'B, 'FF'O, '04ED'O, '04C05425'O); } // End of testcase TC_GTP_SIP_INVITE /** */ // testcase TC_GTP_SIP_100_TRYING() runs on GtpComponent {// tmrTimeout.start; receiveGTPv1_MSG_NO_EXTENSIONS('001'B, 'FF'O, '0124'O, '00523005'O); } // End of testcase TC_GTP_SIP_100_TRYING /** */ // testcase TC_GTP_SIP_100_TRYING_WITH_EXTENTIONS() runs on GtpComponent {// tmrTimeout.start; receiveGTPv1_MSG_WITH_EXTENSIONS('001'B, 'FF'O, '0128'O, '04808805'O, 'a42e'O); } // End of testcase TC_GTP_SIP_100_TRYING_WITH_EXTENTIONS /** */ */ // // testcase TC_GTP_BASIC() runs on GtpComponent testcase TC_GTP_SIP_BYE_WITH_EXTENSIONS() runs on GtpComponent {// {// tmrTimeout.start; tmrTimeout.start; receiveGTPv1_MSG(); receiveGTPv1_MSG_WITH_EXTENSIONS('001'B, 'FF'O, '029e'O, '04808805'O, 'f241'O); } // End of testcase TC_GTP_BASIC } // End of testcase TC_GTP_SIP_BYE_WITH_EXTENSIONS control control { { //GTP //GTP execute(TC_GTP_BASIC()); execute(TC_GTP_SIP_INVITE()); execute(TC_GTP_SIP_100_TRYING()); execute(TC_GTP_SIP_100_TRYING_WITH_EXTENTIONS()); execute(TC_GTP_SIP_BYE_WITH_EXTENSIONS()); } } } } No newline at end of file
codec/validation/TortureTest_GTP/TortureTestSolution/TortureTestSolution.tcproj +2 −1 Original line number Original line Diff line number Diff line Loading @@ -71,8 +71,9 @@ </scripts> </scripts> <verstool /> <verstool /> <sut> <sut> <exe>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe </exe> <exe>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe -Lall</exe> <target>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe</target> <target>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP\Adapter\TestCastTortureAdapter.exe</target> <params>-Lall</params> <workdir>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP</workdir> <workdir>C:\cygwin\home\garciay\STF450_INT_Valid_Diameter\codec\validation\TortureTest_GTP</workdir> </sut> </sut> <codec_rules>CodecRules_TortureTestSolution.txt</codec_rules> <codec_rules>CodecRules_TortureTestSolution.txt</codec_rules> Loading
codec/validation/TortureTest_GTP/TortureTestSolution/TortureTestSolution.tcproj.user +10 −7 Original line number Original line Diff line number Diff line Loading @@ -2,23 +2,26 @@ <user_space> <user_space> <logs> <logs> <items> <items> <log>Session_201209141039533\session_log.xmmlog</log> <log>Session_201209171346369\session_log.xmmlog</log> <log>Session_201209141040277\session_log.xmmlog</log> </items> </items> </logs> </logs> <open> <open> <scripts /> <scripts> <logs> <item> <item> <name>Session_201209141039533\session_log.xmmlog</name> <name>GtpTortureTestCases</name> <tab> <tab> <pos>1</pos> <pos>1</pos> <ln>79</ln> <crln>126</crln> <crcl>0</crcl> </tab> </tab> </item> </item> </scripts> <logs> <item> <item> <name>Session_201209141040277\session_log.xmmlog</name> <name>Session_201209171346369\session_log.xmmlog</name> <tab> <tab> <pos>2</pos> <pos>3</pos> <active /> <active /> </tab> </tab> </item> </item> Loading
codec/validation/TortureTest_GTP/data/TC_GTP_SIP_100_TRYING.dat +1 −1 Original line number Original line Diff line number Diff line 32ff012804808805a42e000045000124ab9600003e11b6f60a0d01290a0d03fa13c5236401103fcf5349502f322e302031303020547279696e670d0a46726f6d3a207369703a616e6f6e796d6f757340616e6f6e796d6f75732e696e76616c69643b7461673d32393062623036330d0a546f3a203c7369703a5545344076662d6d7366322e636f6d3e0d0a43616c6c2d49443a20343666663262666631666666303030666633323631363133343066664031302e31332e332e3235300d0a435365713a203133303530333034373520494e564954450d0a5669613a205349502f322e302f5544502031302e31332e332e3235303a393036303b72656365697665643d31302e31332e332e3235303b6272616e63683d7a39684734624b623362343639646532646464386332300d0a0d0a 30ff01240052300545000124ab9600003e11b6f60a0d01290a0d03fa13c5236401103fcf5349502f322e302031303020547279696e670d0a46726f6d3a207369703a616e6f6e796d6f757340616e6f6e796d6f75732e696e76616c69643b7461673d32393062623036330d0a546f3a203c7369703a5545344076662d6d7366322e636f6d3e0d0a43616c6c2d49443a20343666663262666631666666303030666633323631363133343066664031302e31332e332e3235300d0a435365713a203133303530333034373520494e564954450d0a5669613a205349502f322e302f5544502031302e31332e332e3235303a393036303b72656365697665643d31302e31332e332e3235303b6272616e63683d7a39684734624b623362343639646532646464386332300d0a0d0a No newline at end of file No newline at end of file