Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
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 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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 #1007382 is a reply to message #1007380] Tue, 05 February 2013 16:53 Go to previous messageGo to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
I'm using Juno, with UML 2.4
last stable version of each component

Re: Stereotype applicable to different elements [message #1007390 is a reply to message #1007382] Tue, 05 February 2013 17:19 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Your earlier comments suggested that you had a simple example that failed.

If you make that example available, it may be possible to comment on it.

Regards

Ed Willink

On 05/02/2013 16:53, Federico Toledo wrote:
> I'm using Juno, with UML 2.4
> last stable version of each component
>
>
Re: Stereotype applicable to different elements [message #1007393 is a reply to message #1007390] Tue, 05 February 2013 17:38 Go to previous messageGo to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
I've tried to prepare a very simple example.

index.php/fa/13298/0/

In the image dont pay attention to "arbiter" issue, I'm more interested in the other two.

Try to open the attached uml file and validate it (right click on the model, validate option).

Thks!
  • Attachment: 1.png
    (Size: 64.01KB, Downloaded 746 times)
  • Attachment: ajaxSample_test.uml
    (Size: 5.37KB, Downloaded 356 times)
Re: Stereotype applicable to different elements [message #1007405 is a reply to message #1007393] Tue, 05 February 2013 18:29 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I don't have UTP so validation is a disaster.

Look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=321461 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=287010 and you'll see that
you are not the only one having problems. They're potentially OMG bugs.

Regards

Ed Willink

On 05/02/2013 17:38, Federico Toledo wrote:
> I've tried to prepare a very simple example.
>
>
>
> In the image dont pay attention to "arbiter" issue, I'm more interested in the other two.
>
> Try to open the attached uml file and validate it (right click on the model, validate option).
>
> Thks!
Re: Stereotype applicable to different elements [message #1007418 is a reply to message #1007405] Tue, 05 February 2013 19:09 Go to previous messageGo to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
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!
  • Attachment: utp.uml
    (Size: 78.58KB, Downloaded 366 times)
Re: Stereotype applicable to different elements [message #1007679 is a reply to message #1007418] Thu, 07 February 2013 04:45 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
This is a case where UML2 is attempting to be a faithful implementation
of the specification, but the specification is flawed. I hope that it is
fixed in a future version of UML (2.5?)...

Kenn

On 13-02-05 2:09 PM, Federico Toledo wrote:
> 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 #1007688 is a reply to message #1007679] Thu, 07 February 2013 06:34 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
On 07/02/2013 04:45, Kenn Hussey wrote:
> This is a case where UML2 is attempting to be a faithful
> implementation of the specification, but the specification is flawed.
> I hope that it is fixed in a future version of UML (2.5?)...
UML 2.5 is unlikely to fix this since the metamodel is not supposed to
change, but perhaps this will be recognised as one of the areas where
the 2.4 specification is untrnable and so a change can be made.

Regards

Ed Willink
Re: Stereotype applicable to different elements [message #1007798 is a reply to message #1007418] Thu, 07 February 2013 14:13 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
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 #1007996 is a reply to message #1007688] Thu, 07 February 2013 17:54 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Yeah, I would be willing to change UML2 in advance of a fix from the
OMG. I'll add this to the list for Kelper.

Kenn

On 13-02-07 1:34 AM, Ed Willink wrote:
> On 07/02/2013 04:45, Kenn Hussey wrote:
>> This is a case where UML2 is attempting to be a faithful
>> implementation of the specification, but the specification is flawed.
>> I hope that it is fixed in a future version of UML (2.5?)...
> UML 2.5 is unlikely to fix this since the metamodel is not supposed to
> change, but perhaps this will be recognised as one of the areas where
> the 2.4 specification is untrnable and so a change can be made.
>
> Regards
>
> Ed Willink
Re: Stereotype applicable to different elements [message #1007997 is a reply to message #1007800] Thu, 07 February 2013 23:24 Go to previous messageGo to next message
Eclipse UserFriend
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 #1008029 is a reply to message #1007418] Fri, 08 February 2013 15:13 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Frederico,

Could you please open a new bug about this for UML2?

Thanks,

Kenn

On 13-02-05 2:09 PM, Federico Toledo wrote:
> 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 #1008390 is a reply to message #1008029] Tue, 12 February 2013 09:52 Go to previous messageGo to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
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
Re: Stereotype applicable to different elements [message #1008575 is a reply to message #1008390] Wed, 13 February 2013 07:16 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Stereotype applicable to different elements [message #1008578 is a reply to message #1008575] Wed, 13 February 2013 07:28 Go to previous message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
ok! got it
please, just let me know when you publish this, and I'll test it in my project
bye!
Previous Topic:Get All Stereotype of Element ( getAppliedStereotypes )
Next Topic:CacheAdapter performance issue
Goto Forum:
  


Current Time: Wed Apr 24 13:41:26 GMT 2024

Powered by FUDForum. Page generated in 0.04437 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top