Book a Demo

Author Topic: Test case creation date problem (EA JAVA API)  (Read 4218 times)

franchox

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Test case creation date problem (EA JAVA API)
« on: November 23, 2007, 05:43:46 am »
Hi everyone,
I have a problem with EA Java API. When I set a creation date to a test Case and save It in a EA local repository (.eap), the repository doesn't keep the same date in the test case.
The other parameters keep their values.

Code:
Code: [Select]

private void addTestCase(Package testModel, String testName, Date testCreationDate, String testAuthor, String testDescription){

Element test;

test = testModel.GetElements().AddNew(testName, "UseCase");

test.SetStereotype("testcase");

test.SetAuthor(testAuthor);

test.SetNotes(testDescription);

test.SetCreated(testCreationDate);

test.Update();
}

Thanks in advance...
« Last Edit: November 23, 2007, 05:54:22 am by franchox »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Test case creation date problem (EA JAVA API)
« Reply #1 on: November 23, 2007, 05:57:40 am »
Check your global EA options. Open EA and from the main menu choose Tools | Options | Diagram. Is the Allow change of Created Date box checked?
No, you can't have it!

franchox

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Test case creation date problem (EA JAVA API)
« Reply #2 on: November 23, 2007, 06:31:45 am »
Yes, allow change of created date box is checked but It still doesn't work...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Test case creation date problem (EA JAVA API)
« Reply #3 on: November 23, 2007, 06:44:49 am »
File a bug report with Sparx. Use the Report a Bug link below the Support link at the bottom of any forum page. Please quote the name of this thread and past the URL into the bug report. This will allow Sparx to participate in this thread. Please also let us know if Sparx has anything to say about the issue.

David
No, you can't have it!

franchox

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Test case creation date problem (EA JAVA API)
« Reply #4 on: November 23, 2007, 07:36:41 am »
Ok... thanks...