Book a Demo

Author Topic: Generate Test Cases from Activity diagrams  (Read 4239 times)

Fredrik Cronholm

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Generate Test Cases from Activity diagrams
« on: September 15, 2010, 08:56:13 pm »
Hi!
We're a small company (with EA newbies) who use EA to store UC and activity diagrams. We would now like to store test cases also in EA.
Is there a way to generate tests from activity diagrams in EA?
We have draw the activity diagrams direct, we have not done a structured scenarios and then generated activity diagrams.


sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Generate Test Cases from Activity diagrams
« Reply #1 on: September 15, 2010, 10:29:27 pm »
Quote
Is there a way to generate tests from activity diagrams in EA?
Yes, print them and the use cases too, and give them to a reasonably good tester to use as scribbling paper while s/he designs the test cases.

Seriously, if it was that easy there would be no need to test, eh?
Or are we just tryin' to fill the filin' cabinet for the auditors?  ;)

b
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Fredrik Cronholm

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generate Test Cases from Activity diagrams
« Reply #2 on: September 15, 2010, 11:01:25 pm »
We simply think it could be a quick way to get a basic coverage of the functionality. Since the structure already is there it is a shame not to reuse it..?

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: Generate Test Cases from Activity diagrams
« Reply #3 on: September 16, 2010, 07:45:32 am »
hey.... print them out!!! he means give the testers tablet pc's or iPads ;-) save the rain forest in that

I think it was in telelogix Tau, that you couold add insert 'scopes' or 'peek holes' onto object flows, and set break points on control flows... then by simulating the activity you could annonate verification points (kinda expected against actual... it was meant to be used as a means to do testing of the model before developers got their hands into the thingie).  It was let down a bit by rather limited tracing, and very C++ oriented.

EA has a third party tool for simulating state charts (something else that EA don't try either).

Kevin [smiley=2vrolijk_08.gif]




sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Generate Test Cases from Activity diagrams
« Reply #4 on: September 16, 2010, 09:17:16 pm »
I know it sounded trite, but let me give you a metaphore of why it is not a great deal of use.

Suppose we take the design of a car, that includes an internal bonnet release catch, and the use case "Release Bonnet".  Now the type of testing you are talking about would get two ticks.
1) the car has an internal bonnet release catch
2) it opens the bonnet.

A tester worth his salt will add the test case, "Use internal bonnet release catch while car is traveling at 80km/h".

These test cases are (in my experience) not in the (software) design.  But mark my words, they are the things that those terrors of all software developers, the "users", do.

For example, typically one of the first things I do, to the utter dismay of the usual set of developers, is to start running the system with an entirely empty database.  They keep saying "but the system will fail", and I keep saying, "yes, I expect so, but will it do it <i>nicely</i>?"  Guess what... designers and developers still tend to neglect the use case scenario "there ain't no data"!

Second typical example, "do it twice".  For example, cancel the same booking twice, record the same employee twice, pay the same employee twice, record the same employee timesheet twice, book the same time to the same job for the same employee on the same contract twice.  In over twenty years of testing I have not yet found a system in shakedown mode where we haven't found about half a dozen of these.

(and I've also never tested a system where the developers haven't said " but a normal user wouldn't do that "!   ;D  )

b

p.s. I'm thinking of changing my sig to "There is only one consistency - users aren't"
« Last Edit: September 16, 2010, 09:31:01 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

JCollcu

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • Sell your skill!
    • View Profile
Re: Generate Test Cases from Activity diagrams
« Reply #5 on: September 17, 2010, 08:52:30 am »
Quote
We're a small company (with EA newbies) who use EA to store UC and activity diagrams.

 Do you guys work remotely or onsite? How big is your team?
-J

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Generate Test Cases from Activity diagrams
« Reply #6 on: September 17, 2010, 10:31:27 am »
Quote
[size=18]...[/size]
p.s. I'm thinking of changing my sig to "There is only one consistency - users aren't"
The rest of the email contains very wise words (I've been a testing manager in a number of previous lives).

However, the PS comes very close to violating my CCC TM ;)

Paolo
« Last Edit: September 17, 2010, 10:32:21 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!