Commit 5ca962c1 authored by balaskoa's avatar balaskoa
Browse files

New testcases have been mapped from titan.core 6


Signed-off-by: default avatarbalaskoa <Jeno.Balasko@ericsson.com>
parent 530dd4cf
[EXECUTE]
TcommMessage.commMessageDualFacedPorts1
TcommMessage.commMessageDualFacedPorts2
TconfigOper.InterleaveStatem1
TconfigOper.InterleaveStatem2
TconfigOper.InterleaveStatem3
TconfigOper.InterleaveStatem4
TconfigOper.InterleaveStatem5
[ORDERED_INCLUDE]
[MAIN_CONTROLLER]
# The options herein control the behavior of MC.
TCPPort := 7339
#KillTimer := 10.0
NumHCs := 1
# LocalAddress :=
[LOGGING]
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).
LogFile := "logs/%e.%h-%r_parallel.%s"
FileMask := LOG_ALL #|TESTCASE | STATISTICS #|LOG_ALL #| DEBUG | MATCHING
ConsoleMask := ERROR | WARNING | TESTCASE | STATISTICS #| PORTEVENT | USER
AppendFile := No
TimeStampFormat := Time
LogEventTypes := No
SourceInfoFormat := Single
LogEntityName := Yes
\ No newline at end of file
......@@ -4,23 +4,29 @@
# - running in parallel mode with passed result
# Not compilable or not runnable tests are excluded from the project.
# Test running only in single mode are collected separately.
# Status: 120 pass, 0 error (erroneous test are commented out)
#TODO: put the wrong tests to another cfg file!
[MODULE_PARAMETERS]
# This section shall contain the values of all parameters that are defined in your TTCN-3 modules.
[EXECUTE]
#==acceptance_test:
testerlanc # exec time: 40sec
#testerlanc # exec time: 40sec
#any_from:
any_from #only in parallel
any_from #only in parallel, 16 pass
#checkstate:
PortCheckstate.control #only in parallel
PortCheckstate.control #only in parallel, 3 pass
#commMessage:
TcommMessage.control #ok, only in parallel
HS41022.control #ok, only in parallel
TcommMessage.control #only in parallel, 39 pass, 2 tc commented out TODO: repair these two tc in TcommMessage !
HS41022.control #only in parallel, 2pass
#commProcedure:
#AdvancedRedirects.control #TODO: contains java sem errors in the generated code !
#test ports required!
ProcPort.control #only in parallel
ProcPort.control #only in parallel, 14 pass
#configOper:
TconfigOper.control #parallel 43 pass, 5 tc commented ot(3 fail, 1 error) #TODO: implement the excluded interleave testcases
#connectMapOperNegTest
ConnectMapOperNegTest #parallel ok 3 pass
[ORDERED_INCLUDE]
......
......@@ -83,6 +83,16 @@ TboolOper.control
#test ports required!
#ProcPort.control #only in parallel
#compileonly - not copied!
#configOper #par
#TconfigOper.control #parallel #TODO: implement the excluded interleave testcases
#connectMapOperNegTest
#ConnectMapOperNegTest #parallel ok 3 pass
TcontrolTimer
#CRTR00015758:
#no.control
#customEncoding: not implemented codings!
#json (There are testcases commented out in it!! In preinit of JsonTypes it stops with exception)
#AttributeTestcases.control
#JsonTestcases.control
......@@ -165,7 +175,6 @@ TbasicStatem.control
TtemplateChar.control
#tryCatch_Functions.control
TtemplateBool.control
TcontrolTimer.control
TrecofOper.control
SelectUnion.control
TtemplateEnum.control
......
......@@ -1623,8 +1623,8 @@ control {
execute(commMessageArray());
execute(commMessageInterPTCLocalConnection1());
execute(commMessageInterPTCLocalConnection2());
execute(commMessageDualFacedPorts1());
execute(commMessageDualFacedPorts2());
//execute(commMessageDualFacedPorts1());
//execute(commMessageDualFacedPorts2());
execute(commMessageReceiveAnyOrOmit());
execute(commMessageBehaviorFunctionParams());
execute(tc_bug_532060());
......
This diff is collapsed.
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Szabo, Bence Janos
*
******************************************************************************/
module ConnectMapOperNegTest {
type port loopbackPort message {
inout integer
} with {extension "internal"}
type component GeneralComp {
port loopbackPort p1;
port loopbackPort p2;
}
type component System {
port loopbackPort p1;
port loopbackPort p2;
}
testcase tc_neg_connect_after_map() runs on GeneralComp system System {
map(self:p1, system:p1);
template charstring t_expected := pattern "*Dynamic test case error: Connect operation cannot be performed on a mapped port \(p1\).*"
@try {
connect(self:p1, self:p2);
setverdict(fail, "Connect operation succeeded. Expected error.");
}
@catch (msg) {
if (match(msg, t_expected)) {
setverdict(pass);
}
else {
setverdict(fail, "Incorrect error message received (receive test): ", msg);
}
}
setverdict(pass);
}
testcase tc_neg_connect_after_map2() runs on GeneralComp system System {
var GeneralComp v_comp := GeneralComp.create;
template charstring t_expected := pattern "*Dynamic test case error: Connect operation cannot be performed on a mapped port \(p1\).*"
map(self:p1, system:p1);
@try {
connect(self:p1, v_comp:p2);
setverdict(fail, "Connect operation succeeded. Expected error.");
}
@catch (msg) {
if (match(msg, t_expected)) {
setverdict(pass);
}
else {
setverdict(fail, "Incorrect error message received (receive test): ", msg);
}
}
setverdict(pass);
}
testcase tc_neg_map_after_connect() runs on GeneralComp system System {
var GeneralComp v_comp := GeneralComp.create;
template charstring t_expected := pattern "*Dynamic test case error: Map operation is not allowed on a connected port \(p1\)."
connect(self:p1, v_comp:p2);
@try {
map(self:p1, system:p1);
setverdict(fail, "Connect operation succeeded. Expected error.");
}
@catch (msg) {
if (match(msg, t_expected)) {
setverdict(pass);
}
else {
setverdict(fail, "Incorrect error message received (receive test): ", msg);
}
}
setverdict(pass);
}
control{
execute(tc_neg_connect_after_map());
execute(tc_neg_connect_after_map2());
execute(tc_neg_map_after_connect());
}
}
\ No newline at end of file
###############################################################################
# Copyright (c) 2000-2019 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Balasko, Jeno
# Szabo, Janos Zoltan – initial implementation
#
###############################################################################
[EXECUTE]
TcontrolTimer.control
package org.eclipse.titan.Regression_Test_java.user_provided;
import org.eclipse.titan.runtime.core.TitanPort;
public class configOper__port2 extends TitanPort {
public configOper__port2(String string) {
// TODO Auto-generated constructor stub
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment