Not sure if any Webtest developer is looking into the Ant 1.8 issue... but 
just in case, I have put together a simple project that appears to 
demonstrate that the class that implements the <webtest> task has somehow 
not inherited the ant properties that were set earlier during the build.

---- BEGIN build.xml ----
<?xml version="1.0"?>

<project name="example" default="wt.full">

        <property name="webtest.home" 
value="/Users/pdmiller/Applications/Webtest/"/>
        <property name="wt.headless" value="true" />
        <property name="wt.groovyTests.skip" value="skip" />

        <import file="definitions.xml" description="Import custom 
definitions (if any)"/>

        <import file="${webtest.home}/webtest.xml" description="Import all 
functionalities for a full build"/>

        <property name="local.username" value="myUsername" />
        <property name="local.password" value="myPassword" />

        <property name="wt.testInWork" value="tests/myFullTest.xml"/>

</project>
----- END build.xml -----



---- BEGIN myFullTest.xml ----
<project default="test">

 <echo>Echoing01 [local.password] ${local.password}</echo>

 <target name="test">

 <echo>Echoing02 [local.password] ${local.password}</echo>


  <webtest name="Test01">
    <steps>

       <echo>Echoing03 [local.password] ${local.password}</echo>

    </steps>
  </webtest>

 </target>
</project>
----- END myFullTest.xml -----


---- BEGIN output ----
  ~~~ cut ~~~
wt.testInWork:
     [echo] Execution myFullTest.xml in dir 
/Users/pdmiller/tmp/WebtestTest/tests
     [echo] Echoing01 [local.password] myPassword

test:
     [echo] Echoing02 [local.password] myPassword
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using 
haltonerror from project property wt.config.haltonerror: false
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using 
haltonfailure from project property wt.config.haltonfailure: false
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using 
resultpath from project property wt.config.resultpath: 
/Users/pdmiller/tmp/WebtestTest/results
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using 
saveresponse from project property wt.config.saveresponse: true
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - No configuration 
defined, using default configuration.
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest 
"Test01" (/Users/pdmiller/tmp/WebtestTest/tests/myFullTest.xml:10: )
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: 
R_1811.
     [null]  INFO (com.canoo.webtest.engine.Configuration) - Using 
haltonerror from project property wt.config.haltonerror: false
     [null]  INFO (com.canoo.webtest.engine.Configuration) - Using 
haltonfailure from project property wt.config.haltonfailure: false
     [null]  INFO (com.canoo.webtest.engine.Configuration) - Using 
resultpath from project property wt.config.resultpath: 
/Users/pdmiller/tmp/WebtestTest/results
     [null]  INFO (com.canoo.webtest.engine.Configuration) - Using 
saveresponse from project property wt.config.saveresponse: true
     [null]  INFO (com.canoo.webtest.engine.Configuration) - Creating 
result directory: /Users/pdmiller/tmp/WebtestTest/results/001_Test01
     [null]  INFO (com.canoo.webtest.engine.Configuration) - Surfing with 
default browser Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
    [steps]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps 
(1/1)
     [echo] Echoing03 [local.password] ${local.password}
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest 
"Test01" (/Users/pdmiller/tmp/WebtestTest/tests/myFullTest.xml:10: )
 INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to 
/Users/pdmiller/tmp/WebtestTest/results/001_Test01/WebTestReport.xml
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully 
created.
  ~~~ cut ~~~
----- END output -----








Disclaimer: This message is intended only for the use of the individual or 
entity to
which it is addressed and may contain information which is privileged, 
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the 
intended recipient or the person
responsible for delivering the message to the intended recipient, you are 
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If 
you have received this 
communication in error, please notify the sender and destroy and delete 
any copies you may have
received.


Reply via email to