Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 230280 - Starting Recording forces change to Test Perspective
Summary: Starting Recording forces change to Test Perspective
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 206356 214671 228747
Blocks:
  Show dependency tree
 
Reported: 2008-05-05 15:14 EDT by Jeff Nevicosi CLA
Modified: 2016-05-05 10:36 EDT (History)
3 users (show)

See Also:


Attachments
Patch. (32.08 KB, patch)
2008-05-09 16:57 EDT, Paul Slauenwhite CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Nevicosi CLA 2008-05-05 15:14:04 EDT
Build ID: TPTP-4.5.0-200802170400

Steps To Reproduce:
1. Close Test Perspective. Switch to Resource Perspective.  Ensure Recorder Control View is not opened

2. Create new recording (File -> New -> Test -> Test From Recording)

3. Finish wizard.  Recorder Control View is brought to the top (expected), but also prompted to switch to Test Perspective.


More information:
Resolution: Do not force a change in perspective.  Just open RCV in current perspective.

Required by consuming product (usability).
Comment 1 Paul Slauenwhite CLA 2008-05-06 06:15:06 EDT
Duwayne, I will fix this defect.
Comment 2 Paul Slauenwhite CLA 2008-05-06 07:58:41 EDT
This behavior changed was introduced under defect #226295.
Comment 3 jkubasta CLA 2008-05-06 13:23:48 EDT
Prompted after testgen to open Test Perspective.

After testgen and before opening the test, a dialog asks:

"Confirm Open Test Perspective
 Do you want to open the Test Perspective now?
  c   Remember my decision
  Yes             No"

Comment 4 Paul Slauenwhite CLA 2008-05-06 13:35:20 EDT
The patch for defect #228747 will resolve the original issue.  However, the Test Perspective is also opened during test generation, which will be resolved in this defect.
Comment 5 Paul Slauenwhite CLA 2008-05-09 16:37:46 EDT
(In reply to comment #4)
> The patch for defect #228747 will resolve the original issue.  However, the
> Test Perspective is also opened during test generation, which will be resolved
> in this defect.
> 

After discussing this defect with the originators/consumers, opening the Test Perspective after test asset creation and test suite generation (see defects 214671 and 206356) causes several problems:

1) Some consuming products provide perspectives (other than the Test Perspective) that includes the Test Navigator for working with test assets, specific to the consuming product.

2) Some consuming products do not include the Test Perspective.

As a result, we need to remove the user preference and the calls to org.eclipse.hyades.test.ui.internal.util.TestUIUtilities.openTestPerspective() (note, the internal TestUIUtilities.openTestPerspective() API will remain) function for opening the Test Perspective when the user creates a test asset or generates a test suite.  

In place, enhancement 231376 has been opened to address the original requirements of defects 214671 and 206356 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=214671#c0 (note, defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=123650 will resolve this requirement) and https://bugs.eclipse.org/bugs/show_bug.cgi?id=206356#c0) in a multiple perspective/no Test Perspective environment.   
Comment 6 Paul Slauenwhite CLA 2008-05-09 16:54:39 EDT
Hours worked to create/test the patch.
Comment 7 Paul Slauenwhite CLA 2008-05-09 16:57:28 EDT
Created attachment 99569 [details]
Patch.
Comment 8 Paul Slauenwhite CLA 2008-05-09 16:57:48 EDT
Patch checked into CVS (HEAD).
Comment 9 Jeff Nevicosi CLA 2008-05-23 18:33:51 EDT
verified.  closing.