[Webtest] How to print/log in WebTest? + dbUnit to Webtest traverse update

Rob Manthey webtest@lists.canoo.com
Thu, 13 Jul 2006 12:53:20 +1000


This is a multi-part message in MIME format.
--------------020409010102050908030501
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm not suggesting that the following is a good idea .. it just 
demonstrates some of the operations in action.  Some other items 
degraded when I did this ...

on 13/07/06 12:32 Rob Manthey said the following:
> I'll answer some of my own "don't knows" here
> if I set the following line to:
>>     step.setWebtestProperty('test_customer_name', testCustomerName, step.PROPERTY_TYPE_ANT)   
>>   
> then this line reports "property not defined" -
>> <verifyProperty name="test_customer_name" text="Canoo WebTest Customer 1" />
>>   
> but then this line works, as the property is now an ANT property, not 
> a webtest one:
>> <echo message="Test Customer Name = ${test_customer_name}" />
> (I read   http://webtest.canoo.com/webtest/manual/properties.html   
> again and it made more sense)
>

--------------020409010102050908030501
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'm not suggesting that the following is a good idea .. it just
demonstrates some of the operations in action.&nbsp; Some other items
degraded when I did this ...<br>
<br>
on 13/07/06 12:32 Rob Manthey said the following:
<blockquote cite="mid44B5B0AD.4060406@rob.manthey.id.au" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
I'll answer some of my own "don't knows" here<br>
if I set the following line to:<br>
  <blockquote cite="mid44B5A833.6020204@rob.manthey.id.au" type="cite">
    <pre>&nbsp;&nbsp;&nbsp; step.setWebtestProperty('test_customer_name', testCustomerName, step.PROPERTY_TYPE_ANT)&nbsp;&nbsp; 
  </pre>
  </blockquote>
then this line reports "property not defined" - <br>
  <blockquote cite="mid44B5A833.6020204@rob.manthey.id.au" type="cite">
    <pre>&lt;verifyProperty name="test_customer_name" text="Canoo WebTest Customer 1" /&gt;
  </pre>
  </blockquote>
but then this line works, as the property is now an ANT property, not a
webtest one:<br>
  <blockquote cite="mid44B5A833.6020204@rob.manthey.id.au" type="cite">
    <pre>&lt;echo message="Test Customer Name = ${test_customer_name}" /&gt;</pre>
  </blockquote>
(I read&nbsp;&nbsp; <a class="moz-txt-link-freetext"
 href="http://webtest.canoo.com/webtest/manual/properties.html">http://webtest.canoo.com/webtest/manual/properties.html</a>&nbsp;&nbsp;
again and it made more sense)<br>
  <br>
</blockquote>
</body>
</html>

--------------020409010102050908030501--