Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Instructions to upload OMG UML Testing Profile ver.1.1(Step to use UTP in Eclipse)
icon10.gif  Instructions to upload OMG UML Testing Profile ver.1.1 [message #1005348] Thu, 24 January 2013 19:24 Go to next message
Mohamed Mussa is currently offline Mohamed Mussa
Messages: 43
Registered: August 2010
Location: Canada
Member
Instructions to upload OMG UML Testing Profile ver.1.1

1) change the file extension from "xmi" to "uml"

2) change th follow lines:

2.1) xmlns:uml="http://www.omg.org/spec/UML/20090901"
this is a UML 2.3 which is not supported by Eclipse to any other version such as
xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML"

2.2) xmlns:StandardProfileL2="http://schema.omg.org/spec/UML/2.3/StandardProfileL2.xmi
to (or change the UML version)
xmlns:StandardProfileL2="http://schema.omg.org/spec/UML/2.4/StandardProfileL2.xmi

2.3) xmlns:StandardProfileL3="http://schema.omg.org/spec/UML/2.3/StandardProfileL3.xmi
to (or change the UML version)
xmlns:StandardProfileL3="http://schema.omg.org/spec/UML/2.4/StandardProfileL3.xmi


3) Use Find & ReplaceAll for the following string

3.1) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#Boolean"
Replace with: "pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"

3.2) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#UnlimitedNatural"
Replace with: "pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#UnlimitedNatural"

3.3) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#String"
Replace with: "pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"

3.4) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#"
Replace with: "pathmap://UML_METAMODELS/UML.metamodel.uml#"


4) Go to the "Verdict" definition

4.1) Delete all lines that ref. the "ownedLiterals" to their parent
the line should look like this one
"<classifier xmi:idref="_17_0_12b803b5_1294135628266_970892_1970"/>"

5) Add the content of tag "<xmi:XMI >" (second tag, line 2) to tag "<uml:Profile"
Then delete the xmi tags (3 tags including the closing @ the end of the file)

6) Or you can download the attached file (OMG UTP ver.1.1)

Validate, Define and Enjoy!

Mohamed
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1005546 is a reply to message #1005348] Sat, 26 January 2013 08:02 Go to previous messageGo to next message
Eclipse User
Hi Mohamed,

good to see that UTP is being used and obviously requested. Since I'm head
of the UTP RTF at OMG I'm curious. For what reason did you post the message
and the profile?

Also be aware that UTP 1.1 is already outdated and replaced by v1.2. See
http://www.omg.org/spec/UTP.

Please also note that there is a pending proposal for a centralized
repository for UML profiles. It will, of course, offer the latest version of
UTP as well (i.e., UTP 1.2) once it has been set up.
(http://wiki.eclipse.org/UML2_Profiles_Proposal)

Regards,
Marc-Florian

"Mohamed Mussa" schrieb im Newsbeitrag
news:kdsjbb$e1g$1@xxxxxxxxe.org...

Instructions to upload OMG UML Testing Profile ver.1.1

1) change the file extension from "xmi" to "uml"

2) change th follow lines:

2.1) xmlns:uml="http://www.omg.org/spec/UML/20090901"
this is a UML 2.3 which is not supported by Eclipse to any other version
such as
xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML"

2.2)
xmlns:StandardProfileL2="http://schema.omg.org/spec/UML/2.3/StandardProfileL2.xmi
to (or change the UML version)
xmlns:StandardProfileL2="http://schema.omg.org/spec/UML/2.4/StandardProfileL2.xmi

2.3)
xmlns:StandardProfileL3="http://schema.omg.org/spec/UML/2.3/StandardProfileL3.xmi
to (or change the UML version)
xmlns:StandardProfileL3="http://schema.omg.org/spec/UML/2.4/StandardProfileL3.xmi


3) Use Find & ReplaceAll for the following string

3.1) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#Boolean"
Replace with:
"pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"

3.2) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#UnlimitedNatural"
Replace with:
"pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#UnlimitedNatural"

3.3) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#String"
Replace with:
"pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"

3.4) Find: "http://www.omg.org/spec/UML/20090901/uml.xml#"
Replace with: "pathmap://UML_METAMODELS/UML.metamodel.uml#"


4) Go to the "Verdict" definition

4.1) Delete all lines that ref. the "ownedLiterals" to their parent
the line should look like this one
"<classifier xmi:idref="_17_0_12b803b5_1294135628266_970892_1970"/>"

5) Add the content of tag "<xmi:XMI >" (second tag, line 2) to tag
"<uml:Profile"
Then delete the xmi tags (3 tags including the closing @ the end of the
file)

6) Or you can download the attached file (OMG UTP ver.1.1)

Validate, Define and Enjoy!

Mohamed
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1005966 is a reply to message #1005546] Tue, 29 January 2013 07:27 Go to previous messageGo to next message
Mohamed Mussa is currently offline Mohamed Mussa
Messages: 43
Registered: August 2010
Location: Canada
Member
Hi Marc-Florian,

Thanks for your information.

"For what reason did you post the message and the profile?"

There are many posts complaining about using omg's xmi of the UTP in their projects, and many had debated the creation of the profile from scratch from the specification which I did two yrs ago.

recently, I worked on importing the profile from OMG website to stick with the standard on my reseach, and I shared my results with the others.

By the way, since U R from the UTP RTF:

I can not apply UTP stereotypes on UML lifelines, while the given examples in the UTP (1.0/1.1) specification illustrates that.
When I try to apply UTP stereotype to lifeline, I get none listed on the popup window!
I had modified the UTP to extend the desired stereotypes to UML!NamedElement.


Yours,

Mohamed
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1006178 is a reply to message #1005966] Wed, 30 January 2013 06:13 Go to previous messageGo to next message
Eclipse User
Hi Mohamed,

> There are many posts complaining about using omg's xmi of the UTP in their
> projects, and many had debated the creation >of the profile from scratch
> from the specification which I did two yrs ago.

Interesting... where have these posts been posted? I'm getting more and more
curious :-)

> I can not apply UTP stereotypes on UML lifelines, while the given examples
> in the UTP (1.0/1.1) specification illustrates >that. When I try to apply
> UTP stereotype to lifeline, I get none listed on the popup window!
> I had modified the UTP to extend the desired stereotypes to
> UML!NamedElement.

Well, this is the worst solution ever, I'd say. I know that these
illustrations you mentioned might confuse people. Actually, the stereotypes
on lifelines represent stereotypes on the ConnectableElement the lifeline
represents (in case of SUT) or the type of the ConnectableElement (in case
of TestComponent). I would not recommend widening the stereotype to
NamedElement just for illustration purposes; this is not helpful at all.
Visual representation is up to the modeling environment you use; I would not
compromise the idea of profiles (having DSLs) for the sake of adequate
illustration. Finally, it's the abstract syntax of a profile that determines
on what metaclass you can apply a stereotype to, not the figures in the
specification.

In general, I recommend UML2 users, who wants to use profiles in the future,
waiting for the UML Profiles Repository being established. As a first shot,
we will host

- UTP
- SysML
- MARTE
- SoaML
(- BPMN)

We hope to further foster interoperability of models within the Eclipse UML2
ecosystem.

Regards,
Marc-Florian

"Mohamed Mussa" schrieb im Newsbeitrag
news:ke8f7q$8c4$1@xxxxxxxxe.org...

Hi Marc-Florian,

Thanks for your information.

"For what reason did you post the message and the profile?"

There are many posts complaining about using omg's xmi of the UTP in their
projects, and many had debated the creation of the profile from scratch from
the specification which I did two yrs ago.

recently, I worked on importing the profile from OMG website to stick with
the standard on my reseach, and I shared my results with the others.

By the way, since U R from the UTP RTF:

I can not apply UTP stereotypes on UML lifelines, while the given examples
in the UTP (1.0/1.1) specification illustrates that.
When I try to apply UTP stereotype to lifeline, I get none listed on the
popup window!
I had modified the UTP to extend the desired stereotypes to
UML!NamedElement.


Yours,

Mohamed
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1060469 is a reply to message #1005348] Fri, 24 May 2013 18:46 Go to previous messageGo to next message
Joe I is currently offline Joe I
Messages: 28
Registered: May 2013
Junior Member
Hello,

first of all thanks for sharing the profile.

My question is how can I use Verdict and Timer in Papyrus? (I know for what they are good for, but I don't know how i apply them on an element)

In utp 1.2 they are in a own model and file which seems to be much easier to use - but I couldn't find any implemented version which can be loaded by Papyrus...
So does anybody have a working utp1.2 .uml version he would like to share?

Thanks in advance for answering one of my two questions!
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1060476 is a reply to message #1060469] Sat, 25 May 2013 02:23 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3840
Registered: July 2009
Senior Member
HI

You may get on better asking Papyrus question on the Papyrus
newsgroup/forum.

I know nothing about UTP but aren't Verdict and Timer just the same as
as any other Stereotype?

Regards

Ed Willink

On 24/05/2013 23:46, Joe I wrote:
> Hello,
>
> first of all thanks for sharing the profile.
>
> My question is how can I use Verdict and Timer in Papyrus? (I know for
> what they are good for, but I don't know how i apply them on an element)
>
> In utp 1.2 they are in a own model and file which seems to be much
> easier to use - but I couldn't find any implemented version which can
> be loaded by Papyrus... So does anybody have a working utp1.2 .uml
> version he would like to share?
> Thanks in advance for answering one of my two questions!
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1060518 is a reply to message #1060476] Sat, 25 May 2013 18:24 Go to previous messageGo to next message
Joe I is currently offline Joe I
Messages: 28
Registered: May 2013
Junior Member
Sorry, of course you are right, wrong newsgroup.
And yes they are the same as other stereotypes... I figured out how to use them...
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1102053 is a reply to message #1060518] Thu, 05 September 2013 05:41 Go to previous messageGo to next message
Federico Toledo is currently offline Federico Toledo
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
mm I think they are interfaces, not stereotypes. Right?
Re: Instructions to upload OMG UML Testing Profile ver.1.1 [message #1102183 is a reply to message #1102053] Thu, 05 September 2013 09:32 Go to previous message
Joe I is currently offline Joe I
Messages: 28
Registered: May 2013
Junior Member
Yes, so they should be like any other interface and Enumeration Smile
Previous Topic:Extract a Subset of Communication Diagram
Next Topic:Package Merge Observation when using Stereotypes/Enumerations
Goto Forum:
  


Current Time: Wed Apr 16 09:43:49 EDT 2014

Powered by FUDForum. Page generated in 0.02534 seconds