Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » TestSuite not found in eclipse workspace error
TestSuite not found in eclipse workspace error [message #86131] Wed, 01 November 2006 08:34 Go to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Hi,

I have a TPTP testsuite, which I want to run headless using Ant script :

Problem I have is it can not locate the testProjectTest.testsuite in the
workspace, stacktrace is following, I am not sure, if I am missing
something..
____________________________________________________________ _

Buildfile: testSuite.xml

platform-verification:
[echo] Verifying connection...
Verification started!
Verifying connection:
{connectionString=tptp:rac://localhost:10002/default, specification=tptp,
serverClass=rac, host=localhost, port=10002, serverInstance=/default,
user=null, password=null}
The specified agent controller 'tptp:rac://localhost:10002/default' is up
and running!
Verification completed!

test:
[tptp:test] Test started!
[tptp:test] Test '\testProjectTest.testsuite' executing
[tptp:test]
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
org.eclipse.core.internal.resources.ResourceException: Resource
/testProject/testProjectTest.testsuite does not exist.
____________________________________________________________ ______

Following is the Ant Script :
____________________________________________________________ ______

<project name="TPTP" default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">

<property name="tptp.test.connection"
value="tptp:rac://localhost:10002/default"/>
<property name="tptp.automation.eclipse" value="C:/Development/eclipse" />
<property name="project.dir" value="D:/Development/myProjects/Java" />

<target name="main" depends="platform-verification, test" />
<target name="platform-verification">
<echo message="Verifying connection..." />
<condition property="tptp.platform.available">
<tptp:verification />
</condition>
<fail unless="tptp.platform.available" message="The agent
controller is not available using the specified connection string!!" />
</target>

<target name="test" description="Executes TPTP Test Suites using
default TPTP Ant Tasks">
<tptp:test
workspace="${project.dir}"
project="testProject"
suite="testProjectTest.testsuite"
synchronicity="synchronous">
</tptp:test>
</target>

</project>

Thanks in advance!

Regards
Ravi
Re: TestSuite not found in eclipse workspace error [message #86163 is a reply to message #86131] Wed, 01 November 2006 16:40 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
According to your script below, the following statements must be true:

1) A workspace must exist under D:/Development/myProjects/Java
2) There is a project under the workspace called testProject (i.e.
D:/Development/myProjects/Java/testProject must exist)
3) There is a test suite under the project called testProjectTest.testsuite
(i.e. D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
must exist)

Make sure that the workspace is not opened by any other Eclipse workbench
before you run the ANT script.
If all the statements above are true, then try the following script to see
if there is any difference:

<project name="Test Run" default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
<property name="tptp.automation.eclipse" value="C:/Development/eclipse"/>
<property name="tptp.test.workspace"
value="D:/Development/myProjects/Java"/>
<property name="tptp.test.connection"
value="tptp:rac://localhost:10002/default"/>
<target name="main" depends="platform-verification, test"/>
<target name="platform-verification">
<echo message="Verifying connection..." />
<condition property="tptp.platform.available">
<tptp:verification />
</condition>
<fail unless="tptp.platform.available" message="The agent controller is
not available using the specified connection string!!" />
</target>

<target name="test" description="Executes TPTP Test Suites using default
TPTP Ant Tasks">
<tptp:test project="testProject" suite="testProjectTest.testsuite" />
</target>
</project>

Thanks,
Ali Mehregani

> <project name="TPTP" default="main"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>
> <property name="tptp.test.connection"
> value="tptp:rac://localhost:10002/default"/>
> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"
> />
> <property name="project.dir" value="D:/Development/myProjects/Java" />
>
> <target name="main" depends="platform-verification, test" />
> <target name="platform-verification">
> <echo message="Verifying connection..." />
> <condition property="tptp.platform.available">
> <tptp:verification />
> </condition>
> <fail unless="tptp.platform.available" message="The agent
> controller is not available using the specified connection string!!" />
> </target>
>
> <target name="test" description="Executes TPTP Test Suites using
> default TPTP Ant Tasks">
> <tptp:test
> workspace="${project.dir}"
> project="testProject"
> suite="testProjectTest.testsuite"
> synchronicity="synchronous">
> </tptp:test>
> </target>
>
> </project>


"Ravi Roy" <ravi.aroy@gmail.com> wrote in message
news:ei9m67$oh4$1@utils.eclipse.org...
> Hi,
>
> I have a TPTP testsuite, which I want to run headless using Ant script :
>
> Problem I have is it can not locate the testProjectTest.testsuite in the
> workspace, stacktrace is following, I am not sure, if I am missing
> something..
> ____________________________________________________________ _
>
> Buildfile: testSuite.xml
>
> platform-verification:
> [echo] Verifying connection...
> Verification started!
> Verifying connection:
> {connectionString=tptp:rac://localhost:10002/default, specification=tptp,
> serverClass=rac, host=localhost, port=10002, serverInstance=/default,
> user=null, password=null}
> The specified agent controller 'tptp:rac://localhost:10002/default' is up
> and running!
> Verification completed!
>
> test:
> [tptp:test] Test started!
> [tptp:test] Test '\testProjectTest.testsuite' executing
> [tptp:test]
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
> org.eclipse.core.internal.resources.ResourceException: Resource
> /testProject/testProjectTest.testsuite does not exist.
> ____________________________________________________________ ______
>
> Following is the Ant Script :
> ____________________________________________________________ ______
>
> <project name="TPTP" default="main"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>
> <property name="tptp.test.connection"
> value="tptp:rac://localhost:10002/default"/>
> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"
> />
> <property name="project.dir" value="D:/Development/myProjects/Java" />
>
> <target name="main" depends="platform-verification, test" />
> <target name="platform-verification">
> <echo message="Verifying connection..." />
> <condition property="tptp.platform.available">
> <tptp:verification />
> </condition>
> <fail unless="tptp.platform.available" message="The agent
> controller is not available using the specified connection string!!" />
> </target>
>
> <target name="test" description="Executes TPTP Test Suites using
> default TPTP Ant Tasks">
> <tptp:test
> workspace="${project.dir}"
> project="testProject"
> suite="testProjectTest.testsuite"
> synchronicity="synchronous">
> </tptp:test>
> </target>
>
> </project>
>
> Thanks in advance!
>
> Regards
> Ravi
>
>
Re: TestSuite not found in eclipse workspace error [message #86239 is a reply to message #86163] Thu, 02 November 2006 06:45 Go to previous messageGo to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Thanks Ali for the reply, but no luck with the suggested configuration you
mentioned, same error as earlier. Though I am able to run the test in UI
mode and it generates the desired .execution file, which render the JUnit
test results.

Do you have any further idea what can be wrong ?

Regards,
Ravi


"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eiaimo$4b6$1@utils.eclipse.org...
> According to your script below, the following statements must be true:
>
> 1) A workspace must exist under D:/Development/myProjects/Java
> 2) There is a project under the workspace called testProject (i.e.
> D:/Development/myProjects/Java/testProject must exist)
> 3) There is a test suite under the project called
> testProjectTest.testsuite (i.e.
> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite must
> exist)
>
> Make sure that the workspace is not opened by any other Eclipse workbench
> before you run the ANT script.
> If all the statements above are true, then try the following script to see
> if there is any difference:
>
> <project name="Test Run" default="main"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"/>
> <property name="tptp.test.workspace"
> value="D:/Development/myProjects/Java"/>
> <property name="tptp.test.connection"
> value="tptp:rac://localhost:10002/default"/>
> <target name="main" depends="platform-verification, test"/>
> <target name="platform-verification">
> <echo message="Verifying connection..." />
> <condition property="tptp.platform.available">
> <tptp:verification />
> </condition>
> <fail unless="tptp.platform.available" message="The agent controller is
> not available using the specified connection string!!" />
> </target>
>
> <target name="test" description="Executes TPTP Test Suites using default
> TPTP Ant Tasks">
> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
> </target>
> </project>
>
> Thanks,
> Ali Mehregani
>
>> <project name="TPTP" default="main"
>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>
>> <property name="tptp.test.connection"
>> value="tptp:rac://localhost:10002/default"/>
>> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"
>> />
>> <property name="project.dir" value="D:/Development/myProjects/Java" />
>>
>> <target name="main" depends="platform-verification, test" />
>> <target name="platform-verification">
>> <echo message="Verifying connection..." />
>> <condition property="tptp.platform.available">
>> <tptp:verification />
>> </condition>
>> <fail unless="tptp.platform.available" message="The agent
>> controller is not available using the specified connection string!!" />
>> </target>
>>
>> <target name="test" description="Executes TPTP Test Suites using
>> default TPTP Ant Tasks">
>> <tptp:test
>> workspace="${project.dir}"
>> project="testProject"
>> suite="testProjectTest.testsuite"
>> synchronicity="synchronous">
>> </tptp:test>
>> </target>
>>
>> </project>
>
>
> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
> news:ei9m67$oh4$1@utils.eclipse.org...
>> Hi,
>>
>> I have a TPTP testsuite, which I want to run headless using Ant script :
>>
>> Problem I have is it can not locate the testProjectTest.testsuite in the
>> workspace, stacktrace is following, I am not sure, if I am missing
>> something..
>> ____________________________________________________________ _
>>
>> Buildfile: testSuite.xml
>>
>> platform-verification:
>> [echo] Verifying connection...
>> Verification started!
>> Verifying connection:
>> {connectionString=tptp:rac://localhost:10002/default, specification=tptp,
>> serverClass=rac, host=localhost, port=10002, serverInstance=/default,
>> user=null, password=null}
>> The specified agent controller 'tptp:rac://localhost:10002/default' is up
>> and running!
>> Verification completed!
>>
>> test:
>> [tptp:test] Test started!
>> [tptp:test] Test '\testProjectTest.testsuite' executing
>> [tptp:test]
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>> org.eclipse.core.internal.resources.ResourceException: Resource
>> /testProject/testProjectTest.testsuite does not exist.
>> ____________________________________________________________ ______
>>
>> Following is the Ant Script :
>> ____________________________________________________________ ______
>>
>> <project name="TPTP" default="main"
>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>
>> <property name="tptp.test.connection"
>> value="tptp:rac://localhost:10002/default"/>
>> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"
>> />
>> <property name="project.dir" value="D:/Development/myProjects/Java" />
>>
>> <target name="main" depends="platform-verification, test" />
>> <target name="platform-verification">
>> <echo message="Verifying connection..." />
>> <condition property="tptp.platform.available">
>> <tptp:verification />
>> </condition>
>> <fail unless="tptp.platform.available" message="The agent
>> controller is not available using the specified connection string!!" />
>> </target>
>>
>> <target name="test" description="Executes TPTP Test Suites using
>> default TPTP Ant Tasks">
>> <tptp:test
>> workspace="${project.dir}"
>> project="testProject"
>> suite="testProjectTest.testsuite"
>> synchronicity="synchronous">
>> </tptp:test>
>> </target>
>>
>> </project>
>>
>> Thanks in advance!
>>
>> Regards
>> Ravi
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86299 is a reply to message #86239] Thu, 02 November 2006 19:10 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Everything worked on my machine using the script that I included under
similar settings. Can you check to make sure that the project does not
contain a 'src' folder? It could be possible that the test suite is under
the source folder, in which case it is being referenced incorrectly.

Can you copy and paste
" D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite " in
the address bar of your explorer window to make sure that the file exists?

Thanks,
Ali Mehregani

"Ravi Roy" <ravi.aroy@gmail.com> wrote in message
news:eic46v$ku1$1@utils.eclipse.org...
> Thanks Ali for the reply, but no luck with the suggested configuration you
> mentioned, same error as earlier. Though I am able to run the test in UI
> mode and it generates the desired .execution file, which render the JUnit
> test results.
>
> Do you have any further idea what can be wrong ?
>
> Regards,
> Ravi
>
>
> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> news:eiaimo$4b6$1@utils.eclipse.org...
>> According to your script below, the following statements must be true:
>>
>> 1) A workspace must exist under D:/Development/myProjects/Java
>> 2) There is a project under the workspace called testProject (i.e.
>> D:/Development/myProjects/Java/testProject must exist)
>> 3) There is a test suite under the project called
>> testProjectTest.testsuite (i.e.
>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite must
>> exist)
>>
>> Make sure that the workspace is not opened by any other Eclipse workbench
>> before you run the ANT script.
>> If all the statements above are true, then try the following script to
>> see if there is any difference:
>>
>> <project name="Test Run" default="main"
>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"/>
>> <property name="tptp.test.workspace"
>> value="D:/Development/myProjects/Java"/>
>> <property name="tptp.test.connection"
>> value="tptp:rac://localhost:10002/default"/>
>> <target name="main" depends="platform-verification, test"/>
>> <target name="platform-verification">
>> <echo message="Verifying connection..." />
>> <condition property="tptp.platform.available">
>> <tptp:verification />
>> </condition>
>> <fail unless="tptp.platform.available" message="The agent controller is
>> not available using the specified connection string!!" />
>> </target>
>>
>> <target name="test" description="Executes TPTP Test Suites using default
>> TPTP Ant Tasks">
>> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
>> </target>
>> </project>
>>
>> Thanks,
>> Ali Mehregani
>>
>>> <project name="TPTP" default="main"
>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>
>>> <property name="tptp.test.connection"
>>> value="tptp:rac://localhost:10002/default"/>
>>> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"
>>> />
>>> <property name="project.dir" value="D:/Development/myProjects/Java" />
>>>
>>> <target name="main" depends="platform-verification, test" />
>>> <target name="platform-verification">
>>> <echo message="Verifying connection..." />
>>> <condition property="tptp.platform.available">
>>> <tptp:verification />
>>> </condition>
>>> <fail unless="tptp.platform.available" message="The agent
>>> controller is not available using the specified connection string!!" />
>>> </target>
>>>
>>> <target name="test" description="Executes TPTP Test Suites using
>>> default TPTP Ant Tasks">
>>> <tptp:test
>>> workspace="${project.dir}"
>>> project="testProject"
>>> suite="testProjectTest.testsuite"
>>> synchronicity="synchronous">
>>> </tptp:test>
>>> </target>
>>>
>>> </project>
>>
>>
>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>> news:ei9m67$oh4$1@utils.eclipse.org...
>>> Hi,
>>>
>>> I have a TPTP testsuite, which I want to run headless using Ant script :
>>>
>>> Problem I have is it can not locate the testProjectTest.testsuite in the
>>> workspace, stacktrace is following, I am not sure, if I am missing
>>> something..
>>> ____________________________________________________________ _
>>>
>>> Buildfile: testSuite.xml
>>>
>>> platform-verification:
>>> [echo] Verifying connection...
>>> Verification started!
>>> Verifying connection:
>>> {connectionString=tptp:rac://localhost:10002/default,
>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>> serverInstance=/default, user=null, password=null}
>>> The specified agent controller 'tptp:rac://localhost:10002/default' is
>>> up and running!
>>> Verification completed!
>>>
>>> test:
>>> [tptp:test] Test started!
>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>> [tptp:test]
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>> /testProject/testProjectTest.testsuite does not exist.
>>> ____________________________________________________________ ______
>>>
>>> Following is the Ant Script :
>>> ____________________________________________________________ ______
>>>
>>> <project name="TPTP" default="main"
>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>
>>> <property name="tptp.test.connection"
>>> value="tptp:rac://localhost:10002/default"/>
>>> <property name="tptp.automation.eclipse" value="C:/Development/eclipse"
>>> />
>>> <property name="project.dir" value="D:/Development/myProjects/Java" />
>>>
>>> <target name="main" depends="platform-verification, test" />
>>> <target name="platform-verification">
>>> <echo message="Verifying connection..." />
>>> <condition property="tptp.platform.available">
>>> <tptp:verification />
>>> </condition>
>>> <fail unless="tptp.platform.available" message="The agent
>>> controller is not available using the specified connection string!!" />
>>> </target>
>>>
>>> <target name="test" description="Executes TPTP Test Suites using
>>> default TPTP Ant Tasks">
>>> <tptp:test
>>> workspace="${project.dir}"
>>> project="testProject"
>>> suite="testProjectTest.testsuite"
>>> synchronicity="synchronous">
>>> </tptp:test>
>>> </target>
>>>
>>> </project>
>>>
>>> Thanks in advance!
>>>
>>> Regards
>>> Ravi
>>>
>>>
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86314 is a reply to message #86299] Fri, 03 November 2006 09:01 Go to previous messageGo to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Thanks Ali,

Yes, project contains 'src' folder, but I have put testProjectTest.testsuite
in the root folder of this project, though test sources which have been
imported to make testProjectTest.testsuite are in packages under 'src'
folder.

I am able to browse the testProjectTest.testsuite using explorer. It is a
bit strange behaviour, while you are able to do that.

If I change the followings in <tptp:test> task as per below, then it does
not give me that error -- project does not exist, but gives the
NullPointerException. Serveral permutations and combinations have been
tried, but If specify -- project="testProject" then it always says that
'project' does not exist, though project and testsutite are already there.
__________________________________________________________
<target name="test" description="Executes TPTP Test Suites using default
TPTP Ant Tasks">
<tptp:test suite="src/com/mycompany/package1/testProjectTest.testsuite " />
</target>
</project>
_________________________________________________________

Error :

[tptp:test] Test started!
[tptp:test] java.lang.NullPointerException
[tptp:test] at
org.eclipse.hyades.automation.server.AbstractProjectSensitiv eService.refreshProject(AbstractProjectSensitiveService.java :99)
[tptp:test] at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.initialize(AbstractTestExecutionService.java:559)
[tptp:test] at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:410)
[tptp:test] at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
[tptp:test] at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
[tptp:test] at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
[tptp:test] at java.lang.Thread.run(Unknown Source)

Not, sure what is wrong.

Note : I had downloaded the exmaples from eclipsecon06 and those examples
with sample Ant scripts too were tried, I also have the same error --
project does not exist in case if I specify project="something" and if I do
not spcify project attribute and specify full path of testsuite --
suite="com.mycompany.package.sometestsuite.testsuite" then
NullPointerException.

Thanks.
Ravi



"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eidfs6$6di$1@utils.eclipse.org...
> Everything worked on my machine using the script that I included under
> similar settings. Can you check to make sure that the project does not
> contain a 'src' folder? It could be possible that the test suite is under
> the source folder, in which case it is being referenced incorrectly.
>
> Can you copy and paste
> " D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite " in
> the address bar of your explorer window to make sure that the file exists?
>
> Thanks,
> Ali Mehregani
>
> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
> news:eic46v$ku1$1@utils.eclipse.org...
>> Thanks Ali for the reply, but no luck with the suggested configuration
>> you mentioned, same error as earlier. Though I am able to run the test in
>> UI mode and it generates the desired .execution file, which render the
>> JUnit test results.
>>
>> Do you have any further idea what can be wrong ?
>>
>> Regards,
>> Ravi
>>
>>
>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>> news:eiaimo$4b6$1@utils.eclipse.org...
>>> According to your script below, the following statements must be true:
>>>
>>> 1) A workspace must exist under D:/Development/myProjects/Java
>>> 2) There is a project under the workspace called testProject (i.e.
>>> D:/Development/myProjects/Java/testProject must exist)
>>> 3) There is a test suite under the project called
>>> testProjectTest.testsuite (i.e.
>>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
>>> must exist)
>>>
>>> Make sure that the workspace is not opened by any other Eclipse
>>> workbench before you run the ANT script.
>>> If all the statements above are true, then try the following script to
>>> see if there is any difference:
>>>
>>> <project name="Test Run" default="main"
>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>> <property name="tptp.automation.eclipse"
>>> value="C:/Development/eclipse"/>
>>> <property name="tptp.test.workspace"
>>> value="D:/Development/myProjects/Java"/>
>>> <property name="tptp.test.connection"
>>> value="tptp:rac://localhost:10002/default"/>
>>> <target name="main" depends="platform-verification, test"/>
>>> <target name="platform-verification">
>>> <echo message="Verifying connection..." />
>>> <condition property="tptp.platform.available">
>>> <tptp:verification />
>>> </condition>
>>> <fail unless="tptp.platform.available" message="The agent controller is
>>> not available using the specified connection string!!" />
>>> </target>
>>>
>>> <target name="test" description="Executes TPTP Test Suites using default
>>> TPTP Ant Tasks">
>>> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
>>> </target>
>>> </project>
>>>
>>> Thanks,
>>> Ali Mehregani
>>>
>>>> <project name="TPTP" default="main"
>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>
>>>> <property name="tptp.test.connection"
>>>> value="tptp:rac://localhost:10002/default"/>
>>>> <property name="tptp.automation.eclipse"
>>>> value="C:/Development/eclipse" />
>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>> />
>>>>
>>>> <target name="main" depends="platform-verification, test" />
>>>> <target name="platform-verification">
>>>> <echo message="Verifying connection..." />
>>>> <condition property="tptp.platform.available">
>>>> <tptp:verification />
>>>> </condition>
>>>> <fail unless="tptp.platform.available" message="The agent
>>>> controller is not available using the specified connection string!!" />
>>>> </target>
>>>>
>>>> <target name="test" description="Executes TPTP Test Suites using
>>>> default TPTP Ant Tasks">
>>>> <tptp:test
>>>> workspace="${project.dir}"
>>>> project="testProject"
>>>> suite="testProjectTest.testsuite"
>>>> synchronicity="synchronous">
>>>> </tptp:test>
>>>> </target>
>>>>
>>>> </project>
>>>
>>>
>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>> news:ei9m67$oh4$1@utils.eclipse.org...
>>>> Hi,
>>>>
>>>> I have a TPTP testsuite, which I want to run headless using Ant script
>>>> :
>>>>
>>>> Problem I have is it can not locate the testProjectTest.testsuite in
>>>> the workspace, stacktrace is following, I am not sure, if I am missing
>>>> something..
>>>> ____________________________________________________________ _
>>>>
>>>> Buildfile: testSuite.xml
>>>>
>>>> platform-verification:
>>>> [echo] Verifying connection...
>>>> Verification started!
>>>> Verifying connection:
>>>> {connectionString=tptp:rac://localhost:10002/default,
>>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>>> serverInstance=/default, user=null, password=null}
>>>> The specified agent controller 'tptp:rac://localhost:10002/default' is
>>>> up and running!
>>>> Verification completed!
>>>>
>>>> test:
>>>> [tptp:test] Test started!
>>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>>> [tptp:test]
>>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>>> /testProject/testProjectTest.testsuite does not exist.
>>>> ____________________________________________________________ ______
>>>>
>>>> Following is the Ant Script :
>>>> ____________________________________________________________ ______
>>>>
>>>> <project name="TPTP" default="main"
>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>
>>>> <property name="tptp.test.connection"
>>>> value="tptp:rac://localhost:10002/default"/>
>>>> <property name="tptp.automation.eclipse"
>>>> value="C:/Development/eclipse" />
>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>> />
>>>>
>>>> <target name="main" depends="platform-verification, test" />
>>>> <target name="platform-verification">
>>>> <echo message="Verifying connection..." />
>>>> <condition property="tptp.platform.available">
>>>> <tptp:verification />
>>>> </condition>
>>>> <fail unless="tptp.platform.available" message="The agent
>>>> controller is not available using the specified connection string!!" />
>>>> </target>
>>>>
>>>> <target name="test" description="Executes TPTP Test Suites using
>>>> default TPTP Ant Tasks">
>>>> <tptp:test
>>>> workspace="${project.dir}"
>>>> project="testProject"
>>>> suite="testProjectTest.testsuite"
>>>> synchronicity="synchronous">
>>>> </tptp:test>
>>>> </target>
>>>>
>>>> </project>
>>>>
>>>> Thanks in advance!
>>>>
>>>> Regards
>>>> Ravi
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86329 is a reply to message #86299] Fri, 03 November 2006 10:13 Go to previous messageGo to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Hi Ali,

As I was looking for the information to further solve this, in the meantime
I found the following post, while this post shows the same problem
(testSuite does not exist) on Linux, but problem is same.

http://dev.eclipse.org/newslists/news.eclipse.tptp/msg02832. html

I am not sure, if this leads to some further thoughts on this.

Regards.
Ravi.


"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eidfs6$6di$1@utils.eclipse.org...
> Everything worked on my machine using the script that I included under
> similar settings. Can you check to make sure that the project does not
> contain a 'src' folder? It could be possible that the test suite is under
> the source folder, in which case it is being referenced incorrectly.
>
> Can you copy and paste
> " D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite " in
> the address bar of your explorer window to make sure that the file exists?
>
> Thanks,
> Ali Mehregani
>
> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
> news:eic46v$ku1$1@utils.eclipse.org...
>> Thanks Ali for the reply, but no luck with the suggested configuration
>> you mentioned, same error as earlier. Though I am able to run the test in
>> UI mode and it generates the desired .execution file, which render the
>> JUnit test results.
>>
>> Do you have any further idea what can be wrong ?
>>
>> Regards,
>> Ravi
>>
>>
>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>> news:eiaimo$4b6$1@utils.eclipse.org...
>>> According to your script below, the following statements must be true:
>>>
>>> 1) A workspace must exist under D:/Development/myProjects/Java
>>> 2) There is a project under the workspace called testProject (i.e.
>>> D:/Development/myProjects/Java/testProject must exist)
>>> 3) There is a test suite under the project called
>>> testProjectTest.testsuite (i.e.
>>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
>>> must exist)
>>>
>>> Make sure that the workspace is not opened by any other Eclipse
>>> workbench before you run the ANT script.
>>> If all the statements above are true, then try the following script to
>>> see if there is any difference:
>>>
>>> <project name="Test Run" default="main"
>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>> <property name="tptp.automation.eclipse"
>>> value="C:/Development/eclipse"/>
>>> <property name="tptp.test.workspace"
>>> value="D:/Development/myProjects/Java"/>
>>> <property name="tptp.test.connection"
>>> value="tptp:rac://localhost:10002/default"/>
>>> <target name="main" depends="platform-verification, test"/>
>>> <target name="platform-verification">
>>> <echo message="Verifying connection..." />
>>> <condition property="tptp.platform.available">
>>> <tptp:verification />
>>> </condition>
>>> <fail unless="tptp.platform.available" message="The agent controller is
>>> not available using the specified connection string!!" />
>>> </target>
>>>
>>> <target name="test" description="Executes TPTP Test Suites using default
>>> TPTP Ant Tasks">
>>> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
>>> </target>
>>> </project>
>>>
>>> Thanks,
>>> Ali Mehregani
>>>
>>>> <project name="TPTP" default="main"
>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>
>>>> <property name="tptp.test.connection"
>>>> value="tptp:rac://localhost:10002/default"/>
>>>> <property name="tptp.automation.eclipse"
>>>> value="C:/Development/eclipse" />
>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>> />
>>>>
>>>> <target name="main" depends="platform-verification, test" />
>>>> <target name="platform-verification">
>>>> <echo message="Verifying connection..." />
>>>> <condition property="tptp.platform.available">
>>>> <tptp:verification />
>>>> </condition>
>>>> <fail unless="tptp.platform.available" message="The agent
>>>> controller is not available using the specified connection string!!" />
>>>> </target>
>>>>
>>>> <target name="test" description="Executes TPTP Test Suites using
>>>> default TPTP Ant Tasks">
>>>> <tptp:test
>>>> workspace="${project.dir}"
>>>> project="testProject"
>>>> suite="testProjectTest.testsuite"
>>>> synchronicity="synchronous">
>>>> </tptp:test>
>>>> </target>
>>>>
>>>> </project>
>>>
>>>
>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>> news:ei9m67$oh4$1@utils.eclipse.org...
>>>> Hi,
>>>>
>>>> I have a TPTP testsuite, which I want to run headless using Ant script
>>>> :
>>>>
>>>> Problem I have is it can not locate the testProjectTest.testsuite in
>>>> the workspace, stacktrace is following, I am not sure, if I am missing
>>>> something..
>>>> ____________________________________________________________ _
>>>>
>>>> Buildfile: testSuite.xml
>>>>
>>>> platform-verification:
>>>> [echo] Verifying connection...
>>>> Verification started!
>>>> Verifying connection:
>>>> {connectionString=tptp:rac://localhost:10002/default,
>>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>>> serverInstance=/default, user=null, password=null}
>>>> The specified agent controller 'tptp:rac://localhost:10002/default' is
>>>> up and running!
>>>> Verification completed!
>>>>
>>>> test:
>>>> [tptp:test] Test started!
>>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>>> [tptp:test]
>>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>>> /testProject/testProjectTest.testsuite does not exist.
>>>> ____________________________________________________________ ______
>>>>
>>>> Following is the Ant Script :
>>>> ____________________________________________________________ ______
>>>>
>>>> <project name="TPTP" default="main"
>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>
>>>> <property name="tptp.test.connection"
>>>> value="tptp:rac://localhost:10002/default"/>
>>>> <property name="tptp.automation.eclipse"
>>>> value="C:/Development/eclipse" />
>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>> />
>>>>
>>>> <target name="main" depends="platform-verification, test" />
>>>> <target name="platform-verification">
>>>> <echo message="Verifying connection..." />
>>>> <condition property="tptp.platform.available">
>>>> <tptp:verification />
>>>> </condition>
>>>> <fail unless="tptp.platform.available" message="The agent
>>>> controller is not available using the specified connection string!!" />
>>>> </target>
>>>>
>>>> <target name="test" description="Executes TPTP Test Suites using
>>>> default TPTP Ant Tasks">
>>>> <tptp:test
>>>> workspace="${project.dir}"
>>>> project="testProject"
>>>> suite="testProjectTest.testsuite"
>>>> synchronicity="synchronous">
>>>> </tptp:test>
>>>> </target>
>>>>
>>>> </project>
>>>>
>>>> Thanks in advance!
>>>>
>>>> Regards
>>>> Ravi
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86376 is a reply to message #86314] Fri, 03 November 2006 16:39 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Ravi,

I'm able to reproduce your problem (the exception about not finding the
testsuite) when I use the same workspace that contains the test suite to
launch the ANT script. Everything will work fine when a different workspace
is used. Here are my exact steps:

1) Start a workbench using a workspace called ws1
2) Under ws1: create a Java project with a TPTP JUnit test suite
3) Start a second workbench using a workspace called ws2
4) Under ws2: create a Project with an ANT script pointing to the test suite
under ws1
5) Under ws2: create an ANT launch configuration that points to the ant
script created
6) Under ws2: launch the ANT script

If I perform 5) and 6) under ws1, then I get a resource not found exception.
I was wondering if you are doing the same?


"Ravi Roy" <ravi.aroy@gmail.com> wrote in message
news:eif0hc$q9p$1@utils.eclipse.org...
> Thanks Ali,
>
> Yes, project contains 'src' folder, but I have put
> testProjectTest.testsuite in the root folder of this project, though test
> sources which have been imported to make testProjectTest.testsuite are in
> packages under 'src' folder.
>
> I am able to browse the testProjectTest.testsuite using explorer. It is a
> bit strange behaviour, while you are able to do that.
>
> If I change the followings in <tptp:test> task as per below, then it does
> not give me that error -- project does not exist, but gives the
> NullPointerException. Serveral permutations and combinations have been
> tried, but If specify -- project="testProject" then it always says that
> 'project' does not exist, though project and testsutite are already there.
> __________________________________________________________
> <target name="test" description="Executes TPTP Test Suites using default
> TPTP Ant Tasks">
> <tptp:test suite="src/com/mycompany/package1/testProjectTest.testsuite "
> />
> </target>
> </project>
> _________________________________________________________
>
> Error :
>
> [tptp:test] Test started!
> [tptp:test] java.lang.NullPointerException
> [tptp:test] at
> org.eclipse.hyades.automation.server.AbstractProjectSensitiv eService.refreshProject(AbstractProjectSensitiveService.java :99)
> [tptp:test] at
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.initialize(AbstractTestExecutionService.java:559)
> [tptp:test] at
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:410)
> [tptp:test] at
> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
> [tptp:test] at
> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
> [tptp:test] at
> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
> [tptp:test] at java.lang.Thread.run(Unknown Source)
>
> Not, sure what is wrong.
>
> Note : I had downloaded the exmaples from eclipsecon06 and those examples
> with sample Ant scripts too were tried, I also have the same error --
> project does not exist in case if I specify project="something" and if I
> do not spcify project attribute and specify full path of testsuite --
> suite="com.mycompany.package.sometestsuite.testsuite" then
> NullPointerException.
>
> Thanks.
> Ravi
>
>
>
> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> news:eidfs6$6di$1@utils.eclipse.org...
>> Everything worked on my machine using the script that I included under
>> similar settings. Can you check to make sure that the project does not
>> contain a 'src' folder? It could be possible that the test suite is
>> under the source folder, in which case it is being referenced
>> incorrectly.
>>
>> Can you copy and paste
>> " D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite " in
>> the address bar of your explorer window to make sure that the file
>> exists?
>>
>> Thanks,
>> Ali Mehregani
>>
>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>> news:eic46v$ku1$1@utils.eclipse.org...
>>> Thanks Ali for the reply, but no luck with the suggested configuration
>>> you mentioned, same error as earlier. Though I am able to run the test
>>> in UI mode and it generates the desired .execution file, which render
>>> the JUnit test results.
>>>
>>> Do you have any further idea what can be wrong ?
>>>
>>> Regards,
>>> Ravi
>>>
>>>
>>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>>> news:eiaimo$4b6$1@utils.eclipse.org...
>>>> According to your script below, the following statements must be true:
>>>>
>>>> 1) A workspace must exist under D:/Development/myProjects/Java
>>>> 2) There is a project under the workspace called testProject (i.e.
>>>> D:/Development/myProjects/Java/testProject must exist)
>>>> 3) There is a test suite under the project called
>>>> testProjectTest.testsuite (i.e.
>>>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
>>>> must exist)
>>>>
>>>> Make sure that the workspace is not opened by any other Eclipse
>>>> workbench before you run the ANT script.
>>>> If all the statements above are true, then try the following script to
>>>> see if there is any difference:
>>>>
>>>> <project name="Test Run" default="main"
>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>> <property name="tptp.automation.eclipse"
>>>> value="C:/Development/eclipse"/>
>>>> <property name="tptp.test.workspace"
>>>> value="D:/Development/myProjects/Java"/>
>>>> <property name="tptp.test.connection"
>>>> value="tptp:rac://localhost:10002/default"/>
>>>> <target name="main" depends="platform-verification, test"/>
>>>> <target name="platform-verification">
>>>> <echo message="Verifying connection..." />
>>>> <condition property="tptp.platform.available">
>>>> <tptp:verification />
>>>> </condition>
>>>> <fail unless="tptp.platform.available" message="The agent controller
>>>> is not available using the specified connection string!!" />
>>>> </target>
>>>>
>>>> <target name="test" description="Executes TPTP Test Suites using
>>>> default TPTP Ant Tasks">
>>>> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
>>>> </target>
>>>> </project>
>>>>
>>>> Thanks,
>>>> Ali Mehregani
>>>>
>>>>> <project name="TPTP" default="main"
>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>
>>>>> <property name="tptp.test.connection"
>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>> <property name="tptp.automation.eclipse"
>>>>> value="C:/Development/eclipse" />
>>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>>> />
>>>>>
>>>>> <target name="main" depends="platform-verification, test" />
>>>>> <target name="platform-verification">
>>>>> <echo message="Verifying connection..." />
>>>>> <condition property="tptp.platform.available">
>>>>> <tptp:verification />
>>>>> </condition>
>>>>> <fail unless="tptp.platform.available" message="The agent
>>>>> controller is not available using the specified connection string!!"
>>>>> />
>>>>> </target>
>>>>>
>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>> using default TPTP Ant Tasks">
>>>>> <tptp:test
>>>>> workspace="${project.dir}"
>>>>> project="testProject"
>>>>> suite="testProjectTest.testsuite"
>>>>> synchronicity="synchronous">
>>>>> </tptp:test>
>>>>> </target>
>>>>>
>>>>> </project>
>>>>
>>>>
>>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>>> news:ei9m67$oh4$1@utils.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> I have a TPTP testsuite, which I want to run headless using Ant script
>>>>> :
>>>>>
>>>>> Problem I have is it can not locate the testProjectTest.testsuite in
>>>>> the workspace, stacktrace is following, I am not sure, if I am missing
>>>>> something..
>>>>> ____________________________________________________________ _
>>>>>
>>>>> Buildfile: testSuite.xml
>>>>>
>>>>> platform-verification:
>>>>> [echo] Verifying connection...
>>>>> Verification started!
>>>>> Verifying connection:
>>>>> {connectionString=tptp:rac://localhost:10002/default,
>>>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>>>> serverInstance=/default, user=null, password=null}
>>>>> The specified agent controller 'tptp:rac://localhost:10002/default' is
>>>>> up and running!
>>>>> Verification completed!
>>>>>
>>>>> test:
>>>>> [tptp:test] Test started!
>>>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>>>> [tptp:test]
>>>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>>>> /testProject/testProjectTest.testsuite does not exist.
>>>>> ____________________________________________________________ ______
>>>>>
>>>>> Following is the Ant Script :
>>>>> ____________________________________________________________ ______
>>>>>
>>>>> <project name="TPTP" default="main"
>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>
>>>>> <property name="tptp.test.connection"
>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>> <property name="tptp.automation.eclipse"
>>>>> value="C:/Development/eclipse" />
>>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>>> />
>>>>>
>>>>> <target name="main" depends="platform-verification, test" />
>>>>> <target name="platform-verification">
>>>>> <echo message="Verifying connection..." />
>>>>> <condition property="tptp.platform.available">
>>>>> <tptp:verification />
>>>>> </condition>
>>>>> <fail unless="tptp.platform.available" message="The agent
>>>>> controller is not available using the specified connection string!!"
>>>>> />
>>>>> </target>
>>>>>
>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>> using default TPTP Ant Tasks">
>>>>> <tptp:test
>>>>> workspace="${project.dir}"
>>>>> project="testProject"
>>>>> suite="testProjectTest.testsuite"
>>>>> synchronicity="synchronous">
>>>>> </tptp:test>
>>>>> </target>
>>>>>
>>>>> </project>
>>>>>
>>>>> Thanks in advance!
>>>>>
>>>>> Regards
>>>>> Ravi
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86435 is a reply to message #86376] Sat, 04 November 2006 14:55 Go to previous messageGo to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Hi Ali,

Thanks for quick reply.

I tried the following steps :

1) Created first workspace (ws1) having the testsuite.
2) Created second workspace (ws2) -- create Ant script which points to
testsuite in ws1 (means test.tptp.workspace="path of the testsuite in ws1")
3) Created Ant Lanuch configuration :

-- Create and manage configuration for Ant.
Main Tab
buildfile = path to ws2 build file
Problems :

1.Tried to run in UI mode in eclipse, same error as earlier.
2.Tried in headless way from ws2 (after closing eclipse), same error.
3.Lanuch configuration can only be applied / run in UI mode but no
usage of this configuraion in headless mode ?

I do not think this is normal to create two workspace for running the
headless TPTP tests.

Thanks again for your help!

Regards,
Ravi






"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eifrds$68n$1@utils.eclipse.org...
> Hi Ravi,
>
> I'm able to reproduce your problem (the exception about not finding the
> testsuite) when I use the same workspace that contains the test suite to
> launch the ANT script. Everything will work fine when a different
> workspace is used. Here are my exact steps:
>
> 1) Start a workbench using a workspace called ws1
> 2) Under ws1: create a Java project with a TPTP JUnit test suite
> 3) Start a second workbench using a workspace called ws2
> 4) Under ws2: create a Project with an ANT script pointing to the test
> suite under ws1
> 5) Under ws2: create an ANT launch configuration that points to the ant
> script created
> 6) Under ws2: launch the ANT script
>
> If I perform 5) and 6) under ws1, then I get a resource not found
> exception. I was wondering if you are doing the same?
>
>
> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
> news:eif0hc$q9p$1@utils.eclipse.org...
>> Thanks Ali,
>>
>> Yes, project contains 'src' folder, but I have put
>> testProjectTest.testsuite in the root folder of this project, though test
>> sources which have been imported to make testProjectTest.testsuite are in
>> packages under 'src' folder.
>>
>> I am able to browse the testProjectTest.testsuite using explorer. It is a
>> bit strange behaviour, while you are able to do that.
>>
>> If I change the followings in <tptp:test> task as per below, then it does
>> not give me that error -- project does not exist, but gives the
>> NullPointerException. Serveral permutations and combinations have been
>> tried, but If specify -- project="testProject" then it always says that
>> 'project' does not exist, though project and testsutite are already
>> there.
>> __________________________________________________________
>> <target name="test" description="Executes TPTP Test Suites using default
>> TPTP Ant Tasks">
>> <tptp:test suite="src/com/mycompany/package1/testProjectTest.testsuite "
>> />
>> </target>
>> </project>
>> _________________________________________________________
>>
>> Error :
>>
>> [tptp:test] Test started!
>> [tptp:test] java.lang.NullPointerException
>> [tptp:test] at
>> org.eclipse.hyades.automation.server.AbstractProjectSensitiv eService.refreshProject(AbstractProjectSensitiveService.java :99)
>> [tptp:test] at
>> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.initialize(AbstractTestExecutionService.java:559)
>> [tptp:test] at
>> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:410)
>> [tptp:test] at
>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>> [tptp:test] at
>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
>> [tptp:test] at
>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>> [tptp:test] at java.lang.Thread.run(Unknown Source)
>>
>> Not, sure what is wrong.
>>
>> Note : I had downloaded the exmaples from eclipsecon06 and those examples
>> with sample Ant scripts too were tried, I also have the same error --
>> project does not exist in case if I specify project="something" and if I
>> do not spcify project attribute and specify full path of testsuite --
>> suite="com.mycompany.package.sometestsuite.testsuite" then
>> NullPointerException.
>>
>> Thanks.
>> Ravi
>>
>>
>>
>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>> news:eidfs6$6di$1@utils.eclipse.org...
>>> Everything worked on my machine using the script that I included under
>>> similar settings. Can you check to make sure that the project does not
>>> contain a 'src' folder? It could be possible that the test suite is
>>> under the source folder, in which case it is being referenced
>>> incorrectly.
>>>
>>> Can you copy and paste
>>> " D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite "
>>> in the address bar of your explorer window to make sure that the file
>>> exists?
>>>
>>> Thanks,
>>> Ali Mehregani
>>>
>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>> news:eic46v$ku1$1@utils.eclipse.org...
>>>> Thanks Ali for the reply, but no luck with the suggested configuration
>>>> you mentioned, same error as earlier. Though I am able to run the test
>>>> in UI mode and it generates the desired .execution file, which render
>>>> the JUnit test results.
>>>>
>>>> Do you have any further idea what can be wrong ?
>>>>
>>>> Regards,
>>>> Ravi
>>>>
>>>>
>>>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>>>> news:eiaimo$4b6$1@utils.eclipse.org...
>>>>> According to your script below, the following statements must be true:
>>>>>
>>>>> 1) A workspace must exist under D:/Development/myProjects/Java
>>>>> 2) There is a project under the workspace called testProject (i.e.
>>>>> D:/Development/myProjects/Java/testProject must exist)
>>>>> 3) There is a test suite under the project called
>>>>> testProjectTest.testsuite (i.e.
>>>>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
>>>>> must exist)
>>>>>
>>>>> Make sure that the workspace is not opened by any other Eclipse
>>>>> workbench before you run the ANT script.
>>>>> If all the statements above are true, then try the following script to
>>>>> see if there is any difference:
>>>>>
>>>>> <project name="Test Run" default="main"
>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>> <property name="tptp.automation.eclipse"
>>>>> value="C:/Development/eclipse"/>
>>>>> <property name="tptp.test.workspace"
>>>>> value="D:/Development/myProjects/Java"/>
>>>>> <property name="tptp.test.connection"
>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>> <target name="main" depends="platform-verification, test"/>
>>>>> <target name="platform-verification">
>>>>> <echo message="Verifying connection..." />
>>>>> <condition property="tptp.platform.available">
>>>>> <tptp:verification />
>>>>> </condition>
>>>>> <fail unless="tptp.platform.available" message="The agent controller
>>>>> is not available using the specified connection string!!" />
>>>>> </target>
>>>>>
>>>>> <target name="test" description="Executes TPTP Test Suites using
>>>>> default TPTP Ant Tasks">
>>>>> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
>>>>> </target>
>>>>> </project>
>>>>>
>>>>> Thanks,
>>>>> Ali Mehregani
>>>>>
>>>>>> <project name="TPTP" default="main"
>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>>
>>>>>> <property name="tptp.test.connection"
>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>> <property name="tptp.automation.eclipse"
>>>>>> value="C:/Development/eclipse" />
>>>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>>>> />
>>>>>>
>>>>>> <target name="main" depends="platform-verification, test" />
>>>>>> <target name="platform-verification">
>>>>>> <echo message="Verifying connection..." />
>>>>>> <condition property="tptp.platform.available">
>>>>>> <tptp:verification />
>>>>>> </condition>
>>>>>> <fail unless="tptp.platform.available" message="The agent
>>>>>> controller is not available using the specified connection string!!"
>>>>>> />
>>>>>> </target>
>>>>>>
>>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>>> using default TPTP Ant Tasks">
>>>>>> <tptp:test
>>>>>> workspace="${project.dir}"
>>>>>> project="testProject"
>>>>>> suite="testProjectTest.testsuite"
>>>>>> synchronicity="synchronous">
>>>>>> </tptp:test>
>>>>>> </target>
>>>>>>
>>>>>> </project>
>>>>>
>>>>>
>>>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>>>> news:ei9m67$oh4$1@utils.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> I have a TPTP testsuite, which I want to run headless using Ant
>>>>>> script :
>>>>>>
>>>>>> Problem I have is it can not locate the testProjectTest.testsuite in
>>>>>> the workspace, stacktrace is following, I am not sure, if I am
>>>>>> missing something..
>>>>>> ____________________________________________________________ _
>>>>>>
>>>>>> Buildfile: testSuite.xml
>>>>>>
>>>>>> platform-verification:
>>>>>> [echo] Verifying connection...
>>>>>> Verification started!
>>>>>> Verifying connection:
>>>>>> {connectionString=tptp:rac://localhost:10002/default,
>>>>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>>>>> serverInstance=/default, user=null, password=null}
>>>>>> The specified agent controller 'tptp:rac://localhost:10002/default'
>>>>>> is up and running!
>>>>>> Verification completed!
>>>>>>
>>>>>> test:
>>>>>> [tptp:test] Test started!
>>>>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>>>>> [tptp:test]
>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>>>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>>>>> /testProject/testProjectTest.testsuite does not exist.
>>>>>> ____________________________________________________________ ______
>>>>>>
>>>>>> Following is the Ant Script :
>>>>>> ____________________________________________________________ ______
>>>>>>
>>>>>> <project name="TPTP" default="main"
>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>>
>>>>>> <property name="tptp.test.connection"
>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>> <property name="tptp.automation.eclipse"
>>>>>> value="C:/Development/eclipse" />
>>>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>>>> />
>>>>>>
>>>>>> <target name="main" depends="platform-verification, test" />
>>>>>> <target name="platform-verification">
>>>>>> <echo message="Verifying connection..." />
>>>>>> <condition property="tptp.platform.available">
>>>>>> <tptp:verification />
>>>>>> </condition>
>>>>>> <fail unless="tptp.platform.available" message="The agent
>>>>>> controller is not available using the specified connection string!!"
>>>>>> />
>>>>>> </target>
>>>>>>
>>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>>> using default TPTP Ant Tasks">
>>>>>> <tptp:test
>>>>>> workspace="${project.dir}"
>>>>>> project="testProject"
>>>>>> suite="testProjectTest.testsuite"
>>>>>> synchronicity="synchronous">
>>>>>> </tptp:test>
>>>>>> </target>
>>>>>>
>>>>>> </project>
>>>>>>
>>>>>> Thanks in advance!
>>>>>>
>>>>>> Regards
>>>>>> Ravi
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86559 is a reply to message #86376] Mon, 06 November 2006 06:34 Go to previous messageGo to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Hi Ali,

TPTP tests work in the same workspace too where project originally exists,
there is something wrong in my earlier project, which we were discusssing,
sorry to bother you again and again on this.

One reason for this is being new to TPTP ;-)

The same was verified by following the exmaple in the tutorial :

What I Followed is under : Under http://help.eclipse.org/help31/index.jsp --
TPTP Tester Guide - Creating Sample User Application :
I created a sample application by following the exmaple given in this
tutorial and run the tests in Eclipse UI and in headless mode - both works
fine.

Now, I have to check my ealier project, in which it give -- file not found
exception.

Thanks again for the help and support provided to me!

Regards.
Ravi


"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eifrds$68n$1@utils.eclipse.org...
> Hi Ravi,
>
> I'm able to reproduce your problem (the exception about not finding the
> testsuite) when I use the same workspace that contains the test suite to
> launch the ANT script. Everything will work fine when a different
> workspace is used. Here are my exact steps:
>
> 1) Start a workbench using a workspace called ws1
> 2) Under ws1: create a Java project with a TPTP JUnit test suite
> 3) Start a second workbench using a workspace called ws2
> 4) Under ws2: create a Project with an ANT script pointing to the test
> suite under ws1
> 5) Under ws2: create an ANT launch configuration that points to the ant
> script created
> 6) Under ws2: launch the ANT script
>
> If I perform 5) and 6) under ws1, then I get a resource not found
> exception. I was wondering if you are doing the same?
>
>
> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
> news:eif0hc$q9p$1@utils.eclipse.org...
>> Thanks Ali,
>>
>> Yes, project contains 'src' folder, but I have put
>> testProjectTest.testsuite in the root folder of this project, though test
>> sources which have been imported to make testProjectTest.testsuite are in
>> packages under 'src' folder.
>>
>> I am able to browse the testProjectTest.testsuite using explorer. It is a
>> bit strange behaviour, while you are able to do that.
>>
>> If I change the followings in <tptp:test> task as per below, then it does
>> not give me that error -- project does not exist, but gives the
>> NullPointerException. Serveral permutations and combinations have been
>> tried, but If specify -- project="testProject" then it always says that
>> 'project' does not exist, though project and testsutite are already
>> there.
>> __________________________________________________________
>> <target name="test" description="Executes TPTP Test Suites using default
>> TPTP Ant Tasks">
>> <tptp:test suite="src/com/mycompany/package1/testProjectTest.testsuite "
>> />
>> </target>
>> </project>
>> _________________________________________________________
>>
>> Error :
>>
>> [tptp:test] Test started!
>> [tptp:test] java.lang.NullPointerException
>> [tptp:test] at
>> org.eclipse.hyades.automation.server.AbstractProjectSensitiv eService.refreshProject(AbstractProjectSensitiveService.java :99)
>> [tptp:test] at
>> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.initialize(AbstractTestExecutionService.java:559)
>> [tptp:test] at
>> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:410)
>> [tptp:test] at
>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>> [tptp:test] at
>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
>> [tptp:test] at
>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>> [tptp:test] at java.lang.Thread.run(Unknown Source)
>>
>> Not, sure what is wrong.
>>
>> Note : I had downloaded the exmaples from eclipsecon06 and those examples
>> with sample Ant scripts too were tried, I also have the same error --
>> project does not exist in case if I specify project="something" and if I
>> do not spcify project attribute and specify full path of testsuite --
>> suite="com.mycompany.package.sometestsuite.testsuite" then
>> NullPointerException.
>>
>> Thanks.
>> Ravi
>>
>>
>>
>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>> news:eidfs6$6di$1@utils.eclipse.org...
>>> Everything worked on my machine using the script that I included under
>>> similar settings. Can you check to make sure that the project does not
>>> contain a 'src' folder? It could be possible that the test suite is
>>> under the source folder, in which case it is being referenced
>>> incorrectly.
>>>
>>> Can you copy and paste
>>> " D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite "
>>> in the address bar of your explorer window to make sure that the file
>>> exists?
>>>
>>> Thanks,
>>> Ali Mehregani
>>>
>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>> news:eic46v$ku1$1@utils.eclipse.org...
>>>> Thanks Ali for the reply, but no luck with the suggested configuration
>>>> you mentioned, same error as earlier. Though I am able to run the test
>>>> in UI mode and it generates the desired .execution file, which render
>>>> the JUnit test results.
>>>>
>>>> Do you have any further idea what can be wrong ?
>>>>
>>>> Regards,
>>>> Ravi
>>>>
>>>>
>>>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>>>> news:eiaimo$4b6$1@utils.eclipse.org...
>>>>> According to your script below, the following statements must be true:
>>>>>
>>>>> 1) A workspace must exist under D:/Development/myProjects/Java
>>>>> 2) There is a project under the workspace called testProject (i.e.
>>>>> D:/Development/myProjects/Java/testProject must exist)
>>>>> 3) There is a test suite under the project called
>>>>> testProjectTest.testsuite (i.e.
>>>>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
>>>>> must exist)
>>>>>
>>>>> Make sure that the workspace is not opened by any other Eclipse
>>>>> workbench before you run the ANT script.
>>>>> If all the statements above are true, then try the following script to
>>>>> see if there is any difference:
>>>>>
>>>>> <project name="Test Run" default="main"
>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>> <property name="tptp.automation.eclipse"
>>>>> value="C:/Development/eclipse"/>
>>>>> <property name="tptp.test.workspace"
>>>>> value="D:/Development/myProjects/Java"/>
>>>>> <property name="tptp.test.connection"
>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>> <target name="main" depends="platform-verification, test"/>
>>>>> <target name="platform-verification">
>>>>> <echo message="Verifying connection..." />
>>>>> <condition property="tptp.platform.available">
>>>>> <tptp:verification />
>>>>> </condition>
>>>>> <fail unless="tptp.platform.available" message="The agent controller
>>>>> is not available using the specified connection string!!" />
>>>>> </target>
>>>>>
>>>>> <target name="test" description="Executes TPTP Test Suites using
>>>>> default TPTP Ant Tasks">
>>>>> <tptp:test project="testProject" suite="testProjectTest.testsuite" />
>>>>> </target>
>>>>> </project>
>>>>>
>>>>> Thanks,
>>>>> Ali Mehregani
>>>>>
>>>>>> <project name="TPTP" default="main"
>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>>
>>>>>> <property name="tptp.test.connection"
>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>> <property name="tptp.automation.eclipse"
>>>>>> value="C:/Development/eclipse" />
>>>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>>>> />
>>>>>>
>>>>>> <target name="main" depends="platform-verification, test" />
>>>>>> <target name="platform-verification">
>>>>>> <echo message="Verifying connection..." />
>>>>>> <condition property="tptp.platform.available">
>>>>>> <tptp:verification />
>>>>>> </condition>
>>>>>> <fail unless="tptp.platform.available" message="The agent
>>>>>> controller is not available using the specified connection string!!"
>>>>>> />
>>>>>> </target>
>>>>>>
>>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>>> using default TPTP Ant Tasks">
>>>>>> <tptp:test
>>>>>> workspace="${project.dir}"
>>>>>> project="testProject"
>>>>>> suite="testProjectTest.testsuite"
>>>>>> synchronicity="synchronous">
>>>>>> </tptp:test>
>>>>>> </target>
>>>>>>
>>>>>> </project>
>>>>>
>>>>>
>>>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>>>> news:ei9m67$oh4$1@utils.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> I have a TPTP testsuite, which I want to run headless using Ant
>>>>>> script :
>>>>>>
>>>>>> Problem I have is it can not locate the testProjectTest.testsuite in
>>>>>> the workspace, stacktrace is following, I am not sure, if I am
>>>>>> missing something..
>>>>>> ____________________________________________________________ _
>>>>>>
>>>>>> Buildfile: testSuite.xml
>>>>>>
>>>>>> platform-verification:
>>>>>> [echo] Verifying connection...
>>>>>> Verification started!
>>>>>> Verifying connection:
>>>>>> {connectionString=tptp:rac://localhost:10002/default,
>>>>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>>>>> serverInstance=/default, user=null, password=null}
>>>>>> The specified agent controller 'tptp:rac://localhost:10002/default'
>>>>>> is up and running!
>>>>>> Verification completed!
>>>>>>
>>>>>> test:
>>>>>> [tptp:test] Test started!
>>>>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>>>>> [tptp:test]
>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>>>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>>>>> /testProject/testProjectTest.testsuite does not exist.
>>>>>> ____________________________________________________________ ______
>>>>>>
>>>>>> Following is the Ant Script :
>>>>>> ____________________________________________________________ ______
>>>>>>
>>>>>> <project name="TPTP" default="main"
>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>>
>>>>>> <property name="tptp.test.connection"
>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>> <property name="tptp.automation.eclipse"
>>>>>> value="C:/Development/eclipse" />
>>>>>> <property name="project.dir" value="D:/Development/myProjects/Java"
>>>>>> />
>>>>>>
>>>>>> <target name="main" depends="platform-verification, test" />
>>>>>> <target name="platform-verification">
>>>>>> <echo message="Verifying connection..." />
>>>>>> <condition property="tptp.platform.available">
>>>>>> <tptp:verification />
>>>>>> </condition>
>>>>>> <fail unless="tptp.platform.available" message="The agent
>>>>>> controller is not available using the specified connection string!!"
>>>>>> />
>>>>>> </target>
>>>>>>
>>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>>> using default TPTP Ant Tasks">
>>>>>> <tptp:test
>>>>>> workspace="${project.dir}"
>>>>>> project="testProject"
>>>>>> suite="testProjectTest.testsuite"
>>>>>> synchronicity="synchronous">
>>>>>> </tptp:test>
>>>>>> </target>
>>>>>>
>>>>>> </project>
>>>>>>
>>>>>> Thanks in advance!
>>>>>>
>>>>>> Regards
>>>>>> Ravi
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: TestSuite not found in eclipse workspace error [message #86608 is a reply to message #86559] Mon, 06 November 2006 16:28 Go to previous message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Ravi,

I'm glad that you were able to resolve your problem. If you think that
there is anything unique about your first project that caused it not to find
the test suite (e.g. space or any other uncommon character in the project
name) then please open a defect against TPTP.

Thanks,
Ali Mehregani

"Ravi Roy" <ravi.aroy@gmail.com> wrote in message
news:eimkv5$50f$1@utils.eclipse.org...
> Hi Ali,
>
> TPTP tests work in the same workspace too where project originally exists,
> there is something wrong in my earlier project, which we were discusssing,
> sorry to bother you again and again on this.
>
> One reason for this is being new to TPTP ;-)
>
> The same was verified by following the exmaple in the tutorial :
>
> What I Followed is under : Under
> http://help.eclipse.org/help31/index.jsp -- TPTP Tester Guide - Creating
> Sample User Application :
> I created a sample application by following the exmaple given in this
> tutorial and run the tests in Eclipse UI and in headless mode - both works
> fine.
>
> Now, I have to check my ealier project, in which it give -- file not found
> exception.
>
> Thanks again for the help and support provided to me!
>
> Regards.
> Ravi
>
>
> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> news:eifrds$68n$1@utils.eclipse.org...
>> Hi Ravi,
>>
>> I'm able to reproduce your problem (the exception about not finding the
>> testsuite) when I use the same workspace that contains the test suite to
>> launch the ANT script. Everything will work fine when a different
>> workspace is used. Here are my exact steps:
>>
>> 1) Start a workbench using a workspace called ws1
>> 2) Under ws1: create a Java project with a TPTP JUnit test suite
>> 3) Start a second workbench using a workspace called ws2
>> 4) Under ws2: create a Project with an ANT script pointing to the test
>> suite under ws1
>> 5) Under ws2: create an ANT launch configuration that points to the ant
>> script created
>> 6) Under ws2: launch the ANT script
>>
>> If I perform 5) and 6) under ws1, then I get a resource not found
>> exception. I was wondering if you are doing the same?
>>
>>
>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>> news:eif0hc$q9p$1@utils.eclipse.org...
>>> Thanks Ali,
>>>
>>> Yes, project contains 'src' folder, but I have put
>>> testProjectTest.testsuite in the root folder of this project, though
>>> test sources which have been imported to make testProjectTest.testsuite
>>> are in packages under 'src' folder.
>>>
>>> I am able to browse the testProjectTest.testsuite using explorer. It is
>>> a bit strange behaviour, while you are able to do that.
>>>
>>> If I change the followings in <tptp:test> task as per below, then it
>>> does not give me that error -- project does not exist, but gives the
>>> NullPointerException. Serveral permutations and combinations have been
>>> tried, but If specify -- project="testProject" then it always says that
>>> 'project' does not exist, though project and testsutite are already
>>> there.
>>> __________________________________________________________
>>> <target name="test" description="Executes TPTP Test Suites using default
>>> TPTP Ant Tasks">
>>> <tptp:test suite="src/com/mycompany/package1/testProjectTest.testsuite "
>>> />
>>> </target>
>>> </project>
>>> _________________________________________________________
>>>
>>> Error :
>>>
>>> [tptp:test] Test started!
>>> [tptp:test] java.lang.NullPointerException
>>> [tptp:test] at
>>> org.eclipse.hyades.automation.server.AbstractProjectSensitiv eService.refreshProject(AbstractProjectSensitiveService.java :99)
>>> [tptp:test] at
>>> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.initialize(AbstractTestExecutionService.java:559)
>>> [tptp:test] at
>>> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:410)
>>> [tptp:test] at
>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>> [tptp:test] at
>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:140)
>>> [tptp:test] at
>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>> [tptp:test] at java.lang.Thread.run(Unknown Source)
>>>
>>> Not, sure what is wrong.
>>>
>>> Note : I had downloaded the exmaples from eclipsecon06 and those
>>> examples with sample Ant scripts too were tried, I also have the same
>>> error -- project does not exist in case if I specify
>>> project="something" and if I do not spcify project attribute and specify
>>> full path of testsuite --
>>> suite="com.mycompany.package.sometestsuite.testsuite" then
>>> NullPointerException.
>>>
>>> Thanks.
>>> Ravi
>>>
>>>
>>>
>>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>>> news:eidfs6$6di$1@utils.eclipse.org...
>>>> Everything worked on my machine using the script that I included under
>>>> similar settings. Can you check to make sure that the project does not
>>>> contain a 'src' folder? It could be possible that the test suite is
>>>> under the source folder, in which case it is being referenced
>>>> incorrectly.
>>>>
>>>> Can you copy and paste
>>>> " D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite "
>>>> in the address bar of your explorer window to make sure that the file
>>>> exists?
>>>>
>>>> Thanks,
>>>> Ali Mehregani
>>>>
>>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>>> news:eic46v$ku1$1@utils.eclipse.org...
>>>>> Thanks Ali for the reply, but no luck with the suggested configuration
>>>>> you mentioned, same error as earlier. Though I am able to run the test
>>>>> in UI mode and it generates the desired .execution file, which render
>>>>> the JUnit test results.
>>>>>
>>>>> Do you have any further idea what can be wrong ?
>>>>>
>>>>> Regards,
>>>>> Ravi
>>>>>
>>>>>
>>>>> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
>>>>> news:eiaimo$4b6$1@utils.eclipse.org...
>>>>>> According to your script below, the following statements must be
>>>>>> true:
>>>>>>
>>>>>> 1) A workspace must exist under D:/Development/myProjects/Java
>>>>>> 2) There is a project under the workspace called testProject (i.e.
>>>>>> D:/Development/myProjects/Java/testProject must exist)
>>>>>> 3) There is a test suite under the project called
>>>>>> testProjectTest.testsuite (i.e.
>>>>>> D:/Development/myProjects/Java/testProject/testProjectTest.t estsuite
>>>>>> must exist)
>>>>>>
>>>>>> Make sure that the workspace is not opened by any other Eclipse
>>>>>> workbench before you run the ANT script.
>>>>>> If all the statements above are true, then try the following script
>>>>>> to see if there is any difference:
>>>>>>
>>>>>> <project name="Test Run" default="main"
>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>> <property name="tptp.automation.eclipse"
>>>>>> value="C:/Development/eclipse"/>
>>>>>> <property name="tptp.test.workspace"
>>>>>> value="D:/Development/myProjects/Java"/>
>>>>>> <property name="tptp.test.connection"
>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>> <target name="main" depends="platform-verification, test"/>
>>>>>> <target name="platform-verification">
>>>>>> <echo message="Verifying connection..." />
>>>>>> <condition property="tptp.platform.available">
>>>>>> <tptp:verification />
>>>>>> </condition>
>>>>>> <fail unless="tptp.platform.available" message="The agent controller
>>>>>> is not available using the specified connection string!!" />
>>>>>> </target>
>>>>>>
>>>>>> <target name="test" description="Executes TPTP Test Suites using
>>>>>> default TPTP Ant Tasks">
>>>>>> <tptp:test project="testProject" suite="testProjectTest.testsuite"
>>>>>> />
>>>>>> </target>
>>>>>> </project>
>>>>>>
>>>>>> Thanks,
>>>>>> Ali Mehregani
>>>>>>
>>>>>>> <project name="TPTP" default="main"
>>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>>>
>>>>>>> <property name="tptp.test.connection"
>>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>>> <property name="tptp.automation.eclipse"
>>>>>>> value="C:/Development/eclipse" />
>>>>>>> <property name="project.dir"
>>>>>>> value="D:/Development/myProjects/Java" />
>>>>>>>
>>>>>>> <target name="main" depends="platform-verification, test" />
>>>>>>> <target name="platform-verification">
>>>>>>> <echo message="Verifying connection..." />
>>>>>>> <condition property="tptp.platform.available">
>>>>>>> <tptp:verification />
>>>>>>> </condition>
>>>>>>> <fail unless="tptp.platform.available" message="The
>>>>>>> agent controller is not available using the specified connection
>>>>>>> string!!" />
>>>>>>> </target>
>>>>>>>
>>>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>>>> using default TPTP Ant Tasks">
>>>>>>> <tptp:test
>>>>>>> workspace="${project.dir}"
>>>>>>> project="testProject"
>>>>>>> suite="testProjectTest.testsuite"
>>>>>>> synchronicity="synchronous">
>>>>>>> </tptp:test>
>>>>>>> </target>
>>>>>>>
>>>>>>> </project>
>>>>>>
>>>>>>
>>>>>> "Ravi Roy" <ravi.aroy@gmail.com> wrote in message
>>>>>> news:ei9m67$oh4$1@utils.eclipse.org...
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have a TPTP testsuite, which I want to run headless using Ant
>>>>>>> script :
>>>>>>>
>>>>>>> Problem I have is it can not locate the testProjectTest.testsuite in
>>>>>>> the workspace, stacktrace is following, I am not sure, if I am
>>>>>>> missing something..
>>>>>>> ____________________________________________________________ _
>>>>>>>
>>>>>>> Buildfile: testSuite.xml
>>>>>>>
>>>>>>> platform-verification:
>>>>>>> [echo] Verifying connection...
>>>>>>> Verification started!
>>>>>>> Verifying connection:
>>>>>>> {connectionString=tptp:rac://localhost:10002/default,
>>>>>>> specification=tptp, serverClass=rac, host=localhost, port=10002,
>>>>>>> serverInstance=/default, user=null, password=null}
>>>>>>> The specified agent controller 'tptp:rac://localhost:10002/default'
>>>>>>> is up and running!
>>>>>>> Verification completed!
>>>>>>>
>>>>>>> test:
>>>>>>> [tptp:test] Test started!
>>>>>>> [tptp:test] Test '\testProjectTest.testsuite' executing
>>>>>>> [tptp:test]
>>>>>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
>>>>>>> org.eclipse.core.internal.resources.ResourceException: Resource
>>>>>>> /testProject/testProjectTest.testsuite does not exist.
>>>>>>> ____________________________________________________________ ______
>>>>>>>
>>>>>>> Following is the Ant Script :
>>>>>>> ____________________________________________________________ ______
>>>>>>>
>>>>>>> <project name="TPTP" default="main"
>>>>>>> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>>>>>>>
>>>>>>> <property name="tptp.test.connection"
>>>>>>> value="tptp:rac://localhost:10002/default"/>
>>>>>>> <property name="tptp.automation.eclipse"
>>>>>>> value="C:/Development/eclipse" />
>>>>>>> <property name="project.dir"
>>>>>>> value="D:/Development/myProjects/Java" />
>>>>>>>
>>>>>>> <target name="main" depends="platform-verification, test" />
>>>>>>> <target name="platform-verification">
>>>>>>> <echo message="Verifying connection..." />
>>>>>>> <condition property="tptp.platform.available">
>>>>>>> <tptp:verification />
>>>>>>> </condition>
>>>>>>> <fail unless="tptp.platform.available" message="The
>>>>>>> agent controller is not available using the specified connection
>>>>>>> string!!" />
>>>>>>> </target>
>>>>>>>
>>>>>>> <target name="test" description="Executes TPTP Test Suites
>>>>>>> using default TPTP Ant Tasks">
>>>>>>> <tptp:test
>>>>>>> workspace="${project.dir}"
>>>>>>> project="testProject"
>>>>>>> suite="testProjectTest.testsuite"
>>>>>>> synchronicity="synchronous">
>>>>>>> </tptp:test>
>>>>>>> </target>
>>>>>>>
>>>>>>> </project>
>>>>>>>
>>>>>>> Thanks in advance!
>>>>>>>
>>>>>>> Regards
>>>>>>> Ravi
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Previous Topic:From aspects to TPTP
Next Topic:TPTP and Agent Controller under Linux EM64T
Goto Forum:
  


Current Time: Fri Mar 29 12:24:05 GMT 2024

Powered by FUDForum. Page generated in 0.04056 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top