Bug 146901 - [Functionality, Regression] tptp:test service fails when using the suite parameter
Summary: [Functionality, Regression] tptp:test service fails when using the suite par...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows All
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Joe Toomey CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2006-06-13 15:43 EDT by Joe Toomey CLA
Modified: 2016-05-05 10:53 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Toomey CLA 2006-06-13 15:43:01 EDT
Unexpected error occurs when using the suite parameter.  In the output below, the first path listed for the test suite is correct, but the error message shows a different, incorrect path.  Ant script appended after the output.

Test started!
Test 'C:\Projects\Project1\Script1.testsuite' executing
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedException
: org.eclipse.core.internal.resources.ResourceException: Resource /Project1/Projects/Project1/Script1.testsuite does not exist.


<project name="TPTP Ant Tasks Test Script"
default="test" xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant">

<property name="eclipse.home" value="C:\Program Files\IBM\Rational Functional Tester_7.0.0.20060612_1934"/>

<description>
  This ant script tests the TPTP automation ant task client adapters
  and also can be used to test the underlying execution of TPTP automatable services via the TPTP automation server
</description>

<!-- Execute TPTP test suites -->
<target name="test" description="Executes TPTP Test Suites using default TPTP Ant Tasks"> 

   <!-- Execute a TPTP test suite using the test task and providing the workspace -->
   <tptp:test
     workspace="C:\Program Files\IBM\Rational Functional Tester_7.0.0.20060612_1934\workspace"  
     project="Project1"
     suite="Script1.testsuite"
     synchronicity="synchronous"/>

  </target>
Comment 1 Joe Toomey CLA 2006-06-14 10:33:00 EDT
This may (or may not) be caused by the fact that the project is not located in the workspace directory (although it is loaded in the workspace.)
Comment 2 Scott E. Schneider CLA 2006-06-14 11:02:13 EDT
Need to investigate if this is a regression or if it is due to unsupported function.
Comment 3 Paul Slauenwhite CLA 2006-06-26 13:17:18 EDT
(In reply to comment #2)
> Need to investigate if this is a regression or if it is due to unsupported
> function.

Is this defect a must-fix for TPTP V4.2.0 or can it be deferred to V4.3.0/V4.2.1?

Comment 4 Joe Toomey CLA 2006-06-26 13:40:19 EDT
As the reporter of the defect, I confirm that this is not a must-fix for 4.2.
Comment 5 Joe Toomey CLA 2006-07-31 12:26:40 EDT
Workaround is to use an ant filelist containing only one test.
Comment 6 Joe Toomey CLA 2006-11-02 08:40:45 EST
I believe I understand the reason for this issue.  Will try to address early in 4.4.
Comment 7 Jonathan Brown CLA 2007-01-08 09:24:32 EST
I used the fileset workaround to get past the problem for testsuites, however a similar problem occurs when a deployment is specified as well.  

Is there a similar workaround for the deployment parameter?  I tried using a launch configuration and that approach appears to be unusable as well.

For what it's worth, I did *not* have my project files under the workspace folder hierarchy.  However, in my attempts to get things working I created a new workspace and imported all off my projects into the new workspace to no avail.


Comment 8 Joe Toomey CLA 2007-03-22 09:16:20 EDT
Deferring to i3 to allow completion of UI changes for other defects in time for UI freeze.
Comment 9 DuWayne Morris CLA 2007-03-26 14:57:33 EDT
I was not able to re-produce this defect in the release version of TPTP 4.2.2 or in TPTP 4.3.1 final.  In TPTP 4.4, I am currently unable to run a testsuite through an ant script for a different reason.  Filing a separate defect for that issue.
Comment 10 Joe Toomey CLA 2007-07-10 14:26:54 EDT
Validated in TPTP 4.4 with the following ant target:

  <target name="execute.suite">
	<tptp:execution project="org.eclipse.tptp.test.testservices.tests" resultsrefid="tptp.test.results1" results="junit_results/Windows_IA32/" suite="junit/Test.Sun142_TestServices.testsuite"/>
  </target>

Closing.