Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » Matching operation and Logger(TTCN-3 match Logger)
Matching operation and Logger [message #1791768] Thu, 05 July 2018 03:02 Go to next message
Eclipse UserFriend
Dear All,

I'm trying to get some log on TTCN-3 match() operation>
I set the following flags:
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING


But I have no logs. According to the document, MATCHING is only for receive operation. Is it correct?

Many thanks for your help,

Yann
Re: Matching operation and Logger [message #1791770 is a reply to message #1791768] Thu, 05 July 2018 03:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi
MATCHING, is for receive operations indeed;
when you say "I have no logs" you mean you have no logs at all, or you don't see matching in the logs at all?


BR

Elemer
Re: Matching operation and Logger [message #1791773 is a reply to message #1791770] Thu, 05 July 2018 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yann,

if I'm not mistaken, MATCHING should also display the result for a log(match( )) operation ; it could be a quick way to try it.

BR

Elemer
Re: Matching operation and Logger [message #1791774 is a reply to message #1791773] Thu, 05 July 2018 03:20 Go to previous messageGo to next message
Eclipse UserFriend
Hello Elemer,

Indeed, I have no log about the matching operation itself (e.g. in case of mismatch, or match...).

Thanks a lot.

Yann
Re: Matching operation and Logger [message #1791775 is a reply to message #1791774] Thu, 05 July 2018 03:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yann,

can you send me the logs, please?

BR

Elemer
Re: Matching operation and Logger [message #1791777 is a reply to message #1791775] Thu, 05 July 2018 03:58 Go to previous messageGo to next message
Eclipse UserFriend
Hello Elemer,

Please find attached the log file.
The match operation logs should appear just before line 1304 which my log in case of mismatch.

In addition, there are some suspicious warning (Warning: While XER-decoding type...While checking end tag: Bad XML tag). I think they come from the XSD to TTCN-3 conversion (see my previous thread Issues with xsd2ttcn).

Thanks again for your help,

Yann
Re: Matching operation and Logger [message #1791779 is a reply to message #1791777] Thu, 05 July 2018 04:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yann,

OK, and what's the code around this log line 1304?


BR
Elemer
Re: Matching operation and Logger [message #1791782 is a reply to message #1791779] Thu, 05 July 2018 04:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Elemer,

This is a match() operation with a mismatch result expected:
if (match(v_circle, mw_circle)) {
// pass
} else {
// fail
}


Thanks,

Yann
Re: Matching operation and Logger [message #1791783 is a reply to message #1791782] Thu, 05 July 2018 04:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yann,


OK, this is not supposed to trigger a detailed match analysis ; MATCHING is for a receive operation , as we established before;

If you want to see details of why it's not matching , you should use log(match( )), for example:

if (match(v_circle, mw_circle)) {
// pass
} else {
log( (match(v_circle, mw_circle)))
// fail
}



This will display details if there's no match.


I hope this helps

BR

Elemer
Re: Matching operation and Logger [message #1791784 is a reply to message #1791783] Thu, 05 July 2018 04:52 Go to previous messageGo to next message
Eclipse UserFriend
You can also use Matching Hints, see refguide:

7.2.15 MatchingHints
Option MatchingHints controls the amount and format of log messages describing template matching failures. These are written during port receive operations as logging category MATCHING, and as a response to TTCN-3 log(match(...)) statements as logging category USER.
There are two possible values: Compact and Detailed.
When the Detailed option is in effect, a field-by-field description of the value and template is logged, followed by additional hints when matching set-of types.


BR
Elemer
Re: Matching operation and Logger [message #1791785 is a reply to message #1791784] Thu, 05 July 2018 05:07 Go to previous message
Eclipse UserFriend
Hi Elemer,

Thanks, I'm going to try it and I'll come back to you.

Best Regards
Yann
Previous Topic:decvalue_unichar and decmatch support
Next Topic:Eclipse Titan CRL 113 200/6 R4A release notification
Goto Forum:
  


Current Time: Wed Jul 23 08:35:21 EDT 2025

Powered by FUDForum. Page generated in 0.20604 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top