Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:50 Go to next message
Johannes Bro is currently offline Johannes BroFriend
Messages: 56
Registered: June 2015
Member
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 09:51]

Report message to a moderator

Re: Providing of reasons for a failing test [message #1746074 is a reply to message #1746070] Fri, 21 October 2016 10:09 Go to previous messageGo to next message
Gyorgy Rethy is currently offline Gyorgy RethyFriend
Messages: 31
Registered: April 2015
Member
No Message Body

[Updated on: Fri, 21 October 2016 10:15]

Report message to a moderator

Re: Providing of reasons for a failing test [message #1746075 is a reply to message #1746070] Fri, 21 October 2016 10:09 Go to previous messageGo to next message
Gyorgy Rethy is currently offline Gyorgy RethyFriend
Messages: 31
Registered: April 2015
Member
No Message Body

[Updated on: Fri, 21 October 2016 10:12]

Report message to a moderator

Re: Providing of reasons for a failing test [message #1746076 is a reply to message #1746070] Fri, 21 October 2016 10:09 Go to previous messageGo to next message
Gyorgy Rethy is currently offline Gyorgy RethyFriend
Messages: 31
Registered: April 2015
Member
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 10:10 Go to previous messageGo to next message
Naum Spaseski is currently offline Naum SpaseskiFriend
Messages: 81
Registered: February 2016
Location: Sophia Antipolis
Member

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 05:25 Go to previous message
Johannes Bro is currently offline Johannes BroFriend
Messages: 56
Registered: June 2015
Member
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 Mar 28 18:34:03 GMT 2024

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

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

Back to the top