Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
naomod
faezeh-public
XTDL
Commits
f9851ce4
Commit
f9851ce4
authored
May 06, 2022
by
Faezeh KHORRAM
💬
Browse files
If event parameters cannot be set, the test case result is inconclusive
parent
55a7d8d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
org.imt.k3tdl.tdlInterpreter/src/org/imt/k3tdl/k3dsa/k3tdlBehaviourAspects.xtend
View file @
f9851ce4
...
...
@@ -242,6 +242,10 @@ class MessageAspect extends InteractoinAspect{
result
=
TDLTestResultUtil
.
FAIL
_self
.
parentTestDescription
.
testCaseResult
.
value
=
TDLTestResultUtil
.
FAIL
}
else
if
(
info
.
contains
(
TDLTestResultUtil
.
INCONCLUSIVE
)){
result
=
TDLTestResultUtil
.
INCONCLUSIVE
_self
.
parentTestDescription
.
testCaseResult
.
value
=
TDLTestResultUtil
.
INCONCLUSIVE
}
else
if
(
info
.
contains
(
TDLTestResultUtil
.
PASS
)){
result
=
TDLTestResultUtil
.
PASS
}
...
...
org.imt.k3tdl.tdlInterpreter/src/org/imt/k3tdl/k3dsa/k3tdlConfigurationAspects.xtend
View file @
f9851ce4
...
...
@@ -94,7 +94,7 @@ class GateInstanceAspect {
//
the
message
is
an
event
conforming
to
the
behavioral
interface
of
the
DSL
val
eventParameters
=
_self
.
getEventParameters
(
arg
,
EXPOSED_EVENT
)
if
(
eventParameters
===
null
){
return
TDLTestResultUtil
.
FAIL
+
": The event parameters cannot be neither found in the model under test nor created.
\n
"
+
return
TDLTestResultUtil
.
INCONCLUSIVE
+
": The event parameters cannot be neither found in the model under test nor created.
\n
"
+
"There must be a syntactical problem in the test data"
}
return
_self
.
gateLauncher
.
executeDSLSpecificCommand
(
EXPOSED_EVENT
,
arg
.
dataInstance
.
validName
,
eventParameters
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment