Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Titan test results view] : empty reason
https://www.eclipse.org/forums/index.php/mv/msg/1095377/1795767/#msg_1795767
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 ]]>Xavier Zeitoun2018-09-28T08:37:14-00:00Re: [Titan test results view] : empty reason
https://www.eclipse.org/forums/index.php/mv/msg/1095377/1795775/#msg_1795775
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.
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
]]>Jeno Attila Balasko2018-09-28T12:01:32-00:00Re: [Titan test results view] : empty reason
https://www.eclipse.org/forums/index.php/mv/msg/1095377/1795776/#msg_1795776
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());
}
}
]]>Xavier Zeitoun2018-09-28T12:43:02-00:00Re: [Titan test results view] : empty reason
https://www.eclipse.org/forums/index.php/mv/msg/1095377/1795897/#msg_1795897
I downloaded your example and I'm going to test and fix it. I send my feedback soon.
Thank you for your cooperation.
BR
Jeno]]>Jeno Attila Balasko2018-10-02T13:40:00-00:00Re: [Titan test results view] : empty reason
https://www.eclipse.org/forums/index.php/mv/msg/1095377/1795931/#msg_1795931
Best regards,
Xavier]]>Xavier Zeitoun2018-10-02T13:54:11-00:00Re: [Titan test results view] : empty reason
https://www.eclipse.org/forums/index.php/mv/msg/1095377/1795940/#msg_1795940
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.