AGR deployments and Ant [message #133435] |
Mon, 28 July 2008 10:23  |
Eclipse User |
|
|
|
Originally posted by: john.edgar.tttech.com
Hi,
I'm using an Ant script to execute two AGR test suites. The second test
suite depends on the first test suite.
My problem is that when these tests are executed from an ANT script, a
new workspace is created in a temporary directory for each test suite.
Because the second test suite relies on the first test suite to create a
project, the second test suite cannot locate this project in the second
workspace and fails.
Note that when these test are started manually from within an Eclipse
instance, a temporary workspace is created
(${workspace_loc}/../auto-gui-workspace) that is used by both test
suites and this problem does not occur.
I have tried to correct this problem by specifying a common deployment
file in the Ant script and (in the UI) by entering a 'Workspace
location' in the corresponding .location file. However, new workspaces
with a name of the form "TPTP-Auto-Workspace-<time>" continue to be
created under the directory C:\Documents and Settings\<user>\Local
Settings\Temp and the 'Workspace location' in the .location file seems
to be ignored.
I am at fault or is this a known issue? Any help would be much appreciated.
John
Environment:
Windows XP SP2
Eclipse 3.3.2
TPTP 4.4.1
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
|
|
|
Re: AGR deployments and Ant [message #133501 is a reply to message #133435] |
Tue, 29 July 2008 07:31  |
Eclipse User |
|
|
|
Hi John
The AGR uses the Eclipse and workspace locations identified in the
editor (see #9 in
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-5-0.html#2.0)
and does not use the TPTP workspace location (used for JUnit Plug-in tests).
You can solve your problem by creating one AGR test suite that references
all of your AGR test suites/cases in the Behaviour page.
Paul
"J. Edgar" <john.edgar@tttech.com> wrote in message
news:g6kkq0$qai$1@build.eclipse.org...
> Hi,
>
> I'm using an Ant script to execute two AGR test suites. The second test
> suite depends on the first test suite.
>
> My problem is that when these tests are executed from an ANT script, a new
> workspace is created in a temporary directory for each test suite. Because
> the second test suite relies on the first test suite to create a project,
> the second test suite cannot locate this project in the second workspace
> and fails.
>
> Note that when these test are started manually from within an Eclipse
> instance, a temporary workspace is created
> (${workspace_loc}/../auto-gui-workspace) that is used by both test suites
> and this problem does not occur.
>
> I have tried to correct this problem by specifying a common deployment
> file in the Ant script and (in the UI) by entering a 'Workspace location'
> in the corresponding .location file. However, new workspaces with a name
> of the form "TPTP-Auto-Workspace-<time>" continue to be created under the
> directory C:\Documents and Settings\<user>\Local Settings\Temp and the
> 'Workspace location' in the .location file seems to be ignored.
>
> I am at fault or is this a known issue? Any help would be much
> appreciated.
>
> John
>
>
> Environment:
> Windows XP SP2
> Eclipse 3.3.2
> TPTP 4.4.1
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
|
|
|
Powered by
FUDForum. Page generated in 0.32666 seconds