Book a Demo

Author Topic: How to "Auto name" Test Cases?  (Read 4490 times)

andber

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How to "Auto name" Test Cases?
« on: January 21, 2009, 10:27:17 pm »
The Auto Names Counters setting applies only to types without taking into account the stereotype.
How to auto-name Test Cases that are modeled as "Use Cases" with the "testcase" stereotype ? Is it possible ?

AB

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to "Auto name" Test Cases?
« Reply #1 on: January 22, 2009, 04:59:54 am »
I do not know if this is possible at all. I do think it has been mentioned before, but whether anyone submitted a feature request to Sparx - as opposed to just posting to the suggestions section of the forum - is a mystery.

--- I would love to be proven wrong on this. If anyone knows a way, please chime in! ---

As a workaround, perhaps you could manually turn on auto numbering for use cases, create some tests, then turn off the auto numbering. Then repeat as necessary. This could make the model development process a bit choppy, but it might be tolerable. You'd also have to ensure that the numbers stayed in sync. Of course this gets a bit more complex - read "failure prone" - if you also auto number 'normal' use cases.

Perhaps you should make a feature request. Use the Feature Request link below the Support link near the bottom of any forum page.

HTH, David
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to "Auto name" Test Cases?
« Reply #2 on: January 22, 2009, 09:10:29 am »
It can be done, but it's a bit fiddly if you haven't used UML Profiles and MDG Technologies before. First, you will need to define your own «testCase» stereotype in a profile and give it the attribute "_metatype = Testcase". Then you will need to create a toolbox profile to define a set of custom toolboxes from which you can drop your new testcase stereotype. Then bundle the stereotypes profile and toolbox profile together in an MDG Technology. Point to the technology, restart EA, open the toolbox, drop a test case onto the diagram and it will be named "Testcase1", not "Usecase1".

Sounds complicated, but all the instructions are in the help file. Shout if you decide to give it a go and get stuck.


EDIT: Alternatively, you can create the profile then import it into the Resources tree without worrying about toolbox profiles and MDG Technologies. Yes, try it that way first... :)
« Last Edit: January 22, 2009, 09:15:51 am by KP »
The Sparx Team
[email protected]

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: How to "Auto name" Test Cases?
« Reply #3 on: January 22, 2009, 06:11:02 pm »
By the way, are there any plans to resolve this situation of having two ways to import a stereotype profile?

Like showing profiles from MDG technologies in the resources window too? Or offering a menu command for synchronizing tagged values from profiles included in an MDG technology?

andber

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How to "Auto name" Test Cases?
« Reply #4 on: January 27, 2009, 07:51:57 pm »
Quote
It can be done, but it's a bit fiddly if you haven't used UML Profiles and MDG Technologies before. First, you will need to define your own «testCase» stereotype in a profile and give it the attribute "_metatype = Testcase". Then you will need to create a toolbox profile to define a set of custom toolboxes from which you can drop your new testcase stereotype. Then bundle the stereotypes profile and toolbox profile together in an MDG Technology. Point to the technology, restart EA, open the toolbox, drop a test case onto the diagram and it will be named "Testcase1", not "Usecase1".

Sounds complicated, but all the instructions are in the help file. Shout if you decide to give it a go and get stuck.


EDIT: Alternatively, you can create the profile then import it into the Resources tree without worrying about toolbox profiles and MDG Technologies. Yes, try it that way first... :)

Hi KP, I have tried to follow your instructions, but I don't see my new type into the "Auto Name Counters" dialog. It seems I have only created a new stereotype and not a new type, then the dialog does not show anything more than it showed before I imported my profile.
Is it possible creating new type within profile ? Are they taken into account by the "Auto Name Counters" dialog ?

AB

Henrique Narciso

  • EA User
  • **
  • Posts: 86
  • Karma: +0/-0
    • View Profile
Re: How to "Auto name" Test Cases?
« Reply #5 on: February 10, 2009, 08:36:04 pm »
I also have the same issue, but in regards to Business rules.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to "Auto name" Test Cases?
« Reply #6 on: February 11, 2009, 09:35:25 am »
Sorry, I think all my suggestion will buy you is that...

Quote
it will be named "Testcase1", not "Usecase1".
The Sparx Team
[email protected]