Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » newbie question tptp and agent controller
newbie question tptp and agent controller [message #41798] Wed, 23 November 2005 09:18 Go to next message
Eclipse UserFriend
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 #41833 is a reply to message #41798] Wed, 23 November 2005 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: extern.ilker.yuemsek.volkswagen.de

My Environment:

Eclipse SDK

Version: 3.1.0
Build id: I20050627-1435
JRE 1.5.0

TPTP Agent Controller: 4.0.0
TPTP Test Core: 4.0.0

thanks

Yuemseki
Re: newbie question tptp and agent controller [message #41928 is a reply to message #41798] Wed, 23 November 2005 12:32 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
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
>
>
Previous Topic:Where is the agent controller
Next Topic:Having problems with 'An Introduction to Using TPTP's Automated GUI Recorder'
Goto Forum:
  


Current Time: Thu Dec 26 16:13:47 GMT 2024

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

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

Back to the top