Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Need Help

Need Help 22 Aug 2006 13:59 #6945

Dear All,
I have doing a simple test. One of my code segment in TTCN looks
like given below.

// For sending 32 byte predefined set of data
Mtc_Tsi_Port.send(IcmpDataReq(8, cSum, iSeq));
alt
{
[]Mtc_Tsi_Port.receive(IcmpDataRep) -> value IcmpRepData
{
if (IcmpRepData.icmpType == 0)
{
passVal := passVal + 1;
}
}
[]Mtc_Tsi_Port.receive
{
log("MTC: SUT protocol violation");
setverdict(fail);
}
}

And it works file i.e. I am able to send message to the SUT and able to
receive message. This is a fixed length message I am sending to the SUT.
I have seen the message in ethereal also. In the conf file I have used
the option t3asn.ExtASN.BER.DEFINITE-LENGTH boolean = true

On the other hand I have one more code snippet like below, where I am
trying to send a variable length message and in the conf file I have
used the option t3asn.ExtASN.BER.INDEFINITE-LENGTH boolean = true


// For sending variable length generated data
Mtc_Tsi_Port.send(IcmpDataReqWithData(8, cSum, iSeq, PingData1));
alt
{
[]Mtc_Tsi_Port.receive(IcmpDataRep) -> value IcmpRepData
{
if (IcmpRepData.icmpType == 0)
{
passVal := passVal + 1;
}

}
[]Mtc_Tsi_Port.receive
{
log("MTC: SUT protocol violation");
setverdict(fail);
}
}

But this does not work, it even does not print the message "MTC: SUT
protocol violation". While I was trying to do a real time debugging I
have seen that it is stuck in the alt loop. It never comes out of the
while loop. I am using the Telelogic TAU Tester. But when I tried to
capture packet using ethereal I saw that the SUT has sent the message to
the ETS.


Thanks and Regards
JK
The administrator has disabled public write access.

Need Help 22 Aug 2006 15:54 #6946

Hello Jayakishor,

If you receive absolutely no reply on your message, this very likely means
that something must be wrong in your Codec. Most likely problems are that
you forgot to handle the TTCN-3 type you had declared for this purpose, or
if you did, your encoding routine must have returned a null that probably
blocked the sending of the encoded message.

Now you could have also have problems on your decoder too. My personal
experience has always been the first kind.

Hope this helps.

Thanks
Cheers
Bernard Stepien
University of Ottawa
This email address is being protected from spambots. You need JavaScript enabled to view it.


Original Message
From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Jayakishor Bhanja
Sent: Tuesday, August 22, 2006 10:00 AM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Need Help

Dear All,
I have doing a simple test. One of my code segment in TTCN looks
like given below.

// For sending 32 byte predefined set of data
Mtc_Tsi_Port.send(IcmpDataReq(8, cSum, iSeq));
alt
{
[]Mtc_Tsi_Port.receive(IcmpDataRep) -> value IcmpRepData
{
if (IcmpRepData.icmpType == 0)
{
passVal := passVal + 1;
}
}
[]Mtc_Tsi_Port.receive
{
log("MTC: SUT protocol violation");
setverdict(fail);
}
}

And it works file i.e. I am able to send message to the SUT and able to
receive message. This is a fixed length message I am sending to the SUT.
I have seen the message in ethereal also. In the conf file I have used
the option t3asn.ExtASN.BER.DEFINITE-LENGTH boolean = true

On the other hand I have one more code snippet like below, where I am
trying to send a variable length message and in the conf file I have
used the option t3asn.ExtASN.BER.INDEFINITE-LENGTH boolean = true


// For sending variable length generated data
Mtc_Tsi_Port.send(IcmpDataReqWithData(8, cSum, iSeq, PingData1));
alt
{
[]Mtc_Tsi_Port.receive(IcmpDataRep) -> value IcmpRepData
{
if (IcmpRepData.icmpType == 0)
{
passVal := passVal + 1;
}

}
[]Mtc_Tsi_Port.receive
{
log("MTC: SUT protocol violation");
setverdict(fail);
}
}

But this does not work, it even does not print the message "MTC: SUT
protocol violation". While I was trying to do a real time debugging I
have seen that it is stuck in the alt loop. It never comes out of the
while loop. I am using the Telelogic TAU Tester. But when I tried to
capture packet using ethereal I saw that the SUT has sent the message to
the ETS.


Thanks and Regards
JK
The administrator has disabled public write access.

Need Help 24 Aug 2006 05:10 #6947

Hi

Your codec may be fine. Check that message was really consumed by TRI. You
should receive "sut_message_detected" event when your adapter calls
triEnqueueMsg function.
You probably will need to increase verbosity of log output since this event
is not displayed by default.

Best regards,
/Pavel

Original Message
From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Jayakishor Bhanja
Sent: Tuesday, August 22, 2006 5:00 PM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Need Help

Dear All,
I have doing a simple test. One of my code segment in TTCN looks
like given below.

// For sending 32 byte predefined set of data
Mtc_Tsi_Port.send(IcmpDataReq(8, cSum, iSeq));
alt
{
[]Mtc_Tsi_Port.receive(IcmpDataRep) -> value IcmpRepData
{
if (IcmpRepData.icmpType == 0)
{
passVal := passVal + 1;
}
}
[]Mtc_Tsi_Port.receive
{
log("MTC: SUT protocol violation");
setverdict(fail);
}
}

And it works file i.e. I am able to send message to the SUT and able to
receive message. This is a fixed length message I am sending to the SUT.
I have seen the message in ethereal also. In the conf file I have used
the option t3asn.ExtASN.BER.DEFINITE-LENGTH boolean = true

On the other hand I have one more code snippet like below, where I am
trying to send a variable length message and in the conf file I have
used the option t3asn.ExtASN.BER.INDEFINITE-LENGTH boolean = true


// For sending variable length generated data
Mtc_Tsi_Port.send(IcmpDataReqWithData(8, cSum, iSeq, PingData1));
alt
{
[]Mtc_Tsi_Port.receive(IcmpDataRep) -> value IcmpRepData
{
if (IcmpRepData.icmpType == 0)
{
passVal := passVal + 1;
}

}
[]Mtc_Tsi_Port.receive
{
log("MTC: SUT protocol violation");
setverdict(fail);
}
}

But this does not work, it even does not print the message "MTC: SUT
protocol violation". While I was trying to do a real time debugging I
have seen that it is stuck in the alt loop. It never comes out of the
while loop. I am using the Telelogic TAU Tester. But when I tried to
capture packet using ethereal I saw that the SUT has sent the message to
the ETS.


Thanks and Regards
JK
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin