Home » Archived » Test and Performance Tools Platform (TPTP) » Beginner question: creating diagrams using UML 2.0 Testing profile
| |
Re: Beginner question: creating diagrams using UML 2.0 Testing profile [message #142936 is a reply to message #142906] |
Mon, 29 June 2009 11:14 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Lars,
The TPTP Test Project implements the UML 2 Test Profile model used to
model our test artifacts, such as test suites, test cases, and datapools.
We use JET to generate the generator classes that generate JUnit test
classes from the test suite/case models (see
/org.eclipse.hyades.test.tools.core/src/org/eclipse/hyades/t est/tools/core/internal/java/codegen/GenTestSuite.java).
In your case, you could follow the same design as TPTP and model your
test cases/suites using the Test Profile model and model your execution
sequences (e.g. sequence diagrams) using the behavioral model. From these
models, you could write a JET template to generate any type of executable
test.
Paul
"Lars" <larsgj@hotmail.com> wrote in message
news:afb1b6f02d4f6b55e726b6296aec424b$1@www.eclipse.org...
> Hi all,
>
> More searching through the Eclipse forums lead me to a thread where the
> poster asks the same question as the one I'm interested in.
>
> http://dev.eclipse.org/newslists/news.eclipse.tptp/msg06957. html
>
> From what I can tell, it is therefore possible to do what I propose in the
> paragraph below?
>
>> Background: I'm attempting an experiment to generate test suites in a
>> text-based testing language (not JUnit or TTCN-3). My primary goal is to
>> be able to use the UML 2.0 Testing Profile and create sequence diagrams
>> specifying different test cases. TPTP seems to be the only (?) project
>> implementing the profile, which is why I'm asking here.
>
> <snip>
>
>> My hope is then to use JET to generate test code based on the the UML
>> diagrams.
>
> Is this a good idea, or should I consider something else to generate test
> code?
>
>> Are there any resources I should look at to get a better understanding of
>> how to achieve this?
>
> This question remains, especially tips on where to begin to create a very
> simple model with which to experiment.
>
>
> Cheers,
> /Lars
>
|
|
|
Re: Beginner question: creating diagrams using UML 2.0 Testing profile [message #142945 is a reply to message #142936] |
Mon, 29 June 2009 13:49 |
No real name Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hi Paul,
Thanks for your reply, I was hoping for something to that effect.
<snip>
> The TPTP Test Project implements the UML 2 Test Profile model used to
> model our test artifacts, such as test suites, test cases, and datapools.
<snip>
> In your case, you could follow the same design as TPTP and model your
> test cases/suites using the Test Profile model and model your execution
> sequences (e.g. sequence diagrams) using the behavioral model. From these
> models, you could write a JET template to generate any type of executable
> test.
OK, this is what I'll try to achieve when I have created a model that I
can transform.
<snip>
>>> Background: I'm attempting an experiment to generate test suites in a
>>> text-based testing language (not JUnit or TTCN-3). My primary goal is to
>>> be able to use the UML 2.0 Testing Profile and create sequence diagrams
>>> specifying different test cases. TPTP seems to be the only (?) project
>>> implementing the profile, which is why I'm asking here.
>>
<snip>
>>> Are there any resources I should look at to get a better understanding of
>>> how to achieve this?
>>
>> This question remains, especially tips on where to begin to create a very
>> simple model with which to experiment.
>>
This is now my main focus. Since I'm not interested in Java in particular,
but only in the UML 2.0 Testing Profile, I'm not quite sure where to begin
to create a model.
If I try to create a project using File -> New -> Other, and filter on
"test", I have the following options:
Java
-> JUnit
-> JUnit Test Case
-> JUnit Test Case
Test
-> Test Case
-> Test From Recording
-> TPTP JUnit Plug-in Test
-> TPTP JUnit Test
-> TPTP URL Test
None of these seem to fit what I want to do, namely to create a UML 2.0
model that uses the UML 2.0 Test Profile, without any connections to Java
or JUnit. It is possible that what I really want to do is create just a
UML 2.0 model and then somehow specify that it should follow the Test
Profile that the TPTP framework implements.
I would really like to keep my first examples/experiments as simple and
clean as possible.
Any help to push me in the right direction would be appreciated!
Thanks,
/Lars
|
|
|
Re: Beginner question: creating diagrams using UML 2.0 Testing profile [message #142986 is a reply to message #142945] |
Wed, 01 July 2009 10:15 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Lars,
TPTP does not provide any modeling tools to create your models. We use
EMF to generate our models
( http://www.eclipse.org/tptp/platform/documents/resources/mod els/index.htm)
from Rational Rose class diagrams:
http://www.eclipse.org/tptp/platform/documents/resources/mod els/TPTP_Model_Generation.html
You should start with a simple EMF tutorial:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/references/overview/EMF.html
http://wiki.eclipse.org/index.php/EMF/FAQ
Paul
"Lars" <larsgj@hotmail.com> wrote in message
news:92f4dc0babcfa2be97d3f4478e9b49a6$1@www.eclipse.org...
> Hi Paul,
>
> Thanks for your reply, I was hoping for something to that effect.
>
> <snip>
>
>> The TPTP Test Project implements the UML 2 Test Profile model used to
>> model our test artifacts, such as test suites, test cases, and datapools.
>
> <snip>
>
>> In your case, you could follow the same design as TPTP and model your
>> test cases/suites using the Test Profile model and model your execution
>> sequences (e.g. sequence diagrams) using the behavioral model. From
>> these models, you could write a JET template to generate any type of
>> executable test.
>
> OK, this is what I'll try to achieve when I have created a model that I
> can transform.
>
> <snip>
>
>>>> Background: I'm attempting an experiment to generate test suites in a
>>>> text-based testing language (not JUnit or TTCN-3). My primary goal is
>>>> to
>>>> be able to use the UML 2.0 Testing Profile and create sequence diagrams
>>>> specifying different test cases. TPTP seems to be the only (?) project
>>>> implementing the profile, which is why I'm asking here.
>>>
>
> <snip>
>
>>>> Are there any resources I should look at to get a better understanding
>>>> of
>>>> how to achieve this?
>>>
>>> This question remains, especially tips on where to begin to create a
>>> very
>>> simple model with which to experiment.
>>>
>
> This is now my main focus. Since I'm not interested in Java in particular,
> but only in the UML 2.0 Testing Profile, I'm not quite sure where to begin
> to create a model.
>
> If I try to create a project using File -> New -> Other, and filter on
> "test", I have the following options:
>
> Java -> JUnit
> -> JUnit Test Case
> -> JUnit Test Case
> Test
> -> Test Case
> -> Test From Recording
> -> TPTP JUnit Plug-in Test
> -> TPTP JUnit Test
> -> TPTP URL Test
>
> None of these seem to fit what I want to do, namely to create a UML 2.0
> model that uses the UML 2.0 Test Profile, without any connections to Java
> or JUnit. It is possible that what I really want to do is create just a
> UML 2.0 model and then somehow specify that it should follow the Test
> Profile that the TPTP framework implements.
>
> I would really like to keep my first examples/experiments as simple and
> clean as possible.
>
> Any help to push me in the right direction would be appreciated!
>
> Thanks,
> /Lars
>
|
|
|
Re: Beginner question: creating diagrams using UML 2.0 Testing profile [message #143029 is a reply to message #142945] |
Wed, 01 July 2009 16:35 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hi Lars,
just a short briefing from myside: the U2TP (UML2 Testing Profile) is a
so called "profile", but the implementation from tptp is the standalone
mof model. If you want a UML model to be annotated with the stereotypes
of the u2tp, you still need an uml implementation of the profile. I
think, currently, there is no open source implementation available, but
to implement it by yourself should not be very difficulty. Afterwards
you still need a transformation from UML+u2tp into TPTP metamodel, since
they implementing the same spec, but having separate concept spaces.
But don't think, that the u2tp provides good capabilities for the
generation of test cases. Let's consider the test case stereotype. It
extends Behavior and as such, it is possible to mark any behavior of the
uml superstructure as TestCase. But, if you stereotype an
UML::StateMachine, what is the semantic of the TestCase? One path
through the machine, all pathes through the machine? You know, the
greates problem of the u2tp, imho, is, that even if you have annotated
your system model completely with u2tp stereotypes, you won't have any
executable test case. There is still a lot of transformation work to do!
HTH
Timothy
Lars schrieb:
> Hi Paul,
>
> Thanks for your reply, I was hoping for something to that effect.
>
> <snip>
>
>> The TPTP Test Project implements the UML 2 Test Profile model used to
>> model our test artifacts, such as test suites, test cases, and datapools.
>
> <snip>
>
>> In your case, you could follow the same design as TPTP and model
>> your test cases/suites using the Test Profile model and model your
>> execution sequences (e.g. sequence diagrams) using the behavioral
>> model. From these models, you could write a JET template to generate
>> any type of executable test.
>
> OK, this is what I'll try to achieve when I have created a model that I
> can transform.
>
> <snip>
>
>>>> Background: I'm attempting an experiment to generate test suites in a
>>>> text-based testing language (not JUnit or TTCN-3). My primary goal
>>>> is to
>>>> be able to use the UML 2.0 Testing Profile and create sequence diagrams
>>>> specifying different test cases. TPTP seems to be the only (?) project
>>>> implementing the profile, which is why I'm asking here.
>>>
>
> <snip>
>
>>>> Are there any resources I should look at to get a better
>>>> understanding of
>>>> how to achieve this?
>>>
>>> This question remains, especially tips on where to begin to create a
>>> very
>>> simple model with which to experiment.
>>>
>
> This is now my main focus. Since I'm not interested in Java in
> particular, but only in the UML 2.0 Testing Profile, I'm not quite sure
> where to begin to create a model.
>
> If I try to create a project using File -> New -> Other, and filter on
> "test", I have the following options:
>
> Java -> JUnit
> -> JUnit Test Case
> -> JUnit Test Case
> Test
> -> Test Case
> -> Test From Recording
> -> TPTP JUnit Plug-in Test
> -> TPTP JUnit Test
> -> TPTP URL Test
>
> None of these seem to fit what I want to do, namely to create a UML 2.0
> model that uses the UML 2.0 Test Profile, without any connections to
> Java or JUnit. It is possible that what I really want to do is create
> just a UML 2.0 model and then somehow specify that it should follow the
> Test Profile that the TPTP framework implements.
>
> I would really like to keep my first examples/experiments as simple and
> clean as possible.
>
> Any help to push me in the right direction would be appreciated!
>
> Thanks,
> /Lars
>
|
|
|
Re: Beginner question: creating diagrams using UML 2.0 Testing profile [message #143115 is a reply to message #142846] |
Mon, 13 July 2009 14:15 |
Benjamin Zeiss Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hello Lars,
at our university (the university of Göttingen), we currently have a
master's thesis in development (actually, the implementation will be
finished in one or two weeks) where we generate test cases from the UML
testing profile (actually an OCL constrained variant of it in order to
make it semantically more clear and strict) using EMF/Ecore (to define
an intermediate metamodel that is more simple than all the UML stuff),
Xtend to transform UML->intermediate model, Xpand to generate the test
cases, and MWE to execute the workflows (basically the oAW stuff).
We develop and export our UML models with Magicdraw where we have
adapted the UML testing profile slightly in order to make the export
work properly and support more diagrams. I am not sure if TPTP brings
anything different to the table in order to make this work, but we are
pretty happy with this setup and what we have achieved without TPTP ;-)
Don't hesitate to contact me if you would like to know any more details
about this work.
Ben
Lars schrieb:
> Hello all,
>
> Background: I'm attempting an experiment to generate test suites in a
> text-based testing language (not JUnit or TTCN-3). My primary goal is to
> be able to use the UML 2.0 Testing Profile and create sequence diagrams
> specifying different test cases. TPTP seems to be the only (?) project
> implementing the profile, which is why I'm asking here.
>
> The material I have found so far seems geared towards java code
> profiling and testing using JUnit, but I'm foremost interested in just
> producing UML2 diagrams using the testing profile. Is TPTP unnecessary
> to acheive this, or can it be of help?
>
> My hope is then to use JET to generate test code based on the the UML
> diagrams.
>
> Are there any resources I should look at to get a better understanding
> of how to achieve this?
>
> Thanks for any help,
> /Lars
>
|
|
| |
Goto Forum:
Current Time: Sat Apr 20 11:37:02 GMT 2024
Powered by FUDForum. Page generated in 0.04049 seconds
|