Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » problems running with Ant.
problems running with Ant. [message #137603] Tue, 28 October 2008 00:12 Go to next message
matt murphy is currently offline matt murphyFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,

I've integrated tptp with my product and can record and playback test cases
from within the product. When i run test cases via Ant they work as long as
they don't depend on the environment variables that my product needs being
set. Is there a way to set up the environment variables via ant .xml file?
Or some other mechanism?

thanks,
Matt
Re: problems running with Ant. [message #137616 is a reply to message #137603] Tue, 28 October 2008 12:14 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Matt,
Unfortunately, there is no means to pass environment variables to the
JVM that is executing the test (different from the Eclipse and Ant JVMs).
See TPTP enhancement https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121
for more details. If you are interested, please feel free to comment and/or
contribute to this enhancement.

Paul
"matt murphy" <murphy@coherentlogix.com> wrote in message
news:ge5lcj$jba$1@build.eclipse.org...
> Hi,
>
> I've integrated tptp with my product and can record and playback test
> cases from within the product. When i run test cases via Ant they work as
> long as they don't depend on the environment variables that my product
> needs being set. Is there a way to set up the environment variables via
> ant .xml file? Or some other mechanism?
>
> thanks,
> Matt
>
>
Re: problems running with Ant. [message #138165 is a reply to message #137616] Mon, 10 November 2008 19:25 Go to previous messageGo to next message
matt murphy is currently offline matt murphyFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Paul,

Java allows one to specify environment variables on the command line. Is the
work that needs to be done just passing a string to the adapter thats
running the test suite? Also, my test cases work in standard mode because
the environment appears to be set correctly but not when run via ant?



"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:ge6vnl$8fp$1@build.eclipse.org...
> Hi Matt,
> Unfortunately, there is no means to pass environment variables to the
> JVM that is executing the test (different from the Eclipse and Ant JVMs).
> See TPTP enhancement https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121
> for more details. If you are interested, please feel free to comment
> and/or contribute to this enhancement.
>
> Paul
> "matt murphy" <murphy@coherentlogix.com> wrote in message
> news:ge5lcj$jba$1@build.eclipse.org...
>> Hi,
>>
>> I've integrated tptp with my product and can record and playback test
>> cases from within the product. When i run test cases via Ant they work as
>> long as they don't depend on the environment variables that my product
>> needs being set. Is there a way to set up the environment variables via
>> ant .xml file? Or some other mechanism?
>>
>> thanks,
>> Matt
>>
>>
>
>
Re: problems running with Ant. [message #138173 is a reply to message #138165] Tue, 11 November 2008 11:31 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Matt,

> Java allows one to specify environment variables on the command line. Is
> the
> work that needs to be done just passing a string to the adapter thats
> running the test suite?

You can specify JVM arguments in your Ant script, such as:
<property name="tptp.automation.vmargs" value="[VM args]"/>

but these are passed to the JVM running Eclipse and NOT the JVM running the
test (e.g. test runner). Hence,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 .

> Also, my test cases work in standard mode because
> the environment appears to be set correctly but not when run via ant?

This is a common mistake when using the AGR since you have to ensure that
the playback environment is the same as the recording environment.

Paul
"matt murphy" <murphy@coherentlogix.com> wrote in message
news:gfa1s8$o44$1@build.eclipse.org...
> Hi Paul,
>
> Java allows one to specify environment variables on the command line. Is
> the
> work that needs to be done just passing a string to the adapter thats
> running the test suite? Also, my test cases work in standard mode because
> the environment appears to be set correctly but not when run via ant?
>
>
>
> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
> news:ge6vnl$8fp$1@build.eclipse.org...
>> Hi Matt,
>> Unfortunately, there is no means to pass environment variables to the
>> JVM that is executing the test (different from the Eclipse and Ant JVMs).
>> See TPTP enhancement https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121
>> for more details. If you are interested, please feel free to comment
>> and/or contribute to this enhancement.
>>
>> Paul
>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>> news:ge5lcj$jba$1@build.eclipse.org...
>>> Hi,
>>>
>>> I've integrated tptp with my product and can record and playback test
>>> cases from within the product. When i run test cases via Ant they work
>>> as long as they don't depend on the environment variables that my
>>> product needs being set. Is there a way to set up the environment
>>> variables via ant .xml file? Or some other mechanism?
>>>
>>> thanks,
>>> Matt
>>>
>>>
>>
>>
>
>
Re: problems running with Ant. [message #138180 is a reply to message #138173] Tue, 11 November 2008 17:59 Go to previous messageGo to next message
matt murphy is currently offline matt murphyFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Paul,

given the number of bugs there is no way to ensure the playback environment
is the same as the recording environment! I've spent weeks trying to work
around one issue after another. I've been successful at testing some of our
code but we have eclipse plugins that use the JNI and I don't think I have a
way to successfully create the environment to run tests without modifyign
either the tptp code or our code.
Is this problem with playback documented anywhere besides the bugs?

thanks,
Matt
"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:gfbqfn$vj3$1@build.eclipse.org...
> Hi Matt,
>
>> Java allows one to specify environment variables on the command line. Is
>> the
>> work that needs to be done just passing a string to the adapter thats
>> running the test suite?
>
> You can specify JVM arguments in your Ant script, such as:
> <property name="tptp.automation.vmargs" value="[VM args]"/>
>
> but these are passed to the JVM running Eclipse and NOT the JVM running
> the test (e.g. test runner). Hence,
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 .
>
>> Also, my test cases work in standard mode because
>> the environment appears to be set correctly but not when run via ant?
>
> This is a common mistake when using the AGR since you have to ensure that
> the playback environment is the same as the recording environment.
>
> Paul
> "matt murphy" <murphy@coherentlogix.com> wrote in message
> news:gfa1s8$o44$1@build.eclipse.org...
>> Hi Paul,
>>
>> Java allows one to specify environment variables on the command line. Is
>> the
>> work that needs to be done just passing a string to the adapter thats
>> running the test suite? Also, my test cases work in standard mode
>> because
>> the environment appears to be set correctly but not when run via ant?
>>
>>
>>
>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>> news:ge6vnl$8fp$1@build.eclipse.org...
>>> Hi Matt,
>>> Unfortunately, there is no means to pass environment variables to the
>>> JVM that is executing the test (different from the Eclipse and Ant
>>> JVMs). See TPTP enhancement
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 for more details.
>>> If you are interested, please feel free to comment and/or contribute to
>>> this enhancement.
>>>
>>> Paul
>>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>>> news:ge5lcj$jba$1@build.eclipse.org...
>>>> Hi,
>>>>
>>>> I've integrated tptp with my product and can record and playback test
>>>> cases from within the product. When i run test cases via Ant they work
>>>> as long as they don't depend on the environment variables that my
>>>> product needs being set. Is there a way to set up the environment
>>>> variables via ant .xml file? Or some other mechanism?
>>>>
>>>> thanks,
>>>> Matt
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: problems running with Ant. [message #138185 is a reply to message #138180] Wed, 12 November 2008 11:17 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Matt,
Within the TPTP project, bugs are only reported in Bugzilla
(https://bugs.eclipse.org/bugs/query.cgi). There are several queries for
the latest release at the bottom of this page:

http://www.eclipse.org/tptp/home/project_info/index.php?

In addition, user limitations are noted in the Release Notes for a
release. For example, for TPTP 4.5.x:

http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/r eleasenotes/releasenotes4_5_0.html

Keep in mind, although the ASF is a 'GA' level component with full
test/support, the AGR is an 'As-Is' level component with no test/support:

http://wiki.eclipse.org/4.5_Component_Reorganization

Finally, I would encourage you (and your company) to contribute to the
TPTP project to help in resolving your blocking issues. TPTP is an
open-source project and will accept contributions from anyone, assuming they
follow the Eclipse Legal Process:

http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf

Paul
"matt murphy" <murphy@coherentlogix.com> wrote in message
news:gfch6v$o59$1@build.eclipse.org...
> Hi Paul,
>
> given the number of bugs there is no way to ensure the playback
> environment is the same as the recording environment! I've spent weeks
> trying to work around one issue after another. I've been successful at
> testing some of our code but we have eclipse plugins that use the JNI and
> I don't think I have a way to successfully create the environment to run
> tests without modifyign either the tptp code or our code.
> Is this problem with playback documented anywhere besides the bugs?
>
> thanks,
> Matt
> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
> news:gfbqfn$vj3$1@build.eclipse.org...
>> Hi Matt,
>>
>>> Java allows one to specify environment variables on the command line. Is
>>> the
>>> work that needs to be done just passing a string to the adapter thats
>>> running the test suite?
>>
>> You can specify JVM arguments in your Ant script, such as:
>> <property name="tptp.automation.vmargs" value="[VM args]"/>
>>
>> but these are passed to the JVM running Eclipse and NOT the JVM running
>> the test (e.g. test runner). Hence,
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 .
>>
>>> Also, my test cases work in standard mode because
>>> the environment appears to be set correctly but not when run via ant?
>>
>> This is a common mistake when using the AGR since you have to ensure that
>> the playback environment is the same as the recording environment.
>>
>> Paul
>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>> news:gfa1s8$o44$1@build.eclipse.org...
>>> Hi Paul,
>>>
>>> Java allows one to specify environment variables on the command line. Is
>>> the
>>> work that needs to be done just passing a string to the adapter thats
>>> running the test suite? Also, my test cases work in standard mode
>>> because
>>> the environment appears to be set correctly but not when run via ant?
>>>
>>>
>>>
>>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>>> news:ge6vnl$8fp$1@build.eclipse.org...
>>>> Hi Matt,
>>>> Unfortunately, there is no means to pass environment variables to
>>>> the JVM that is executing the test (different from the Eclipse and Ant
>>>> JVMs). See TPTP enhancement
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 for more details.
>>>> If you are interested, please feel free to comment and/or contribute to
>>>> this enhancement.
>>>>
>>>> Paul
>>>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>>>> news:ge5lcj$jba$1@build.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> I've integrated tptp with my product and can record and playback test
>>>>> cases from within the product. When i run test cases via Ant they work
>>>>> as long as they don't depend on the environment variables that my
>>>>> product needs being set. Is there a way to set up the environment
>>>>> variables via ant .xml file? Or some other mechanism?
>>>>>
>>>>> thanks,
>>>>> Matt
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: problems running with Ant. [message #138257 is a reply to message #138185] Mon, 17 November 2008 19:48 Go to previous messageGo to next message
matt murphy is currently offline matt murphyFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Paul,

after writing some code to dump out the environment. It turns out that I can
work around the issues by setting the system environment variables on
windows.

thanks,
Matt


"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:gfee11$jgb$1@build.eclipse.org...
> Hi Matt,
> Within the TPTP project, bugs are only reported in Bugzilla
> (https://bugs.eclipse.org/bugs/query.cgi). There are several queries for
> the latest release at the bottom of this page:
>
> http://www.eclipse.org/tptp/home/project_info/index.php?
>
> In addition, user limitations are noted in the Release Notes for a
> release. For example, for TPTP 4.5.x:
>
> http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/r eleasenotes/releasenotes4_5_0.html
>
> Keep in mind, although the ASF is a 'GA' level component with full
> test/support, the AGR is an 'As-Is' level component with no test/support:
>
> http://wiki.eclipse.org/4.5_Component_Reorganization
>
> Finally, I would encourage you (and your company) to contribute to the
> TPTP project to help in resolving your blocking issues. TPTP is an
> open-source project and will accept contributions from anyone, assuming
> they follow the Eclipse Legal Process:
>
> http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf
>
> Paul
> "matt murphy" <murphy@coherentlogix.com> wrote in message
> news:gfch6v$o59$1@build.eclipse.org...
>> Hi Paul,
>>
>> given the number of bugs there is no way to ensure the playback
>> environment is the same as the recording environment! I've spent weeks
>> trying to work around one issue after another. I've been successful at
>> testing some of our code but we have eclipse plugins that use the JNI and
>> I don't think I have a way to successfully create the environment to run
>> tests without modifyign either the tptp code or our code.
>> Is this problem with playback documented anywhere besides the bugs?
>>
>> thanks,
>> Matt
>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>> news:gfbqfn$vj3$1@build.eclipse.org...
>>> Hi Matt,
>>>
>>>> Java allows one to specify environment variables on the command line.
>>>> Is the
>>>> work that needs to be done just passing a string to the adapter thats
>>>> running the test suite?
>>>
>>> You can specify JVM arguments in your Ant script, such as:
>>> <property name="tptp.automation.vmargs" value="[VM args]"/>
>>>
>>> but these are passed to the JVM running Eclipse and NOT the JVM running
>>> the test (e.g. test runner). Hence,
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 .
>>>
>>>> Also, my test cases work in standard mode because
>>>> the environment appears to be set correctly but not when run via ant?
>>>
>>> This is a common mistake when using the AGR since you have to ensure
>>> that the playback environment is the same as the recording environment.
>>>
>>> Paul
>>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>>> news:gfa1s8$o44$1@build.eclipse.org...
>>>> Hi Paul,
>>>>
>>>> Java allows one to specify environment variables on the command line.
>>>> Is the
>>>> work that needs to be done just passing a string to the adapter thats
>>>> running the test suite? Also, my test cases work in standard mode
>>>> because
>>>> the environment appears to be set correctly but not when run via ant?
>>>>
>>>>
>>>>
>>>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>>>> news:ge6vnl$8fp$1@build.eclipse.org...
>>>>> Hi Matt,
>>>>> Unfortunately, there is no means to pass environment variables to
>>>>> the JVM that is executing the test (different from the Eclipse and Ant
>>>>> JVMs). See TPTP enhancement
>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 for more details.
>>>>> If you are interested, please feel free to comment and/or contribute
>>>>> to this enhancement.
>>>>>
>>>>> Paul
>>>>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>>>>> news:ge5lcj$jba$1@build.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> I've integrated tptp with my product and can record and playback test
>>>>>> cases from within the product. When i run test cases via Ant they
>>>>>> work as long as they don't depend on the environment variables that
>>>>>> my product needs being set. Is there a way to set up the environment
>>>>>> variables via ant .xml file? Or some other mechanism?
>>>>>>
>>>>>> thanks,
>>>>>> Matt
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: problems running with Ant. [message #138291 is a reply to message #138257] Tue, 18 November 2008 12:03 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Matt,
This is a great way to work around the limitation, albeit, requiring
these system variables on each target/remote machine.

Paul
"matt murphy" <murphy@coherentlogix.com> wrote in message
news:gfshr9$mdn$1@build.eclipse.org...
> Hi Paul,
>
> after writing some code to dump out the environment. It turns out that I
> can
> work around the issues by setting the system environment variables on
> windows.
>
> thanks,
> Matt
>
>
> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
> news:gfee11$jgb$1@build.eclipse.org...
>> Hi Matt,
>> Within the TPTP project, bugs are only reported in Bugzilla
>> (https://bugs.eclipse.org/bugs/query.cgi). There are several queries for
>> the latest release at the bottom of this page:
>>
>> http://www.eclipse.org/tptp/home/project_info/index.php?
>>
>> In addition, user limitations are noted in the Release Notes for a
>> release. For example, for TPTP 4.5.x:
>>
>> http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/r eleasenotes/releasenotes4_5_0.html
>>
>> Keep in mind, although the ASF is a 'GA' level component with full
>> test/support, the AGR is an 'As-Is' level component with no test/support:
>>
>> http://wiki.eclipse.org/4.5_Component_Reorganization
>>
>> Finally, I would encourage you (and your company) to contribute to the
>> TPTP project to help in resolving your blocking issues. TPTP is an
>> open-source project and will accept contributions from anyone, assuming
>> they follow the Eclipse Legal Process:
>>
>> http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf
>>
>> Paul
>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>> news:gfch6v$o59$1@build.eclipse.org...
>>> Hi Paul,
>>>
>>> given the number of bugs there is no way to ensure the playback
>>> environment is the same as the recording environment! I've spent weeks
>>> trying to work around one issue after another. I've been successful at
>>> testing some of our code but we have eclipse plugins that use the JNI
>>> and I don't think I have a way to successfully create the environment to
>>> run tests without modifyign either the tptp code or our code.
>>> Is this problem with playback documented anywhere besides the bugs?
>>>
>>> thanks,
>>> Matt
>>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>>> news:gfbqfn$vj3$1@build.eclipse.org...
>>>> Hi Matt,
>>>>
>>>>> Java allows one to specify environment variables on the command line.
>>>>> Is the
>>>>> work that needs to be done just passing a string to the adapter thats
>>>>> running the test suite?
>>>>
>>>> You can specify JVM arguments in your Ant script, such as:
>>>> <property name="tptp.automation.vmargs" value="[VM args]"/>
>>>>
>>>> but these are passed to the JVM running Eclipse and NOT the JVM running
>>>> the test (e.g. test runner). Hence,
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 .
>>>>
>>>>> Also, my test cases work in standard mode because
>>>>> the environment appears to be set correctly but not when run via ant?
>>>>
>>>> This is a common mistake when using the AGR since you have to ensure
>>>> that the playback environment is the same as the recording environment.
>>>>
>>>> Paul
>>>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>>>> news:gfa1s8$o44$1@build.eclipse.org...
>>>>> Hi Paul,
>>>>>
>>>>> Java allows one to specify environment variables on the command line.
>>>>> Is the
>>>>> work that needs to be done just passing a string to the adapter thats
>>>>> running the test suite? Also, my test cases work in standard mode
>>>>> because
>>>>> the environment appears to be set correctly but not when run via ant?
>>>>>
>>>>>
>>>>>
>>>>> "Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
>>>>> news:ge6vnl$8fp$1@build.eclipse.org...
>>>>>> Hi Matt,
>>>>>> Unfortunately, there is no means to pass environment variables to
>>>>>> the JVM that is executing the test (different from the Eclipse and
>>>>>> Ant JVMs). See TPTP enhancement
>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=143121 for more
>>>>>> details. If you are interested, please feel free to comment and/or
>>>>>> contribute to this enhancement.
>>>>>>
>>>>>> Paul
>>>>>> "matt murphy" <murphy@coherentlogix.com> wrote in message
>>>>>> news:ge5lcj$jba$1@build.eclipse.org...
>>>>>>> Hi,
>>>>>>>
>>>>>>> I've integrated tptp with my product and can record and playback
>>>>>>> test cases from within the product. When i run test cases via Ant
>>>>>>> they work as long as they don't depend on the environment variables
>>>>>>> that my product needs being set. Is there a way to set up the
>>>>>>> environment variables via ant .xml file? Or some other mechanism?
>>>>>>>
>>>>>>> thanks,
>>>>>>> Matt
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Previous Topic:Memory profiling and Threads
Next Topic:record table items using automated gui recorder
Goto Forum:
  


Current Time: Tue Apr 16 16:05:57 GMT 2024

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

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

Back to the top