Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » Providing of reasons for a failing test
Providing of reasons for a failing test [message #1746070] Fri, 21 October 2016 05:50 Go to next message
Eclipse UserFriend
Hi,

if you execute the tests with the nice eclipse plug in there is a view called TITAN test results. All tests including the result of the execution is listed there. But there is an additional column for reasons. I'm asking me how to provide information there why a test was not successful ?

Thanks !

Johannes

[Updated on: Fri, 21 October 2016 05:51] by Moderator

Re: Providing of reasons for a failing test [message #1746074 is a reply to message #1746070] Fri, 21 October 2016 06:09 Go to previous messageGo to next message
Eclipse UserFriend
No Message Body

[Updated on: Fri, 21 October 2016 06:15] by Moderator

Re: Providing of reasons for a failing test [message #1746075 is a reply to message #1746070] Fri, 21 October 2016 06:09 Go to previous messageGo to next message
Eclipse UserFriend
No Message Body

[Updated on: Fri, 21 October 2016 06:12] by Moderator

Re: Providing of reasons for a failing test [message #1746076 is a reply to message #1746070] Fri, 21 October 2016 06:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Johannes,

in the TTCN-3 code, the setverdict statement may have several arguments: the first one is mandatory, this is the verdict itself, any further ones are optional, these will compose the reason:
setverdict(fail, "Error while registering application; received: ", v_myStoredMessage.responseCode);

The 2nd and further arguments are processed the same way as the argument list of the log statement.

Note that when the actual verdict is overwritten, the actual reason is overwritten as well, so the reason of fail will overwrite the reason of a previous pass, but not vice versa. Also in case of fail the first fail's reason will be the final fail reason (unless fail itself is overwritten by a test case error later).

György
Re: Providing of reasons for a failing test [message #1746077 is a reply to message #1746070] Fri, 21 October 2016 06:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi Johannes,

Setting a reason is pretty straightforward. Usually you have, for example:

setverdict(pass);


But if you add a second parameter string, it will be shown in the reason field.

setverdict(pass, "Message to show.");


Best regards,
Naum
Re: Providing of reasons for a failing test [message #1746392 is a reply to message #1746077] Fri, 28 October 2016 01:25 Go to previous message
Eclipse UserFriend
Thats great, thanks a lot !
Previous Topic: Titanized ETSI ITS Test suites: Critical bug fixed in JAVA files
Next Topic:Titanium: support for improving test quality.
Goto Forum:
  


Current Time: Thu Jul 17 05:50:25 EDT 2025

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

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

Back to the top