Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » [Titan test results view] : empty reason(How to fill the view with reason from sub components)
[Titan test results view] : empty reason [message #1795767] Fri, 28 September 2018 08:37 Go to next message
Xavier ZeitounFriend
Messages: 23
Registered: April 2016
Location: CEA LIST, Paris Saclay, F...
Junior Member
Dear Titan community,

I am developping distributed Tests that sometimes fail (hence as a test developper i am happy ! ).
But on these failure, the test reason slot in test result view is empty and when test fail I estimate that saying a little something about why could be helpful in the view.

I suspect this comes from the fact that the reason is filled on the a sub component and not on mtc. Is there a way to reassemble reason of subcomponents in order to reassemble reason on MTC ?

Thanks,
Best regards,
Xavier
Re: [Titan test results view] : empty reason [message #1795775 is a reply to message #1795767] Fri, 28 September 2018 12:01 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 78
Registered: September 2013
Location: Budapest, Hungary
Member

Hi Xavier,

if the testcase contains lines with setverdict with verdict pass or fail and contains reason, like this:
testcase tc_HelloW() runs on MTCType system MTCType
{
map(mtc:MyPCO_PT, system:MyPCO_PT);
MyPCO_PT.send("Hello, world!");
setverdict(pass,"This test was successful");
}

then the TITAN test result should contain result like the attached snapshot.
index.php/fa/33965/0/
It has been tested for titan 6.4.0.

1. What is your titan version?
2. Is there any reason in the setverdict?
3. What is in the log file?

Waiting your answer
Jeno Balasko, Titan Team, Ericsson

[Updated on: Fri, 28 September 2018 12:06]

Report message to a moderator

Re: [Titan test results view] : empty reason [message #1795776 is a reply to message #1795775] Fri, 28 September 2018 12:43 Go to previous messageGo to next message
Xavier ZeitounFriend
Messages: 23
Registered: April 2016
Location: CEA LIST, Paris Saclay, F...
Junior Member
Hi Jeno,

thanks for your quickReply.
I use titan version 6.3. I put the logs in attachement.
My use case is a bit more intricate. The verdict and reason is set on a sub component such as in example below :

// TTCN-3 version of "Hello, world!"
module MyExample
{
type port PCOType message
{
inout charstring;
}

type component PCO_CT
{
port PCOType MyPCO_PT;
}

type component MTCType{
var PCO_CT pcoComponent;
}

function f_helloWorld() runs on PCO_CT{
MyPCO_PT.send("Hello, world!");
setverdict(pass,"here is my reason on PCO_CT");
}


testcase tc_HelloW() runs on MTCType system PCO_CT
{
pcoComponent := PCO_CT.create("MyPCOComp") alive;
map(pcoComponent:MyPCO_PT, system:MyPCO_PT);
pcoComponent.start(f_helloWorld());
pcoComponent.done;
}

control
{
execute(tc_HelloW());
}
}

Re: [Titan test results view] : empty reason [message #1795897 is a reply to message #1795776] Tue, 02 October 2018 06:17 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 78
Registered: September 2013
Location: Budapest, Hungary
Member

Hi Xavier,

I downloaded your example and I'm going to test and fix it. I send my feedback soon.

Jeno
Re: [Titan test results view] : empty reason [message #1795927 is a reply to message #1795897] Tue, 02 October 2018 13:40 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 78
Registered: September 2013
Location: Budapest, Hungary
Member

It was a bug. It was fixed today. See:
https://github.com/eclipse/titan.core/commit/95c0ad9dfcf8ee3a4643f59125db24a227355931
It will be delivered in the next titan release, CRL 113 200/6 R5A.

Thank you for your cooperation.
BR
Jeno
Re: [Titan test results view] : empty reason [message #1795931 is a reply to message #1795927] Tue, 02 October 2018 13:54 Go to previous messageGo to next message
Xavier ZeitounFriend
Messages: 23
Registered: April 2016
Location: CEA LIST, Paris Saclay, F...
Junior Member
Thanks for having it corrected,

Best regards,
Xavier
Re: [Titan test results view] : empty reason [message #1795940 is a reply to message #1795931] Tue, 02 October 2018 15:11 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1063
Registered: January 2015
Senior Member
Hi Xavier,

if you download the latest source code from github and build a binary for your platform,
you don't have to wait for the release.

BR
Elemer
Previous Topic:Timer not started in the context.
Next Topic:Change value of module parameters during tests execution.
Goto Forum:
  


Current Time: Fri Jul 10 13:00:36 GMT 2020

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

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

Back to the top