Loading codec/validation/TortureTest_DIAMETER/Adapter/TestCastTortureAdapter.exe (9.5 KiB) File changed.No diff preview for this file type. View original file View changed file codec/validation/TortureTest_DIAMETER/Adapter/src/TortureAdapter.cs +1 −1 Changes for codec/validation/TortureTest_DIAMETER/Adapter/src/TortureAdapter.cs: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ namespace TestCastTortureAdapter return; } FileStream fs = new FileStream(sFilePath, FileMode.Open); FileStream fs = new FileStream(sFilePath, FileMode.Open, FileAccess.Read); int nLen = (int)fs.Length; byte[] data = new byte[nLen]; int nRead = 0; Loading codec/validation/TortureTest_DIAMETER/TortureTestSolution/DiameterTortureTestCases.ttcn +42 −35 Changes for codec/validation/TortureTest_DIAMETER/TortureTestSolution/DiameterTortureTestCases.ttcn: 42 added lines, 35 removed lines. Original line number Diff line number Diff line Loading @@ -31,13 +31,16 @@ module DiameterTortureTestCases setverdict(inconc); } } const boolean TEST_ENCODING := false; altstep receive_specific_DIAMETER_MSG(template DIAMETER_MSG tmpl) runs on DiameterComponent { var DIAMETER_MSG msg; []p.receive(tmpl) -> value msg { if(TEST_ENCODING == true) { loopback.send(msg);//test if encoded message looks the same... } setverdict(pass); } []p.receive(DIAMETER_MSG:?) Loading Loading @@ -94,142 +97,142 @@ module DiameterTortureTestCases } // End of testcase TC_3GPP_Update_Location_Answer testcase TC_Capabilities_Exchange_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Capabilities_Exchange_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cEA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Capabilities_Exchange_Answer testcase TC_Capabilities_Exchange_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Capabilities_Exchange_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cER_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Capabilities_Exchange_Request testcase TC_268_A() runs on DiameterComponent {//3GPP-Update-Location answer {//TC_268_A tmrTimeout.start; receiveDIAMETER_MSG(); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_268_A testcase TC_268_R() runs on DiameterComponent {//3GPP-Update-Location answer {//TC_268_R tmrTimeout.start; receiveDIAMETER_MSG(); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_268_R testcase TC_Accounting_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Accounting_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aCA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Accounting_Answer testcase TC_Accounting_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Accounting_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aCR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Accounting_Request testcase TC_Device_Watchdog_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Device_Watchdog_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{dWA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Device_Watchdog_Answer testcase TC_Device_Watchdog_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Device_Watchdog_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{dWR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Device_Watchdog_Request testcase TC_Re_Auth_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Re_Auth_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{rAA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Re_Auth_Answer testcase TC_Re_Auth_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Re_Auth_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{rAR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Re_Auth_Request testcase TC_Auth_Accounting_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Auth_Accounting_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aAA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Auth_Accounting_Answer testcase TC_Auth_Accounting_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Auth_Accounting_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aAR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Auth_Accounting_Request testcase TC_Credit_Control_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Credit_Control_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cCA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Credit_Control_Answer testcase TC_Credit_Control_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Credit_Control_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cCR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Credit_Control_Request testcase TC_Session_Termination_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Session_Termination_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{sTA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Session_Termination_Answer testcase TC_Session_Termination_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Session_Termination_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{sTR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Session_Termination_Request testcase TC_Multimedia_Auth_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Multimedia_Auth_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{mAR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Multimedia_Auth_Request control { Loading @@ -240,11 +243,15 @@ module DiameterTortureTestCases execute(TC_3GPP_Update_Location_Answer());//316 execute(TC_Capabilities_Exchange_Answer());//257 execute(TC_Capabilities_Exchange_Request());//257 execute(TC_268_A()); execute(TC_268_R()); execute(TC_Accounting_Answer());//271 execute(TC_Accounting_Request());//271 execute(TC_Device_Watchdog_Answer());//280 execute(TC_Device_Watchdog_Request());//280 Loading Loading
codec/validation/TortureTest_DIAMETER/Adapter/TestCastTortureAdapter.exe (9.5 KiB) File changed.No diff preview for this file type. View original file View changed file
codec/validation/TortureTest_DIAMETER/Adapter/src/TortureAdapter.cs +1 −1 Changes for codec/validation/TortureTest_DIAMETER/Adapter/src/TortureAdapter.cs: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ namespace TestCastTortureAdapter return; } FileStream fs = new FileStream(sFilePath, FileMode.Open); FileStream fs = new FileStream(sFilePath, FileMode.Open, FileAccess.Read); int nLen = (int)fs.Length; byte[] data = new byte[nLen]; int nRead = 0; Loading
codec/validation/TortureTest_DIAMETER/TortureTestSolution/DiameterTortureTestCases.ttcn +42 −35 Changes for codec/validation/TortureTest_DIAMETER/TortureTestSolution/DiameterTortureTestCases.ttcn: 42 added lines, 35 removed lines. Original line number Diff line number Diff line Loading @@ -31,13 +31,16 @@ module DiameterTortureTestCases setverdict(inconc); } } const boolean TEST_ENCODING := false; altstep receive_specific_DIAMETER_MSG(template DIAMETER_MSG tmpl) runs on DiameterComponent { var DIAMETER_MSG msg; []p.receive(tmpl) -> value msg { if(TEST_ENCODING == true) { loopback.send(msg);//test if encoded message looks the same... } setverdict(pass); } []p.receive(DIAMETER_MSG:?) Loading Loading @@ -94,142 +97,142 @@ module DiameterTortureTestCases } // End of testcase TC_3GPP_Update_Location_Answer testcase TC_Capabilities_Exchange_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Capabilities_Exchange_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cEA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Capabilities_Exchange_Answer testcase TC_Capabilities_Exchange_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Capabilities_Exchange_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cER_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Capabilities_Exchange_Request testcase TC_268_A() runs on DiameterComponent {//3GPP-Update-Location answer {//TC_268_A tmrTimeout.start; receiveDIAMETER_MSG(); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_268_A testcase TC_268_R() runs on DiameterComponent {//3GPP-Update-Location answer {//TC_268_R tmrTimeout.start; receiveDIAMETER_MSG(); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_268_R testcase TC_Accounting_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Accounting_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aCA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Accounting_Answer testcase TC_Accounting_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Accounting_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aCR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Accounting_Request testcase TC_Device_Watchdog_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Device_Watchdog_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{dWA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Device_Watchdog_Answer testcase TC_Device_Watchdog_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Device_Watchdog_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{dWR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Device_Watchdog_Request testcase TC_Re_Auth_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Re_Auth_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{rAA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Re_Auth_Answer testcase TC_Re_Auth_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Re_Auth_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{rAR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Re_Auth_Request testcase TC_Auth_Accounting_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Auth_Accounting_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aAA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Auth_Accounting_Answer testcase TC_Auth_Accounting_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Auth_Accounting_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aAR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Auth_Accounting_Request testcase TC_Credit_Control_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Credit_Control_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cCA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Credit_Control_Answer testcase TC_Credit_Control_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Credit_Control_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cCR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Credit_Control_Request testcase TC_Session_Termination_Answer() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Session_Termination_Answer map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{sTA_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Session_Termination_Answer testcase TC_Session_Termination_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Session_Termination_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{sTR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Session_Termination_Request testcase TC_Multimedia_Auth_Request() runs on DiameterComponent system DiameterComponent {//3GPP-Update-Location answer {//TC_Multimedia_Auth_Request map(self:p, system:p); connect(self:loopback,mtc:loopback); tmrTimeout.start; receive_specific_DIAMETER_MSG(DIAMETER_MSG:{mAR_MSG := ?}); } // End of testcase TC_3GPP_Update_Location_Answer } // End of testcase TC_Multimedia_Auth_Request control { Loading @@ -240,11 +243,15 @@ module DiameterTortureTestCases execute(TC_3GPP_Update_Location_Answer());//316 execute(TC_Capabilities_Exchange_Answer());//257 execute(TC_Capabilities_Exchange_Request());//257 execute(TC_268_A()); execute(TC_268_R()); execute(TC_Accounting_Answer());//271 execute(TC_Accounting_Request());//271 execute(TC_Device_Watchdog_Answer());//280 execute(TC_Device_Watchdog_Request());//280 Loading