Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » [TPTP AGR] Path to Logger file in standard mode
[TPTP AGR] Path to Logger file in standard mode [message #107952] Wed, 08 August 2007 12:53 Go to next message
Eclipse User
Originally posted by: emontagne.odyssey-group.com

Hi,

I do automatic tests (eclipse 3.2.2 and TPTP 4.3.1 under windows XP) and
I've used CBE Logger as Ali explained in
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg01616. html for debug.

If I run the test in quick mode, the log file is created in the workbench
directory.

When I run the test in standard mode, the log file is created in
C:\Documents and Settings\UserName\Local Settings\Temp and not in the
workbench directory. I've tried to configure the test with or without
checking the box "Use current workbench as context", but the same problem
occurs, I have to set the full path in the Logger class so I cannot share
it.

Is it possible to setup user.dir when running the test in standard mode?
I've tried to setup using JVM Arguments on Overview tab of the testsuite.
When running the test, the value is correct (seen with an assert in a hook)
but nothing is written in the log file.

Regards,
--
Eric Montagne
Re: [TPTP AGR] Path to Logger file in standard mode [message #108171 is a reply to message #107952] Thu, 09 August 2007 07:00 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Eric,
When running an AGR test in standard mode, the working directory, or
ROOTDIR is determined by the following steps:

Step 1: TPTP first looks on the remote machine for the ROOTDIR location
property (if specified); if this exists, then its value is taken as the
output from this step.

If the ROOTDIR location property has not been specified, or if it has but
does not exist on the remote machine, TPTP derives one using the temporary
directory found on the remote machine's environment; it looks for
LOCAL_AGENT_TEMP_DIR, TEMP, and TMP, in that order, and, whichever is found
first is taken as the output from this step.

Step 2: TPTP looks for the USR_NAME location property on the local machine.
If this does not exist it pulls the user.name property from Java
(System.getProperty("user.name")).

Step 3: TPTP concatenates the outputs from Steps 1 and 2 and takes this to
be the ROOTDIR to use.

http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/ref/rdeploymentGroundRules.htm

In your case, it is %TEMP% or C:\Documents and Settings\UserName\Local
Settings\Temp.

Alternatively, you can use an absolute path for the your logging file or
change the value of ROOTDIR in the *.location file.

Paul
"Eric Montagne" <emontagne@odyssey-group.com> wrote in message
news:f9csdg$s3c$1@build.eclipse.org...
> Hi,
>
> I do automatic tests (eclipse 3.2.2 and TPTP 4.3.1 under windows XP) and
> I've used CBE Logger as Ali explained in
> http://dev.eclipse.org/newslists/news.eclipse.tptp/msg01616. html for
> debug.
>
> If I run the test in quick mode, the log file is created in the workbench
> directory.
>
> When I run the test in standard mode, the log file is created in
> C:\Documents and Settings\UserName\Local Settings\Temp and not in the
> workbench directory. I've tried to configure the test with or without
> checking the box "Use current workbench as context", but the same problem
> occurs, I have to set the full path in the Logger class so I cannot share
> it.
>
> Is it possible to setup user.dir when running the test in standard mode?
> I've tried to setup using JVM Arguments on Overview tab of the testsuite.
> When running the test, the value is correct (seen with an assert in a
> hook) but nothing is written in the log file.
>
> Regards,
> --
> Eric Montagne
>
>
Previous Topic:Deployement of the material
Next Topic:TPTP contributes invalid menu extension with 3.3
Goto Forum:
  


Current Time: Thu Aug 21 04:19:32 EDT 2014

Powered by FUDForum. Page generated in 0.01519 seconds