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

Bug 160971

Summary: Properly created test launch configurations display an error when reselected in the launch window
Product: z_Archived Reporter: Joe Toomey <jptoomey>
Component: TPTPAssignee: Nédélec Patrick <nedelec>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: amehrega, kevin.p.o'leary, paulslau
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 156858    
Attachments:
Description Flags
Team Project set for TestServices test project none

Description Joe Toomey CLA 2006-10-14 22:43:09 EDT
After successfully running a test with a given launch configuration, if you subsequently re-open the launch configuration dialog on the same launch configuration, it reports the following error:  IWAT4040E There are no Deployments available for the selected Test.

If you reselect the same test & deployment, the test runs successfully, and if you run the launch config from the list of recently executed launch configs, it also runs successfully.

(Not sure if this has already been filed or not -- if so, sorry.)
Comment 1 Julien Canches CLA 2006-10-16 11:35:53 EDT
*** Bug 160565 has been marked as a duplicate of this bug. ***
Comment 2 Julien Canches CLA 2006-10-18 04:09:46 EDT
Adjusting priority -- this is a regression and belongs to a very common use case.
Comment 3 Paul Slauenwhite CLA 2006-10-20 14:53:07 EDT
Please target to 4.4 since all non-blocking/critical defects will be deferred as decided in today's AG call.
Comment 4 Julien Canches CLA 2006-11-16 13:10:20 EST
*** Bug 164846 has been marked as a duplicate of this bug. ***
Comment 5 Julien Canches CLA 2006-11-16 13:11:59 EST
Raising severity to reflect duplicate's severity.
Comment 6 Paul Slauenwhite CLA 2007-01-16 10:26:06 EST
Reassigning to the component leads to triage for 4.4.
Comment 7 Nédélec Patrick CLA 2007-01-29 09:56:08 EST
Unable to reproduce with TPTP-4.4.0-200701220100 build version:
Create a manual test and a deployment, use the launch configuration dialog as mentioned. The message is not displayed and the last configuration well validated.
Comment 8 Nédélec Patrick CLA 2007-03-23 09:12:10 EDT
Updating hours worked
Comment 9 Joe Toomey CLA 2007-03-23 09:53:18 EDT
I still see this bug very frequently.  It doesn't happen in the simplest case where you create a single launch config and then try to reuse it, but it happens in many other normal use cases.  I'll describe one way to reproduce this:

In an empty workspace with a clean configuration, import the attached psf file (Import Team project set, anonymous user).  The project contains 6 persisted launch configuration files (note that this problem is not limited to .launch files, but this is an easy way to reproduce.)  Open the Run dialog and expand the Test tree to see the 6 launch configurations.  Click on any one of them and see that an error is displayed saying that there are no deployments available for the selected test.  Note also that no test is selected.  If you modify the launch configuration in the dialog so that it matches what was stored (selecting the same test, deployment and location that was stored in the launch config before), the apply and revert buttons become grayed out (because there is technically no change to the launch config, although there is no longer an error listed and the test can be run now.

Note that I made some additions to this dialog late in i2 (and still need to disable the "database" option if a debug flag is not set.)  This is not the cause of the problem I describe above.  The same steps result in the same failure with earlier i2 and i1 builds.  Please let me know if you have trouble reproducing this and we can do a netmeeting.

Thanks.
Comment 10 Joe Toomey CLA 2007-03-23 09:55:50 EDT
Created attachment 61823 [details]
Team Project set for TestServices test project

This is set for pserver access, so you need to use anonymous, not your real eclipse login
Comment 11 Nédélec Patrick CLA 2007-04-18 10:26:01 EDT
Fix completed:
The Junit proxies hierarchy is now well managed by the TestProvider.
Comment 12 Paul Slauenwhite CLA 2007-06-02 14:52:03 EDT
Reporter: Please verify and close in preparation for shutting down the TPTP 4.4 release.  Thanks.
Comment 13 Joe Toomey CLA 2007-07-10 15:57:44 EDT
Verified in 4.4.  Closing.