Book a Demo

Author Topic: Diagram-level tests  (Read 5027 times)

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Diagram-level tests
« on: November 02, 2004, 05:50:36 am »
Although it's possible to add tests to diagram elements, in some cases (e.g. an Activity diagram), it makes some sense to want to add tests at a Diagram level - i.e. right-click on diagram background, Tests window, Add Test.

The tests would be different scenarios within the Activity diagram.

I could add e.g. a Note, and then add the "diagram tests" to that, but then EA does not show them if I do a package RTF Documentation !

I can actually add Test Cases to a Diagram, but they don't show up in any of the Documentation reports or the Testing Details.

Sparx support has just informed me that they will be correcting this:
Quote
EA does not actually generate content for diagram notes as you expect.
We will make this feature available in build 740 when you enable the 'Document All Elements' option in the RTF Report dialog.
« Last Edit: November 16, 2004, 02:35:05 am by mikewhit »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Diagram-level tests
« Reply #1 on: November 02, 2004, 02:08:01 pm »
The way I am doing this at the moment is to add the "parent" element to the diagram.  IOW the use case element is added to the activity diagram. *
The generic tests can then be ascribed "correctly" to the use case, are printed with the diagram etc.
hth
Bruce

(In fact I make the use case a composite element and add one or more "scenario" activity diagrams.  This has the advantage of letting me easily share the activity elements amongst the diagrams and have the tests recorded once.)
"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.

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Diagram-level tests
« Reply #2 on: November 03, 2004, 01:04:07 am »
Nice idea, Bruce - I presume you drag a link copy of the UC onto the activity diagram.

So now all I need is a way of drag-and-dropping all my Activity element Test Cases into a Use Case - except TCs are not visible in the Project View ...

I know that TCs are not part of UML, but it's a pity they have to be "second class" elements .... <more test-related whinging>

But - EA's so good in other areas that it leads us all to have high expectations !!! :-)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Diagram-level tests
« Reply #3 on: November 03, 2004, 01:53:57 pm »
You use the Import Test from Other Element item from the test pane context menu
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.

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Diagram-level tests
« Reply #4 on: November 03, 2004, 01:57:35 pm »
You use the Import Test from Other Element item from the test pane context menu
B

'scuse my schiZophRenia  :-/
« Last Edit: November 03, 2004, 08:42:22 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.