Book a Demo

Author Topic: How do number Test Cases?  (Read 3690 times)

David Bigsby

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How do number Test Cases?
« on: September 12, 2013, 07:43:56 am »
I've generated internal test cases from scenarios in my UI model.
I'd like to give each a unique identifier that testers I can print in RFT reports and that testers can reference in emails, bug trackers, etc (so a GUID is not ideal).
What's the best way to do that in EA?
Thanks!

rothnic

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: How do number Test Cases?
« Reply #1 on: September 12, 2013, 11:41:20 am »
I'd recommend managing it via scripting. It can be a bit of a pain to get set up, but if you do it right it shouldn't need much work to maintain it.

For whatever element type you want to manage, you can dump the current selected package containing them. Then you just iterate through them and use a numbering scheme in the Alias field, and optionally append it in the name.

One option would be to manage a csv file with ID's and GUID's, or you could search the selected package and add numbers to elements that don't have them and meet your search criteria.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: How do number Test Cases?
« Reply #2 on: September 12, 2013, 07:24:34 pm »
Hi,

you can take the automatic mumbering system accessible at "Settings->Auto Names and Counters"

In the Drop-Down-List you can choose all tests separately according to their testlevel "Unit-Integration-System-Acceptance-Scenario"

Best Regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

rothnic

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: How do number Test Cases?
« Reply #3 on: September 12, 2013, 11:59:28 pm »
Quote
Hi,

you can take the automatic mumbering system accessible at "Settings->Auto Names and Counters"

In the Drop-Down-List you can choose all tests separately according to their testlevel "Unit-Integration-System-Acceptance-Scenario"

Best Regards

Stefan

I looked at this and it seemed that it was only for the initial name, before you give it your own unique name. So, it would generate "TestCase1" or something like that.

If you use a requirement-like numbering in the alias, then you can choose to show either the long name, or the alias.