Home » Modeling » UML2 » Stereotype applicable to different elements(Problem with the validation of a model with the profile and stereotypes applied)
Stereotype applicable to different elements [message #1007366] |
Tue, 05 February 2013 16:06 |
|
Hi,
I am using the UML Testing Profile. There is a stereotype "Test Case" that can be applied to "operations" and "behavior diagrams" (state machines, sequence diagrams, etc). So, the stereotype has two extensions, therefore, two properties to associate the element to be applied:
.- base_Operation
.- base_Behavior
If I apply the profile to a model and then I apply the stereotype "Test Case" to an operation, I get an error if I "validate" the model
"The required feature 'base_Behavior' of 'Test Case -> <<TestCase>> <Operation> operationName (parameters):Verdict' must be set."
I've looked for this in the forum, and I dont find the solution. I'm not sure if it is an error of my model (perhaps my profile is not well-defined, or used) or an error in the "validation" of Eclipse UML Model Editor or what....
Thank you in advance for any clue you can provide me
|
|
|
Re: Stereotype applicable to different elements [message #1007380 is a reply to message #1007366] |
Tue, 05 February 2013 16:47 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
HI
What version are you using.
My recollection is that there were some base_XXX validation issues a few
years ago.
Regards
Ed Willink
On 05/02/2013 16:06, Federico Toledo wrote:
> Hi,
> I am using the UML Testing Profile. There is a stereotype "Test Case"
> that can be applied to "operations" and "behavior diagrams" (state
> machines, sequence diagrams, etc). So, the stereotype has two
> extensions, therefore, two properties to associate the element to be
> applied: - base_Operation
> - base_Behavior
>
> If I apply the profile to a model and then I apply the stereotype
> "Test Case" to an operation, I get an error if I "validate" the model
>
> "The required feature 'base_Behavior' of 'Test Case -> <<TestCase>>
> <Operation> operationName (parameters):Verdict' must be set."
>
>
> I've looked for this in the forum, and I dont find the solution. I'm
> not sure if it is an error of my model (perhaps my profile is not
> well-defined, or used) or an error in the "validation" of Eclipse UML
> Model Editor or what....
> Thank you in advance for any clue you can provide me
|
|
| | | | | | | |
Re: Stereotype applicable to different elements [message #1007798 is a reply to message #1007418] |
Thu, 07 February 2013 14:13 |
Eclipse User |
|
|
|
Frederico,
my first idea was that you might have declared both extension of TestCase as
required, but this is not the case. So, there is nothing wrong (except
stereotype TestSuite that does not exist in UTP) with your profile.
By the why, let me commend you using UTP! I hope it'll become more and more
popular in the future.
Marc-Florian
"Federico Toledo" schrieb im Newsbeitrag
news:kerld1$k3v$1@xxxxxxxxe.org...
just in case you want to try with the utp profile, here is the uml file.
So, I have to live with that validation errors...
But, is it an implementation error, or is it a problem of UML?
thank you Ed!
|
|
|
Re: Stereotype applicable to different elements [message #1007800 is a reply to message #1007798] |
Thu, 07 February 2013 14:28 |
|
Marc-Florian, thank you, I hope so!
how can I set an extension as required or not? how could I indicate that at least one is required? because I think this is the problem....
I didnt understand what you said, because I was not talking about testSuite (and it is defined in the utp file I sent....)
thank you for your interest
|
|
| |
Re: Stereotype applicable to different elements [message #1007997 is a reply to message #1007800] |
Thu, 07 February 2013 23:24 |
Eclipse User |
|
|
|
Hi,
>I didnt understand what you said, because I was not talking about testSuite
>(and it is defined in the utp file I sent....)
Did not want to confuse you. I just wanted to say that testSuite is not
defined in UTP, and except that minor thing, your profile looks technically
good. Sorry for the confusion!
>how can I set an extension as required or not? how could I indicate that at
>least one is required?
You would need to set the ownedEnd of the Extension to mandatory, i.e.,
multiplicity of 1..1!
HTH
Marc-Florian
"Federico Toledo" schrieb im Newsbeitrag
news:kf0dlq$t2b$1@xxxxxxxxe.org...
Marc-Florian, thank you, I hope so!
how can I set an extension as required or not? how could I indicate that at
least one is required? because I think this is the problem....
I didnt understand what you said, because I was not talking about testSuite
(and it is defined in the utp file I sent....)
thank you for your interest
|
|
| | |
Re: Stereotype applicable to different elements [message #1008575 is a reply to message #1008390] |
Wed, 13 February 2013 07:16 |
Eclipse User |
|
|
|
Hi Frederico,
so, it was actually my fault, since I produced the OMG XMI. TestSuite should
not appear here, and it will not be part of UTP 1.2, which will be developed
rather soon. So, I recommend not using it.
Besides: The Eclipse UML profiles repository has been lately created by
Eclipse (http://wiki.eclipse.org/UML2_Profiles_Proposal) and is currently in
setup phase. I'm confident to provide a download area for UPR until end of
April. We will provide a static UTP 1.2 implementation as initial
contribution.
Regards,
Marc-Florian
"Federico Toledo" schrieb im Newsbeitrag
news:kfd3dk$6vb$1@xxxxxxxxe.org...
ok Kenn, I'll open a bug.
Marc-Florian, just to clarify, I didnt build the utp.uml file, I've just
downloaded the xmi file from here: http://www.omg.org/spec/UTP/1.1/ and then
I've adapted it to be uml2.4 compliant. If you see in the specification
there are two files, one has some optional components for test management,
where you can also find the concept Test Suite.
thank you for your time
|
|
| |
Goto Forum:
Current Time: Mon Sep 23 11:13:51 GMT 2024
Powered by FUDForum. Page generated in 0.06163 seconds
|