Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#115 Application lets tester close Projects and tasks without closing child projects/tasks

api-only
nobody
None
Defect
6
Mac OSX 10.6.8
V 1.7.7
2013-04-07
2013-03-23
Milan
No

Summary:

Application lets user close Projects and Tasks without closing child projects/tasks. This only happens on the code side, not on the GUI.

Environment:

This is a code issue, therefore is not isolated to any specific OS.

Priority:

Low

Detailed description of problem:

  1. The first problem is that the user can create a Project with a child Task. When user closes the project without closing the child task, the application does not complain and the JUnit test case passes. This results in the child task having the status 'OPEN' and the project has status 'CLOSED'.
  2. Similar to step one, if user creates a Task with a child Sub-Task. The user is able to close the Task without closing the child Sub-Task first.

This goes against requirement 'REQ-26' in the SRS for BORG Calendar document.

Note: This problem only arises when the above steps are done using JUnit tests. The appropriate error messages are thrown while running same test using GUI.

Steps to reproduce:

Note: Please perform the following steps in JUnit tests

  1. Create a Project (Project pr = new Project();).
  2. Add description, status, start date and end date for the project and save it.
  3. Create a Task (Task tk = new Task();).
  4. Add description, status, start date to the task and add project from step 2 to this task and save it.
  5. Get all projects from the database and close the project without closing the child task first.
  6. Commit all changes.
  7. Notice that the child task still shows status = "OPEN" and project has status = "CLOSED".

  8. Create a Task (Task tk = new Task();).

  9. Add description, status, start date to the task and save it.
  10. Create a Subtask (Subtask st = new Subtask();).
  11. Add description, start date and Task (from step 2) to this sub-task and save it.
  12. Close the parent task from step 2 before closing the sub-task.
  13. Notice that the child sub-task shows status = 'OPEN' while task shows status = 'CLOSED'.

Possible fixes:

  1. The application checks for all child tasks and sub-tasks being closed only on GUI JAVA classes. Move these checks to non-GUI classes such that these checks can be performed also while writing JUnit tests.

Discussion

  • Mike Berger
    Mike Berger
    2013-04-07

    • status: open --> api-only