Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 206356

Summary: [Usability] Switch to Test Perspective after creating a test asset.
Product: z_Archived Reporter: Paul Slauenwhite <paulslau>
Component: TPTPAssignee: Tony Wang <newboya1988>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: jkubasta, sluiman
Version: unspecifiedKeywords: plan
Target Milestone: ---Flags: paulslau: review-
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 214671, 230280, 231376    
Attachments:
Description Flags
Changes for defect 206356
none
Patch Version 2 none

Description Paul Slauenwhite CLA 2007-10-15 12:59:57 EDT
[Usability] Switch to Test Perspective after creating a test asset.

Since the Test action menus are only available from the Test navigator (e.g. Generate), the Test Perspective (and Test Navigator) should be opened/switched to after a test asset (e.g. test suite, datapool, deployment, etc) is complete.
Comment 1 Paul Slauenwhite CLA 2007-11-07 06:30:36 EST
Bulk update of the target field to reflect the change in iteration numbers.
Comment 2 Paul Slauenwhite CLA 2007-11-13 11:02:00 EST
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=186148#c0 for the code to
open the Test Perspective.
Comment 3 Paul Slauenwhite CLA 2008-01-30 12:14:30 EST
Deferred from I5 to I6 with PMC approval.
Comment 4 Tony Wang CLA 2008-02-25 14:09:30 EST
Created attachment 90672 [details]
Changes for defect 206356
Comment 5 Tony Wang CLA 2008-02-25 14:31:34 EST
Paul, please review this patch.
Comment 6 Paul Slauenwhite CLA 2008-02-28 09:20:08 EST
Patch reviewed.  A couple of comments:

-When creating patches for review, ensure only modified code is included to
make the review process easier.  For example, does not generate a patch for a
class that has whitespace changes, unless they are meaningful to the code
changes.

-There is no need for the following in src/org/eclipse/hyades/test/ui/internal/wizard/ArtifactNewWizard.java:

+	public void run()
+	{
 		
+	}

-I have created a utility method in org.eclipse.hyades.test.ui.util.TestUIUtil.java for opening the Test Perspective that can be called when the editors are opened.

-Please make sure the copyright end date is updated on each modified file to
2008.

-Please make sure author and version tags are added to the class JavaDoc
comments for each new/modified file.  For example:

@author  Tony Wang
@version February 28, 2008
Comment 7 Paul Slauenwhite CLA 2008-02-28 09:20:39 EST
Created attachment 90997 [details]
Patch Version 2

Tony, please see the changes I made to your original patch.
Comment 8 Paul Slauenwhite CLA 2008-02-28 09:21:19 EST
Patch Version 2 checked into CVS (HEAD).
Comment 9 Paul Slauenwhite CLA 2008-02-28 13:20:16 EST
I have also added the dialog to prompt the user if they want to switch to the Test Perspective and the associated preference. 

In addition, the same dialog and preference was added for opening the editor after creating a test asset.
Comment 10 Paul Slauenwhite CLA 2008-06-10 11:50:31 EDT
Since removed under https://bugs.eclipse.org/bugs/show_bug.cgi?id=230280.  Closing.