Book a Demo

Author Topic: Add Test Cases  (Read 3796 times)

Christy Bailey

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Add Test Cases
« on: June 29, 2005, 06:53:46 pm »
 ??? I'm a new user to EA and have had no training.  I'm trying to set up a new test case and everything in the test case list is disabled.  Do I need to enable Security in order to be able to use the test functionality or what am I doing wrong?  I've gone through the online help and cannot find anything about troubleshooting.  Any assistance is greatly appreciated.
Quality Assurance Analyst

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Add Test Cases
« Reply #1 on: June 29, 2005, 07:19:35 pm »
Test cases are owned by elements, so you need to first
select an element in either the Project View or on a diagram and the commands on the Test Cases context menu should be available.

HTH
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
All Test Cases are equal, but some are more...
« Reply #2 on: June 29, 2005, 09:40:51 pm »
Quote
Test cases are owned by elements, so you need to first
select an element in either the Project View or on a diagram and the commands on the Test Cases context menu should be available.

HTH
There are two kinds of Test Cases! - those that are internal to elements (and can't be promoted AND won't appear in the Relationship Matrix) and those created by dragging from the Toolbox - which I have just noticed are really UseCases with the stereotype «testcase»! ???  These latter Test Cases WILL appear in the Relationship Matrix as Test Cases, but NOT as UseCases. ::)

Consistency, Consistency, Consistency! TM

Orthogonality, Orthogonality, Orthogonality! TM

Paolo

BTW: Don't forget you have to Right-Click to add a new internal Test Case! :-X
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: All Test Cases are equal, but some are more...
« Reply #3 on: June 30, 2005, 01:02:26 am »
Quote
AND won't appear in the Relationship Matrix
... and hence are no use for test/requirements coverage purposes ...


PS. shouldn't those three "Orthogonality"s be at right angles to each other ?
« Last Edit: June 30, 2005, 01:04:03 am by mikewhit »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: All Test Cases are equal, but some are more...
« Reply #4 on: June 30, 2005, 02:01:13 am »
Quote
PS. shouldn't those three "Orthogonality"s be at right angles to each other ?
Yes!!!  Assume the third one is coming out of the screen at you! ;D

Orthogonally (and Consistently)
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Add Test Cases
« Reply #5 on: June 30, 2005, 04:08:04 am »
Since we all use a 4-dimensional system, where is the 4th?

I (now) started to go into depth with testing. Maybe I have to get more familiar with that, but obviously there is very limited support for generating test suites. That is: no possibility to bundle a set of test cases and make it a suite. I thought it could be helpful if the Model Document mechanism could be used: place all elements with test scenarios in such a class and create the documentation. For the time being it seems that I have to write some scripts to support me.

Also I was wondering why the different test types are bundled for each element. According to Sparx own documentation unit tests apply to classes (etc.), system tests to business needs (that is Use Cases), a.s.o. So I would not expect all types to appear for all elements. Any thoughts?

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Add Test Cases
« Reply #6 on: June 30, 2005, 05:49:40 am »
Requirements and Tests both need to be 'linkable' to any other EA element, so that you can express requirements and test coverage in each direction.

But you don't want them cluttering up every diagram, which is why I earlier observed that a separate diagram layer might be a way to show them when necessary.

The 'internal' test cases are no use in this respect.

The only alternative (that I haven't tried) would be to place a group (suite) of tests as 'internal' test cases to a Test Case stereotype, and then link that as required to the class(es), requirements, etc.

But in order not to have the diagrams filled up with test cases, you have to do the linking using the Relationship Matrix, not the most user-friendly way of doing what should after all be a GUI operation for simplicity.

Do I sound frustrated ?

[voice of Marvin] EA Test cases ... don't talk to me about EA Test cases ...
« Last Edit: June 30, 2005, 08:56:33 am by mikewhit »

thomaskilian

  • Guest
Marvin is back
« Reply #7 on: June 30, 2005, 06:15:24 am »
That door again...

It seems I have to start with scripting :P