Providing of reasons for a failing test [message #1746070] |
Fri, 21 October 2016 09:50 |
Johannes Bro 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 #1746076 is a reply to message #1746070] |
Fri, 21 October 2016 10:09 |
Gyorgy Rethy 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04578 seconds