newbie question tptp and agent controller [message #41798] |
Wed, 23 November 2005 09:18 |
Eclipse User |
|
|
|
Originally posted by: extern.ilker.yuemsek.volkswagen.de
Hi,
i've the following problem with tptp and agent controller.
I create a TPTP JUnit test with a simple test class, that only reads a
property from a properties-file
(de.ilker.test.fileaccess.PropertyFileTest.java,
de.ilker.test.fileaccess.Constants.java and constants.properties in the
package de.ilker.test.fileaccess.file).
The agent controller is started and has in the configuration
%SYS_TEMP_DIR% = D:\temp. When i execute the test with local deployment
comes the failure with following trace:
"java.lang.ExceptionInInitializerError
at
de.ilker.test.fileaccess.PropertyFileTest.testReadProperty(P ropertyFileTest.java:58) "
When i explore to D:\temp is the properties-file not present. This error
comes
also when i define a such folder with text based files as class folder and
export it.
We use in our projects also text based files like .con, .xsl and so on.
And we have problems with tptp, when we try to test this projects.
Have you a solution for my problem?
thanks
Yuemseki
|
|
|
|
Re: newbie question tptp and agent controller [message #41928 is a reply to message #41798] |
Wed, 23 November 2005 12:32 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Yuemseki,
In TPTP v4.0.x and below, only class and JAR files on the classpath are
deployed to the target host (e.g. System Under Test (SUT)). In TPTP v4.1.x
and above, all files on the classpath of the project that contains the TPTP
JUnit test suite are deployed to the target host (e.g. System Under Test
(SUT)). Since the execution environment is similar for both local and
remote deployment, the TPTP JUnit runner does not know where to locate your
properties. I would recommend to either move up to the released TPTP v4.1.0
driver when it is made available late this week or early next week (stable
and development builds are available now) or setting a configuration
variable in your deployment to the local location of your properties files
(see Help >> Help Contents >> TPTP
Tester guide >> JUnit testing with TPTP >> JUnit testing with TPTP >>
Deploying JUnit tests remotely).
Paul
"yuemseki" <extern.ilker.yuemsek@volkswagen.de> wrote in message
news:b0e6028fbe0a41080d5e46972d9f20b4$1@www.eclipse.org...
> Hi,
>
> i've the following problem with tptp and agent controller.
>
> I create a TPTP JUnit test with a simple test class, that only reads a
> property from a properties-file
> (de.ilker.test.fileaccess.PropertyFileTest.java,
> de.ilker.test.fileaccess.Constants.java and constants.properties in the
> package de.ilker.test.fileaccess.file).
>
> The agent controller is started and has in the configuration
> %SYS_TEMP_DIR% = D:\temp. When i execute the test with local deployment
> comes the failure with following trace:
>
> "java.lang.ExceptionInInitializerError
> at
>
de.ilker.test.fileaccess.PropertyFileTest.testReadProperty(P ropertyFileTest.
java:58)"
>
> When i explore to D:\temp is the properties-file not present. This error
> comes
> also when i define a such folder with text based files as class folder and
> export it.
>
> We use in our projects also text based files like .con, .xsl and so on.
> And we have problems with tptp, when we try to test this projects.
>
> Have you a solution for my problem?
>
> thanks
>
> Yuemseki
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03308 seconds