Commit 56329c28 authored by Martti Käärik's avatar Martti Käärik
Browse files

Variable assignments can occur on Tester components only.

Change-Id: I7e359dabc80fd169f35de015f49f23676e014dbe
parent 6b8b1780
......@@ -91,7 +91,7 @@ public class CreateAction implements IExternalJavaAction {
case tdlPackage.ASSIGNMENT:
for (ComponentInstance c: new ModelHelper().getTestDescription(endPredecessor).getTestConfiguration().getComponentInstance()) {
if (c.getType().getVariable().contains(element)) {
if (c.getRole() == ComponentInstanceRole.TESTER && c.getType().getVariable().contains(element)) {
behaviour = (Behaviour) EcoreUtil.create((EClass) eClass);
VariableUse assignmentVarUse = tdlFactory.eINSTANCE.createVariableUse();
assignmentVarUse.setVariable((Variable) element);
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