Commit f9851ce4 authored by Faezeh KHORRAM's avatar Faezeh KHORRAM 💬
Browse files

If event parameters cannot be set, the test case result is inconclusive

parent 55a7d8d8
......@@ -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
}
......
......@@ -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)
......
Supports Markdown
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