Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314934 - Pressing "Launch" on service test page causes test client not to launch on "Client test" page
Summary: Pressing "Launch" on service test page causes test client not to launch on "C...
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.2 RC4   Edit
Assignee: Mark Hutchinson CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 14:23 EDT by Mark Hutchinson CLA
Modified: 2010-06-17 10:22 EDT (History)
2 users (show)

See Also:
david_williams: pmc_approved+
keith.chong.ca: pmc_approved? (raghunathan.srinivasan)
keith.chong.ca: pmc_approved? (naci.dai)
deboer: pmc_approved+
keith.chong.ca: pmc_approved? (neil.hauge)
kaloyan: pmc_approved+
keith.chong.ca: review+


Attachments
proposed patch (5.32 KB, patch)
2010-05-28 14:40 EDT, Mark Hutchinson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hutchinson CLA 2010-05-28 14:23:00 EDT
1. Launch the WS wizard. (Either top down or bottom up).  Move the Service
slider to "Start" and the Client slider to "test"
4. Press "Next" until you get to the "Test Web Service" Page.
5. The test facility should be the Web Services Explorer.  Press "Launch".  The
WSE will open in an external browser.
6. Press next until you reach the "Web Service Client Test" page.
7. Select a test client, and press finish.

Notice that the test client selected does not get launched when finished is pressed.

This is because org.eclipse.jst.ws.internal.consumption.ui.widgets.test.FinishTestFragment is not working correctly due to in incorrect data mapping in our wizards.
Comment 1 Mark Hutchinson CLA 2010-05-28 14:40:27 EDT
Created attachment 170409 [details]
proposed patch
Comment 2 Mark Hutchinson CLA 2010-05-28 14:56:02 EDT
Keith, can you please review this patch?

It looks like the changes made in the fix for 180304 renamed this setter FinishTestFragment.setGenerateProxy(boolean) to .FinishTestFragment.setCanGenerateProxy(boolean) without updating all the data mappings correctly.

The old mappings were invalid since there is no longer a setGenerateProxy method on FinishTestFragment.
Comment 3 Keith Chong CLA 2010-05-31 13:52:48 EDT
Patch looks good.  Some mappings were correctly changed, but these ones were not.
Comment 4 Mark Hutchinson CLA 2010-05-31 15:03:25 EDT
1.  Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug"
(requested by an adopter) please document it as such. 

On the "web service client test" page of the web service wizard, normally pressing finish would cause the selected test client to be launched. (for example the jax-rpc JSPs).  This does not happen if the user launched the web services explorer earlier on the "test web service" page of the wizard.  This is a very poor user experience.


2.  Is there a work-around? If so, why do you believe the work-around is
insufficient? 

There is no workaround.

3.  How has the fix been tested? Is there a test case attached to the bugzilla
record? Has a JUnit Test been added? 

Manual testing in WTP and an adopter product.


4. Give a brief technical overview. Who has reviewed this fix? 

The web service wizard framework combines several commands to create web services and clients.  Data is passed between these commands by setting up data bindings between these commands.  A change was made in one of our commands, but not all of the corresponding data bindings were correctly updated causing the FinishTestFragment command to function incorrectly.  This patch corrects this.

Keith has reviewed this fix.


5. What is the risk associated with this fix? 
Almost zero risk.
Comment 5 Keith Chong CLA 2010-05-31 15:09:24 EDT
Submitting for PMC approval.

In layman's terms, with the patch, the FinishTestFragment command would be properly 'initialized' with the correct input data.
Comment 6 David Williams CLA 2010-05-31 21:03:55 EDT
Sounds "major" to me (missing function, from end users point of view?) 

Did you mean to refer back to bug 180304 as the source of this error/regression? 
That's a very old bug.
Comment 7 Keith Chong CLA 2010-05-31 23:52:34 EDT
(In reply to comment #6)
> Sounds "major" to me (missing function, from end users point of view?) 
> 
> Did you mean to refer back to bug 180304 as the source of this
> error/regression? 
> That's a very old bug.

Yes, you expect the test facility to come up, but it doesn't. 

Yes, that's the correct bug, that's where the "CanGenerateProxy" data binding was added.
Comment 8 Keith Chong CLA 2010-06-01 11:58:18 EDT
Thanks PMC.  I've released the fix.
Comment 9 Mark Hutchinson CLA 2010-06-17 10:21:48 EDT
Verified fixed
Comment 10 Mark Hutchinson CLA 2010-06-17 10:22:34 EDT
Closing