[Webtest] A sample project that shows property failure when using ant 1.8

Dwayne.Miller@nc4.us Dwayne.Miller@nc4.us
Fri, 11 Nov 2011 09:52:05 -0500


This is a multipart message in MIME format.
--=_alternative 0051AC0085257945_=
Content-Type: text/plain; charset="US-ASCII"

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.



--=_alternative 0051AC0085257945_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">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
&lt;webtest&gt; task has somehow not inherited the ant properties that
were set earlier during the build.</font>
<br>
<br><font size=2 face="sans-serif">---- BEGIN build.xml ----</font>
<br><font size=2 face="sans-serif">&lt;?xml version=&quot;1.0&quot;?&gt;</font>
<br>
<br><font size=2 face="sans-serif">&lt;project name=&quot;example&quot;
default=&quot;wt.full&quot;&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;property
name=&quot;webtest.home&quot; value=&quot;/Users/pdmiller/Applications/Webtest/&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;property
name=&quot;wt.headless&quot; value=&quot;true&quot; /&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;property
name=&quot;wt.groovyTests.skip&quot; value=&quot;skip&quot; /&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;import
file=&quot;definitions.xml&quot; description=&quot;Import custom definitions
(if any)&quot;/&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;import
file=&quot;${webtest.home}/webtest.xml&quot; description=&quot;Import all
functionalities for a full build&quot;/&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;property
name=&quot;local.username&quot; value=&quot;myUsername&quot; /&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;property
name=&quot;local.password&quot; value=&quot;myPassword&quot; /&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;property
name=&quot;wt.testInWork&quot; value=&quot;tests/myFullTest.xml&quot;/&gt;</font>
<br>
<br><font size=2 face="sans-serif">&lt;/project&gt;</font>
<br><font size=2 face="sans-serif">----- END build.xml -----</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">---- BEGIN myFullTest.xml ----</font>
<br><font size=2 face="sans-serif">&lt;project default=&quot;test&quot;&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;&lt;echo&gt;Echoing01 [local.password]
${local.password}&lt;/echo&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;&lt;target name=&quot;test&quot;&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;&lt;echo&gt;Echoing02 [local.password]
${local.password}&lt;/echo&gt;</font>
<br>
<br>
<br><font size=2 face="sans-serif">&nbsp; &lt;webtest name=&quot;Test01&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &lt;steps&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;&lt;echo&gt;Echoing03
[local.password] ${local.password}&lt;/echo&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &lt;/steps&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &lt;/webtest&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;&lt;/target&gt;</font>
<br><font size=2 face="sans-serif">&lt;/project&gt;</font>
<br><font size=2 face="sans-serif">----- END myFullTest.xml -----</font>
<br>
<br>
<br><font size=2 face="sans-serif">---- BEGIN output ----</font>
<br><font size=2 face="sans-serif">&nbsp; ~~~ cut ~~~</font>
<br><font size=2 face="sans-serif">wt.testInWork:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[echo] Execution
myFullTest.xml in dir /Users/pdmiller/tmp/WebtestTest/tests</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[echo] Echoing01
[local.password] myPassword</font>
<br>
<br><font size=2 face="sans-serif">test:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[echo] Echoing02
[local.password] myPassword</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.engine.Configuration)
- Using haltonerror from project property wt.config.haltonerror: false</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.engine.Configuration)
- Using haltonfailure from project property wt.config.haltonfailure: false</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.engine.Configuration)
- Using resultpath from project property wt.config.resultpath: /Users/pdmiller/tmp/WebtestTest/results</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.engine.Configuration)
- Using saveresponse from project property wt.config.saveresponse: true</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.ant.WebtestTask)
- No configuration defined, using default configuration.</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.ant.WebtestTask)
- Starting webtest &quot;Test01&quot; (/Users/pdmiller/tmp/WebtestTest/tests/myFullTest.xml:10:
)</font>
<br><font size=2 face="sans-serif">&nbsp; [webtest] &nbsp;INFO (com.canoo.webtest.ant.WebtestTask)
- Canoo Webtest: R_1811.</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[null] &nbsp;INFO
(com.canoo.webtest.engine.Configuration) - Using haltonerror from project
property wt.config.haltonerror: false</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[null] &nbsp;INFO
(com.canoo.webtest.engine.Configuration) - Using haltonfailure from project
property wt.config.haltonfailure: false</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[null] &nbsp;INFO
(com.canoo.webtest.engine.Configuration) - Using resultpath from project
property wt.config.resultpath: /Users/pdmiller/tmp/WebtestTest/results</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[null] &nbsp;INFO
(com.canoo.webtest.engine.Configuration) - Using saveresponse from project
property wt.config.saveresponse: true</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[null] &nbsp;INFO
(com.canoo.webtest.engine.Configuration) - Creating result directory: /Users/pdmiller/tmp/WebtestTest/results/001_Test01</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[null] &nbsp;INFO
(com.canoo.webtest.engine.Configuration) - Surfing with default browser
Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; [steps] &nbsp;INFO (com.canoo.webtest.steps.Step)
- &gt;&gt;&gt;&gt; Start Step: steps (1/1)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;[echo] Echoing03
[local.password] ${local.password}</font>
<br><font size=2 face="sans-serif">&nbsp;INFO (com.canoo.webtest.ant.WebtestTask)
- Finished executing webtest &quot;Test01&quot; (/Users/pdmiller/tmp/WebtestTest/tests/myFullTest.xml:10:
)</font>
<br><font size=2 face="sans-serif">&nbsp;INFO (com.canoo.webtest.reporting.XmlReporter)
- Writing report to /Users/pdmiller/tmp/WebtestTest/results/001_Test01/WebTestReport.xml</font>
<br><font size=2 face="sans-serif">&nbsp;INFO (com.canoo.webtest.ant.WebtestTask)
- Test report successfully created.</font>
<br><font size=2 face="sans-serif">&nbsp; ~~~ cut ~~~</font>
<br><font size=2 face="sans-serif">----- END output -----</font>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
</font><font size=2><br>
<br>
<br>
<b><br>
Disclaimer:</b> This message is intended only for the use of the individual
or entity to<br>
which it is addressed and may contain information which is privileged,
confidential, proprietary,<br>
or exempt from disclosure under applicable law. If you are not the intended
recipient or the person<br>
responsible for delivering the message to the intended recipient, you are
strictly prohibited from<br>
disclosing, distributing, copying, or in any way using this message. If
you have received this <br>
communication in error, please notify the sender and destroy and delete
any copies you may have<br>
received.</font><font size=2 face="sans-serif"><br>
<br>
</font>
<br>
--=_alternative 0051AC0085257945_=--