Search the web
Sign In
New User? Sign Up
executableuml
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
testing of executable UML models   Message List  
Reply | Forward Message #948 of 1107 |
Re: [executableuml] testing of executable UML models

Responding to Waheed...

It is actually fairly straight forward. There are two situations: with
a tool and manually. All of the tools that support eUML provide test
harnesses that allow test case vectors to be executed, so that is quite
routine. The tools make it relatively easy to provide test vectors and
identify events expected from other subsystems.

Manual execution is tedious but also straight forward. The team sits
around a <really big> conference table and each team member is assigned
a subset of object state machines. Each team member uses a handful of
coins or other tokens to mark the current state in each state machine.
(Different denominations are used to mark the current state in multiple
instances.) The team member also keeps a table of current values of the
instance attributes. An external stimulus event is provided and it put
on a "queue" that the exercise leader maintains. The exercise leader
"pops" and event and directs it to the team member with the relevant
object state machine. The team member with that state machine uses the
state model to determine the transition, new state, and the action to
execute. The team member "walks" the state action language to determine
how attributes are modified and what events are generated. The events
are placed in the "queue" and the exercise leader "pops" the next event
and dispatches it to the next object. And so on.

As far as how a tool would actually execute the model, it does it
basically the same way the manual testing does it. The tool parses the
abstract action language for each state action to determine what to do.
The tool maintains its own list of objects and their attributes that it
gets from the drawing tool repository just like the manual testers.
Everything is known except for any realized code invoked from state
machine actions.

One way realized code is handled is to have it already available in a
library and the test harness simple invokes it the same way the action
language would. How one does this would depend upon the 3GL used to
implement the model simulator (e.g., it would clearly be easier is the
language were one of the OOPLs based on scripting languages because the
realized code could be accessed directly by name). Alternatively, one
can also stub realized code in the test harness since all it can do is
return values.

You will note, though that there is a lot of parsing (action language,
model relationships, etc.) that the model simulator must do that is
pretty much the same as it would have to do to generate code. As a
result, almost all eUML tools actually generate code in a target 3GL and
instrument it with GUI hooks and whatnot as the code is generated in
order to maximize code reuse between the model simulator and the code
generator. This is essentially the same thing that a 3GL IDE like
Visual C/C++ does when it creates a debug version of the application
(e.g., the main() and other infrastructure is provided by the model
simulator rather than the normal code generator). AFAIK, Bridgepoint is
the only translation tool that uses a "pure" model simulator without
direct code generation.


*************
There is nothing wrong with me that could
not be cured by a capful of Drano.

H. S. Lahman
hsl@...
Pathfinder Solutions
http://www.pathfindermda.com
blog: http://pathfinderpeople.blogs.com/hslahman
"Model-Based Translation: The Next Step in Agile Development". Email
info@... for your copy.
Pathfinder is hiring: http://www.pathfindermda.com/about_us/careers_pos3.php.
(888)OOA-PATH










Tue Oct 10, 2006 3:39 pm

H.S.Lahman
Offline Offline
Send Email Send Email

Forward
Message #948 of 1107 |
Expand Messages Author Sort by Date

Hello, is there any work done on testing of executable UML models? in the book, "Executable UML", by Balcer and Mellor, generation of test vectors from use...
Tabinda Waheed
tabindawaheed
Offline Send Email
Oct 10, 2006
2:11 pm

Depends on your tool support. Some tools have simulators that allow you to execute a single domain at a time. Others provide the ability to execute any number...
Erick G. Hagstrom
eghagstrom
Offline Send Email
Oct 12, 2006
3:13 am

Responding to Waheed... It is actually fairly straight forward. There are two situations: with a tool and manually. All of the tools that support eUML...
H. S Lahman
H.S.Lahman
Offline Send Email
Oct 12, 2006
3:14 am

... is ... Is this more in line with Balcer's UML virtual machine concept? www.omg.org/news/meetings/workshops/UML%202003%20Manual/02-3_Balcer.pdf...
Marco
prenom_nomus
Offline Send Email
Oct 22, 2006
6:29 pm

Responding to Marco... Marc can respond more definitively, but I don't think so. As I understand it his VM is an execution environment similar to Java. IOW, ...
H. S Lahman
H.S.Lahman
Offline Send Email
Oct 26, 2006
2:06 pm

... Thanks for the clarification but I guess I would have used the term 'JVM' or 'Java platform' instead of 'Java' which makes me think of the language not the...
Marco
prenom_nomus
Offline Send Email
Oct 30, 2006
2:22 pm

... I'm a little confused by this statement. The VM is only for model verification and isn't a requirement for running the model on the target....
Lee Riemenschneider
lwriemen
Offline Send Email
Nov 1, 2006
6:13 pm

... way as ... target. ... per HS "As I understand it his VM is an execution environment similar to Java (JVM). IOW,it executes an intermediate representation...
Marco
prenom_nomus
Offline Send Email
Nov 3, 2006
3:25 pm

... If you go to http://www.modelcompilers.com (Marc's website), you can find where it states that the VM can be used for either model verification or target...
Lee Riemenschneider
lwriemen
Offline Send Email
Nov 6, 2006
9:29 pm

... Apart from ModelScope, of course. Rgds Ashley...
Ashley at Metamaxim
keplervic
Offline Send Email
Oct 23, 2006
3:43 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help