Search the web
Sign In
New User? Sign Up
AgileEmbedded · Agile Embedded
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

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
Has anyone ever tested executable models?   Message List  
Reply | Forward Message #32 of 464 |
This isn't a pure TDD question. It isn't practical or
probably even possible to write the test code before
the regular code (you'll see why as you read). However
I'm looking for approaches that are as TDD as
practical and absolutely want an agile and test
intensive approach to the problem.

Given the expertise of these forums, someone here
probably has relevant experience or ideas.

A development team I'm working with is using a UML 2.0
tool called Rhapsody for development of real time C++.

As is common in the real time world, development is on
a different platform from the final deployment
platform. The application itself is very state based
and not data centric, sort of like telecommunications
applications. The application has a sizable existing
code base. The major point of the current development
is a migration to a new architecture.

Rhapsody seems to have achieved (or is close to
achieving) the computer science goal of executable
models. As most of us no longer care about our
compilers generated assembly language or machine code,
Rhapsody users care little about the generated C++
code.

Unlike some UML tools I've used (e.g. Rational Rose),
Rhapsody seems to generates pretty complete code (not
just headers). Rhapsody generated code handles lots of
complex state transitions with only a minor amounts of
tweaking (at least it looks like it does). Once the
code is generated (and possibly tweaked), it can be
run. The running behavior of the code feeds back into
the tool and is seen visually as dynamic changes in
the model. Rhapsody has some testing capabilities.
Tools like CPPunit obviously don't work testing
models.

So my question is: how does one test a model? How does
one ensure they are good and complete tests?

To complicate matters, my role is technical oversight
and I'm about a 5 hour drive from the development
team. I expect to see the team about once or twice a
month. Were I co-located, I could experiment until I
found something that worked with their existing tools
and process and coach the team hands on. We learn
together with active feedback as we improved the
testing process with iteration. As it is, I won't get
those opportunities and I need to be pretty close to
the mark, first time I introduce a testing approach.

Any ideas would be really appreciated,

Camille




__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo



Tue Jan 25, 2005 6:01 pm

cpbell1
Offline Offline
Send Email Send Email

Forward
Message #32 of 464 |
Expand Messages Author Sort by Date

This isn't a pure TDD question. It isn't practical or probably even possible to write the test code before the regular code (you'll see why as you read)....
Camille Bell
cpbell1
Offline Send Email
Jan 25, 2005
6:02 pm

I have seen rhapsody but not used it. So I may be a bit off base, but what I saw of their testing capabilities is that an engineer could walk the system...
James Grenning
jwgrenning
Offline Send Email
Jan 25, 2005
6:57 pm

A different approach might be to look at a tool like Tvec with does model driven test generation (google on software test vector generator). I have not heard...
Hagar, Jon D
hagarjon
Offline Send Email
Jan 25, 2005
10:03 pm
Advanced

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