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

Bug 156207

Summary: TPTP Datapool tutorial is out of date.
Product: z_Archived Reporter: Jean-Christophe Weill <Jean-Christophe.Weill>
Component: TPTPAssignee: Nédélec Patrick <nedelec>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: Jean-Christophe.Weill, paulslau
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jean-Christophe Weill CLA 2006-09-05 10:48:42 EDT
I tried the Tutorial: Accessing a datapool from a JUnit test. on Callisto (Linux) and I did not acheive to have the step "7. Run the test", there was two process "Running" and "Launching" and nothing happened.

Linux = RedHat 4 Update 3
Eclipse + TPTP => Callisto
Java 1.5 4

using the integrated agent (I think)
Comment 1 Paul Slauenwhite CLA 2006-09-05 15:25:58 EDT
Correcting component.
Comment 2 Jerome Gout CLA 2006-10-16 09:08:31 EDT
Could you provide more information about the Agent Controller ?
Is it the Legacy, the New Technology or Integrated one ?
FYI, the New technology Agent Controller is not supported under Linux in release 4.2.x by the Test feature.

Thanks
Comment 3 Jean-Christophe Weill CLA 2006-10-16 10:15:54 EDT
I tryed the Integrated Agent.

Comment 4 Jean-Christophe Weill CLA 2006-10-16 10:16:26 EDT
I tryed the Integrated Agent.

Comment 5 Paul Slauenwhite CLA 2006-10-23 10:50:33 EDT
Please target to 4.4 and review the priority according to http://www.eclipse.org/tptp/home/documents/process/development/bugzilla.html.
Comment 6 Paul Slauenwhite CLA 2007-02-23 13:51:20 EST
This tutorial requires several additional updates to the sample code.  For example, class and package names.
Comment 7 Paul Slauenwhite CLA 2007-03-23 16:13:21 EDT
Assigning target.
Comment 8 Nédélec Patrick CLA 2007-04-12 11:07:44 EDT
Jean Christophe, I am unable to reproduce with the TPTP-4.4.0-200703270100D driver on a RedHat with the integarted agent controller.
Do you use the default deployment named "local_deployment"?

Paul, I understand that the package is not given by the sample and that the class name is not Java compliant (not starting with capital letter), is that what you mean? 
Comment 9 Paul Slauenwhite CLA 2007-04-12 12:11:59 EDT
(In reply to comment #8)
> Paul, I understand that the package is not given by the sample and that the
> class name is not Java compliant (not starting with capital letter), is that
> what you mean? 

Patrick, I was referring to the package/class names for the datapool APIs but after a closer inspection, they are correct in the TPTP-4.4.0-200702211545 driver.  Maybe for clarity, we can explicitly cite the require imports:

import org.eclipse.hyades.execution.runtime.datapool.IDatapool;
import org.eclipse.hyades.execution.runtime.datapool.IDatapoolFactory;
import org.eclipse.hyades.execution.runtime.datapool.IDatapoolIterator;
import org.eclipse.hyades.models.common.datapool.impl.Common_DatapoolFactoryImpl;

That said, we should change shoppingCartTest_src to MyShoppingCartTest and change testShoppingCartConstructor to testMyShoppingCartConstructor.

Comment 10 Nédélec Patrick CLA 2007-04-17 07:56:22 EDT
Fix completed:
 - required import lists updated,
 - changed shoppingCartTest_src to MyShoppingCartTest,
 - changed testShoppingCartConstructor to testMyShoppingCartConstructor,
 - screenshots updated accordingly.

Jean Christophe, please reopen if you still have the issue.
Comment 11 Paul Slauenwhite CLA 2007-06-02 14:52:00 EDT
Reporter: Please verify and close in preparation for shutting down the TPTP 4.4 release.  Thanks.
Comment 12 Jean-Christophe Weill CLA 2007-07-02 06:47:53 EDT
This seems solved on TPTP 4.4