Uml Testing Profile - ValidationAction [message #1236440] |
Mon, 27 January 2014 08:16 |
Joe I Messages: 28 Registered: May 2013 |
Junior Member |
|
|
Hello,
I would like to use the stereotype ValidationAction from the utp specification, but I have some troubles specifying a CallOperationAction.
ValidationAction is an extension of CallOperationAction with following constraints:
[ 1 ] The operation of the action must be the setVerdict operation from the arbiter interface.
[ 2 ] The target of the action must refer to a classifier realizing the arbiter interface.
[ 3 ] The argument of the action must be an expression evaluating to a Verdict literal.
[ 4 ] Validation actions can only be used in test cases (i.e., a behavior where «TestCase» is applied to the behavior or its specification).
I did the following:
.)Added a new sequence diagram and applied the stereotype TestCase
.)Added a lifeline and created an ActionExecutionSpecification
.)Set the action of the ActionExecutionSpecification with a new CallOperationAction
.)Applied the stereotype ValidationAction on the new CallOperationACtion
Inside the CallOperationAction:
.)Set the operation with the setVerdict operation from the arbiter interface (Constraint 1)
.)Created for the target a new InputPin and set type with a class realizing the arbiter interface (Constraint 2)
.)Added a ValuePin (containing an expression) to the argument section (Constraint 3)
-> But after I hit ok, Papyrus changes all CallOperation settings:
-)The target is changed to a InputPin, which type is the Arbiter interface and not the class realizing the interface
-)The ValuePin in the argument section is replaced with an InputPin, which type is a Verdict, but the expression, containing which verdict I want to set is lost...
Is this a bug or am I misinterpreting how to correctly set the CallOperationAction?
Thanks in advance!
Regards,
Joe
[Updated on: Mon, 27 January 2014 08:20] Report message to a moderator
|
|
|
Re: Uml Testing Profile - ValidationAction [message #1239681 is a reply to message #1236440] |
Tue, 04 February 2014 19:54 |
|
Hi, Karl,
I would call that a bug. It's OK for a tool to set up a default
CallOperationAction structure, but not to replace elements that you
went out of your way to configure, yourself.
Cheers,
Christian
On 2014-01-27 08:16:35 +0000, Joe I said:
> Hello,
>
> I would like to use the stereotype ValidationAction from the utp
> specification, but I have some troubles specifying a
> CallOperationAction.
>
> ValidationAction is an extension of CallOperationAction with following
> constraints:
> [ 1 ] The operation of the action must be the setVerdict operation from
> the arbiter interface.
> [ 2 ] The target of the action must refer to a classifier realizing the
> arbiter interface.
> [ 3 ] The argument of the action must be an expression evaluating to a
> Verdict literal.
> [ 4 ] Validation actions can only be used in test cases (i.e., a
> behavior where «TestCase» is applied to the behavior or its
> specification).
>
> I did the following:
> )Added a new sequence diagram and applied the stereotype TestCase
> )Added a lifeline and created an ActionExecutionSpecification
> )Set the action of the ActionExecutionSpecification with a new
> CallOperationAction
> )Applied the stereotype ValidationAction on the new CallOperationACtion
> Inside the CallOperationAction:
> )Set the operation with the setVerdict operation from the arbiter
> interface (Constraint 1)
> )Created for the target a new InputPin and set type with a class
> realizing the arbiter interface (Constraint 2)
> )Added a ValuePin (containing an expression) to the argument section
> (Constraint 3)
>
> -> But after I hit ok, Papyrus changes all CallOperation settings:
> -)The target is changed to a InputPin, which type is the Arbiter
> interface and not the class realizing the interface
> -)The ValuePin in the argument section is replaced with an InputPin,
> which type is a Verdict, but the expression, containing which verdict I
> want to set is lost...
>
> Is this a bug or am I misinterpreting how to correctly set the
> CallOperationAction?
>
> Thanks in advance!
>
> Regards,
> Karl
|
|
|
|
Powered by
FUDForum. Page generated in 0.03126 seconds