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

Bug 123650

Summary: HTTP tests do not automatically generate JUnit Java code like JUnit tests.
Product: z_Archived Reporter: Paul Slauenwhite <paulslau>
Component: TPTPAssignee: Paul Slauenwhite <paulslau>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P2 CC: ewchan, jkubasta, paulslau, sluiman
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: housecleaned462
Attachments:
Description Flags
Generate n Editor Save Partial Patch none

Description Paul Slauenwhite CLA 2006-01-12 14:11:28 EST
HTTP tests do not automatically generate JUnit Java code like JUnit tests.

When creating a TPTP JUnit test, the test author can select how the test behavior is edited.  Selecting 'In the code editor', causes the code generation process to be invoked when the test suite is saved.  To maintenance consistency, HTTP test should provide the same function.

NOTE:  This defect would require the following dependency JARs to your
Java project's classpath when the HTTP test suite is created, similar to creating a TPTP JUnit test suite:

ECLIPSE_HOME/plugins/org.eclipse.hyades.logging.core_4.1.0/hl14.jar
ECLIPSE_HOME/plugins/org.eclipse.hyades.logging.core_4.1.0/hlcore.jar
ECLIPSE_HOME/plugins/org.eclipse.emf.ecore_2.1.0.jar
ECLIPSE_HOME/plugins/org.eclipse.emf.common_2.1.0.jar
ECLIPSE_HOME/plugins/org.eclipse.hyades.test.tools.core_4.1.0/common.runner.
jar
ECLIPSE_HOME/plugins/org.eclipse.hyades.test.tools.core_4.1.0/http.runner.ja
r
ECLIPSE_HOME/plugins/org.eclipse.hyades.logging.core_4.1.0/hlcbe101.jar
ECLIPSE_HOME/plugins/org.eclipse.hyades.logging.core_4.1.0/hlcommons.jar
ECLIPSE_HOME/plugins/org.eclipse.hyades.logging.core_4.1.0/hllog4j.jar
ECLIPSE_HOME/plugins/org.junit_3.8.1/junit.jar
ECLIPSE_HOME/plugins/org.eclipse.hyades.logging.core_4.1.0/tlcbe101.jar
Comment 1 Mark D Dunn CLA 2006-02-09 11:42:14 EST
Reassign to Test.UI developer - Jerome.
Comment 2 Jerome Gout CLA 2006-02-09 13:04:39 EST
After discussion with Julien, he accepts to leverage the sync mechanism that maintains JUnit test and code in sync to HTTP tests.
Comment 3 Julien Canches CLA 2006-04-12 08:23:49 EDT
Deferring to i3.
Comment 4 Julien Canches CLA 2006-05-03 11:08:29 EDT
Per discussion with Christophe this involves UI changes that cannot be pushed in i3 build (UI freeze). Deferring to 4.3.
Comment 5 Paul Slauenwhite CLA 2007-01-16 10:26:10 EST
Reassigning to the component leads to triage for 4.4.
Comment 6 Mark D Dunn CLA 2007-01-16 16:11:37 EST
Add estimate.  This is a rough estimate since it is for UI and I have no UI experience.  We would have to find a UI resource to do this.
Comment 7 Paul Slauenwhite CLA 2007-01-26 08:25:13 EST
Targeting to future since not containable in 4.4.
Comment 8 Paul Slauenwhite CLA 2007-01-26 09:01:37 EST
As discussed on this week's Test Project call (January 22, 2007), the Test Project will focus on existing P1 - P2/Blocker - Major and P1/Normal and test creation/automation defects (omitting defects dependant on outstanding features) in TPTP 4.4.  All other Test Project defects have been targeted to future.

If this defect has been targeted to future and you/originator feel it should be completed in 4.4, please provide the necessary reason as a reply to this comment or a post to the Test Project mailing list (tptp-test-tooling-dev@eclipse.org).  We will collectively triage and assess our resources to determine a case-by-case decision. 
Comment 9 Paul Slauenwhite CLA 2007-01-26 09:04:10 EST
Correction:  The Test Project mailing list is tptp-testing-tools-dev@eclipse.org.
Comment 10 Paul Slauenwhite CLA 2007-05-25 08:41:28 EDT
At a minimum, we need to automatically generate the JUnit test class.  This defect is important for the usability of the URL test suite editor. As such, increasing the priority so it is considered in 4.5. 
Comment 11 Paul Slauenwhite CLA 2007-10-15 12:48:37 EDT
This is a severe usability issue with one of our consuming products.  Reassigning to Duwayne and targeting to 4.5.

Duwayne, please complete early in 4.5.
Comment 12 Paul Slauenwhite CLA 2007-11-07 06:30:02 EST
Bulk update of the target field to reflect the change in iteration numbers.
Comment 13 Paul Slauenwhite CLA 2007-11-07 06:30:27 EST
Bulk update of the target field to reflect the change in iteration numbers.
Comment 14 Paul Slauenwhite CLA 2008-01-07 08:47:11 EST
Deferring to I6.
Comment 15 Paul Slauenwhite CLA 2008-04-07 09:13:17 EDT
Duwayne, I will handle this defect.
Comment 16 Paul Slauenwhite CLA 2008-04-18 06:48:16 EDT
Including removing the following product doc:

Generating an executable test
Comment 17 Paul Slauenwhite CLA 2008-05-20 07:14:55 EDT
Created attachment 101025 [details]
Generate n Editor Save Partial Patch
Comment 18 Paul Slauenwhite CLA 2008-05-21 14:27:01 EDT
Deferring to future as approved by the TPTP PMC (http://dev.eclipse.org/mhonarc/lists/tptp-pmc/msg04926.html).
Comment 19 Paul Slauenwhite CLA 2008-07-22 07:39:01 EDT
Deferring to 4.5.2 given the lack of resources to complete in 4.5.1.
Comment 20 Harm Sluiman CLA 2008-07-22 08:37:22 EDT
Eugene, should this be a P1 for 4.5.2?
Comment 21 Eugene Chan CLA 2008-07-22 13:53:45 EDT
Paul, Is this still required and considered sev 1 by consuming product?
Comment 22 Harm Sluiman CLA 2008-07-22 14:04:56 EDT
(In reply to comment #21)
> Paul, Is this still required and considered sev 1 by consuming product?
> 

I think that question is actually to yourself since you ahve hte only product shipping this function. ;-)
I think the real point is that it is a regular inhibitor to usage. The lack of automation was intended to help show the separation of the definition from the runtine. However as with many TPTP sample tools users are expecting to use them directly.
Comment 23 Paul Slauenwhite CLA 2008-08-07 14:54:59 EDT
Since this defect requires new strings requiring translation, deferring to the next release of TPTP that will be translated (4.5.3).
Comment 24 Harm Sluiman CLA 2008-08-07 22:05:54 EDT
(In reply to comment #23)
> Since this defect requires new strings requiring translation, deferring to the
> next release of TPTP that will be translated (4.5.3).
> 

This seems like it should just be a matter of stringing existing actions. Perhaps you can explain to me off line why there is a string issue.
Comment 25 Eugene Chan CLA 2008-08-08 15:31:17 EDT
I suggest to have the auto code gen in 4.5.2 without any user custom message input support that will introduce any UI dialog, and have a separate defect to enrich the code gen process with user customization interaction in 4.5.3.
Comment 26 Paul Slauenwhite CLA 2008-08-08 16:02:40 EDT
(In reply to comment #25)
> I suggest to have the auto code gen in 4.5.2 without any user custom message
> input support that will introduce any UI dialog, and have a separate defect to
> enrich the code gen process with user customization interaction in 4.5.3.
> 

Agreed.  I will wait to open the second defect once I finish the implementation.
Comment 27 Paul Slauenwhite CLA 2009-01-27 13:26:03 EST
Deferring to TPTP 4.5.3 since TPTP 4.5.2 development is closed (http://www.eclipse.org/tptp/home/project_info/releaseinfo/4.5.2/schedule.html) and P2 defects are not considered candidates during release shut-down.
Comment 28 Paul Slauenwhite CLA 2009-06-30 07:00:27 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 29 Paul Slauenwhite CLA 2009-07-02 15:23:30 EDT
Reopening since still relevant.
Comment 30 Paul Slauenwhite CLA 2010-03-10 12:17:57 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 31 Paul Slauenwhite CLA 2010-03-25 20:01:25 EDT
Closing.