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

Bug 195683

Summary: Datapools are not portable.
Product: z_Archived Reporter: Paul Slauenwhite <paulslau>
Component: TPTPAssignee: Paul Slauenwhite <paulslau>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: housecleaned462
Bug Depends on: 195846    
Bug Blocks:    

Description Paul Slauenwhite CLA 2007-07-06 14:00:30 EDT
Datapools are not portable.

The datapool API (org.eclipse.hyades.execution.runtime.datapool.IDatapoolFactory) requires the absolute path to the datapool file (see http://help.eclipse.org/help32/topic/org.eclipse.hyades.test.doc.user/samples/saccessdp.htm).  For local execution, this is a non-issue, however for remote execution, the absolute path may be incorrect or even erroneous (cross-platform).  

A proposed solution would be provide a simple API in the org.eclipse.hyades.test.common.junit.HyadesTestSuite class that handles the following:

-Look-up given a name, relative path, or absolute path.  Without an absolute path, the datapool file would have to reside on the CLASSPATH or ROOTDIR.
-Various types of iterators.
-Typed accessors to individual cells.
Comment 1 Paul Slauenwhite CLA 2007-07-06 14:00:52 EDT
Joe, please provide a sizing.
Comment 2 Paul Slauenwhite CLA 2007-11-05 13:46:54 EST
Included in 4.5 plan for the Test Tools project.
Comment 3 Paul Slauenwhite CLA 2007-11-05 14:44:25 EST
Please provide a sizing for this defect before Monday, November 12, 2007.
Comment 4 Paul Slauenwhite CLA 2007-11-26 13:09:35 EST
When the user creates a datapool, add the required JARs to the project's classpath.
Comment 5 Paul Slauenwhite CLA 2008-01-07 08:42:29 EST
Deferring to I6.
Comment 6 Paul Slauenwhite CLA 2008-03-31 12:14:22 EDT
Deferring to I7 as discussed by PMC/AG (http://wiki.eclipse.org/TPTP-AG-20080331#Test_Project).
Comment 7 Paul Slauenwhite CLA 2008-03-31 12:18:17 EDT
Deferring to future as discussed by PMC/AG (http://wiki.eclipse.org/TPTP-AG-20080331#Test_Project).
Comment 8 Paul Slauenwhite CLA 2008-12-01 15:11:15 EST
This defect is impacting a consuming product.  We should consider it in the TPTP 4.5.3 plan.
Comment 9 Paul Slauenwhite CLA 2009-09-16 09:04:13 EDT
Consider adding the datapool to the project's classpath and using project-relative paths.  The datapool API
(org.eclipse.hyades.execution.runtime.datapool.IDatapoolFactory) could be passed a project-relative path and load the datapool using the following code:

URL datapoolResource = ClassLoader.getSystemResource("<datapool project-relative path><file path separator><datapool name>.datapool");

File datapoolFile = new File(datapoolResource .toURI());
Comment 10 Paul Slauenwhite CLA 2010-01-04 12:02:06 EST
(In reply to comment #9)
> Consider adding the datapool to the project's classpath and using
> project-relative paths.  The datapool API
> (org.eclipse.hyades.execution.runtime.datapool.IDatapoolFactory) could be
> passed a project-relative path and load the datapool using the following code:
> 
> URL datapoolResource = ClassLoader.getSystemResource("<datapool
> project-relative path><file path separator><datapool name>.datapool");
> 
> File datapoolFile = new File(datapoolResource .toURI());

When the datapool is associated with an artifact (see 195846) or included on the Eclipse project's classpath (requires the user to be manually completed), the datapool is deployed to the target machine.  The datapool should be added to the classpath of the test execution Java process so it can be loaded from its project-relative path (see above).  This requires the datapool API
> (org.eclipse.hyades.execution.runtime.datapool.IDatapoolFactory) to handle absolute and relative paths.

This defect requires new test cases and documentation with the details on how to configure datapools.
Comment 11 Paul Slauenwhite CLA 2010-03-10 12:18:42 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 12 Paul Slauenwhite CLA 2010-03-25 20:01:55 EDT
Closing.