Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 236308 - Deployment avaiiability check for JUnit-plugin test only works for once
Summary: Deployment avaiiability check for JUnit-plugin test only works for once
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard: closed471
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 16:02 EDT by Tony Wang CLA
Modified: 2016-05-05 11:00 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Wang CLA 2008-06-09 16:02:14 EDT
Using 4.5-200806070100 build

Steps to reproduce:
1. Create a plugin project
2. Create a TPTP JUnit-Plugin test(jplugin)
3. Popualte the test, create some cases and add invocations in behaviour tab
4. Modify test case methods in java file
5. Create an Artifact(art) associate with that JUnit-plugin test
6. Create a location(loc), a workbench location(wkloc), a deployment(dep) 
7. Add art,loc,wkloc in dep , make art+loc and art+wkloc (2 pairs)--save
8. right click on jplugin--Run As--Run configuration, create a new configuration under Test, we can find dep is not in the deployment window(that's work as design)
9. remove art+loc pair in dep--save and go to run configuration again--dep appears 
10. add art+loc pair again in dep--in run configuration, dep still exists, it should have the same result as step 8. 
11. if we go on working with step 10, run jplugin test with dep, NPE will raise.
Comment 1 Ben Chen CLA 2009-06-25 18:11:51 EDT
problem exists in TPTP-4.6.0-200906191311
Comment 2 Paul Slauenwhite CLA 2009-11-13 07:46:24 EST
Also (from defect 289521):

The current design allows tests to be executed with deployments
without an artifact-location pair or artifact when using ASF.  However, the UI
does not allow the user to select the deployment in the launch configuration
dialog that does not have an artifact-location pair:

org.eclipse.hyades.test.core.internal.launch.extensions.DefaultDeploymentsProvider.isDeploymentApplicable(TPFDeployment)

Consider relaxing this constraint in the UI.
Comment 3 Paul Slauenwhite CLA 2009-11-17 09:05:47 EST
(In reply to comment #2)
> Also (from defect 289521):
> 
> The current design allows tests to be executed with deployments
> without an artifact-location pair or artifact when using ASF.  However, the UI
> does not allow the user to select the deployment in the launch configuration
> dialog that does not have an artifact-location pair:
> 
> org.eclipse.hyades.test.core.internal.launch.extensions.DefaultDeploymentsProvider.isDeploymentApplicable(TPFDeployment)
> 
> Consider relaxing this constraint in the UI.

After testing ASF with deployments without an artifact-location pair, without an artifact, or with an artifact with no associated test assets, the deployment/location is ignored and the test is executed using the default deployment (for example, localhost).  As such, we should not relax this constraint in the UI.
Comment 4 Paul Slauenwhite CLA 2009-12-14 15:03:01 EST
Deferring to TPTP 4.7.0.
Comment 5 Paul Slauenwhite CLA 2010-06-24 12:55:02 EDT
No longer required by a consuming product.
Comment 6 Kathy Chan CLA 2010-11-18 18:52:32 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.