Commit 80082ab7 authored by juvancic's avatar juvancic
Browse files

No commit message

No commit message
parent c0cbb8f7
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
@@ -361,6 +361,61 @@ group GlobalSteps {

            } // end function f_AF_IUT_session_esthablishment
            
    /*
    *  @desc	This is a test step that assign common Diameter headers
    *  @param	
    */
            function f_Set_Diameter_Headers( inout template DIAMETER_MSG p_diameterMSG)
            runs on DiameterComponent {
				
                //insert length of message  
                if (ischosen(p_diameterMSG.cER_MSG)){p_diameterMSG.cER_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.cER_MSG));}
                if (ischosen(p_diameterMSG.cEA_MSG)){p_diameterMSG.cEA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.cEA_MSG));}
                if (ischosen(p_diameterMSG.rAR_MSG)){p_diameterMSG.rAR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.rAR_MSG));}
                if (ischosen(p_diameterMSG.rAA_MSG)){p_diameterMSG.rAA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.rAA_MSG));}
                if (ischosen(p_diameterMSG.aCR_MSG)){p_diameterMSG.aCR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.aCR_MSG));}
                if (ischosen(p_diameterMSG.aCA_MSG)){p_diameterMSG.aCA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.aCA_MSG));}
                if (ischosen(p_diameterMSG.aSR_MSG)){p_diameterMSG.aSR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.aSR_MSG));}
                if (ischosen(p_diameterMSG.aSA_MSG)){p_diameterMSG.aSA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.aSA_MSG));}
                if (ischosen(p_diameterMSG.sTR_MSG)){p_diameterMSG.sTR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.sTR_MSG));}
                if (ischosen(p_diameterMSG.sTA_MSG)){p_diameterMSG.sTA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.sTA_MSG));}
                if (ischosen(p_diameterMSG.dWR_MSG)){p_diameterMSG.dWR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.dWR_MSG));}
                if (ischosen(p_diameterMSG.dWA_MSG)){p_diameterMSG.dWA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.dWA_MSG));}
                if (ischosen(p_diameterMSG.dPR_MSG)){p_diameterMSG.dPR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.dPR_MSG));}
                if (ischosen(p_diameterMSG.dPA_MSG)){p_diameterMSG.dPA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.dPA_MSG));}
                //RFC4740
                if (ischosen(p_diameterMSG.uAR_MSG)){p_diameterMSG.uAR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.uAR_MSG));}
                if (ischosen(p_diameterMSG.uAA_MSG)){p_diameterMSG.uAA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.uAA_MSG));}
                if (ischosen(p_diameterMSG.sAR_MSG)){p_diameterMSG.sAR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.sAR_MSG));}
                if (ischosen(p_diameterMSG.sAA_MSG)){p_diameterMSG.sAA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.sAA_MSG));}
                if (ischosen(p_diameterMSG.lIR_MSG)){p_diameterMSG.lIR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.lIR_MSG));}
                if (ischosen(p_diameterMSG.lIA_MSG)){p_diameterMSG.lIA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.lIA_MSG));}
                if (ischosen(p_diameterMSG.mAR_MSG)){p_diameterMSG.mAR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.mAR_MSG));}
                if (ischosen(p_diameterMSG.mAA_MSG)){p_diameterMSG.mAA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.mAA_MSG));}
                if (ischosen(p_diameterMSG.rTR_MSG)){p_diameterMSG.rTR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.rTR_MSG));}
                if (ischosen(p_diameterMSG.rTA_MSG)){p_diameterMSG.rTA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.rTA_MSG));}
                if (ischosen(p_diameterMSG.pPR_MSG)){p_diameterMSG.pPR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.pPR_MSG));}
                if (ischosen(p_diameterMSG.pPA_MSG)){p_diameterMSG.pPA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.pPA_MSG));}
                //Sh interface
                if (ischosen(p_diameterMSG.uDR_MSG)){p_diameterMSG.uDR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.uDR_MSG));}
                if (ischosen(p_diameterMSG.uDA_MSG)){p_diameterMSG.uDA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.uDA_MSG));}
                if (ischosen(p_diameterMSG.pUR_MSG)){p_diameterMSG.pUR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.pUR_MSG));}
                if (ischosen(p_diameterMSG.pUA_MSG)){p_diameterMSG.pUA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.pUA_MSG));}
                if (ischosen(p_diameterMSG.sNR_MSG)){p_diameterMSG.sNR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.sNR_MSG));}
                if (ischosen(p_diameterMSG.sNA_MSG)){p_diameterMSG.sNA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.sNA_MSG));}
                if (ischosen(p_diameterMSG.pNR_MSG)){p_diameterMSG.pNR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.pNR_MSG));}
                if (ischosen(p_diameterMSG.pNA_MSG)){p_diameterMSG.pNA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.pNA_MSG));}
                //RFC4006
                if (ischosen(p_diameterMSG.cCR_MSG)){p_diameterMSG.cCR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.cCR_MSG));}
                if (ischosen(p_diameterMSG.cCA_MSG)){p_diameterMSG.cCA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.cCA_MSG));}
                //Rx interface
                if (ischosen(p_diameterMSG.aAR_MSG)){p_diameterMSG.aAR_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.aAR_MSG));}
                if (ischosen(p_diameterMSG.aAA_MSG)){p_diameterMSG.aAA_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.aAA_MSG));}
                if (ischosen(p_diameterMSG.uNKNOWN_MSG)){p_diameterMSG.uNKNOWN_MSG.header.msglen := lengthof(encvalue(p_diameterMSG.uNKNOWN_MSG));}         
                //p_diameterMSG.header.msglen := lengthof(encvalue(p_diameterMSG));
                  
            } // end function f_AF_IUT_session_esthablishment
                

}// end group GlobalSteps