[Webtest] How to print/log in WebTest? + dbUnit to Webtest traverse
update
Rob Manthey
webtest@lists.canoo.com
Thu, 13 Jul 2006 12:32:13 +1000
This is a multi-part message in MIME format.
--------------010101000308060700050705
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I'll answer some of my own "don't knows" here
on 13/07/06 11:56 Rob Manthey said the following:
> // I can't get groovy's print to appear - some classpath dilemma no doubt
> // print "${testCustomerId} - ${testCustomerName}"
>
I should have said - pretty sure this is to do with debug levels and
log4j, but i can't find the culprit that's overriding the standard
log4j.properties file.
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)
--------------010101000308060700050705
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'll answer some of my own "don't knows" here<br>
<br>
on 13/07/06 11:56 Rob Manthey said the following:
<blockquote cite="mid44B5A833.6020204@rob.manthey.id.au" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<pre> // I can't get groovy's print to appear - some classpath dilemma no doubt
// print "${testCustomerId} - ${testCustomerName}"
</pre>
</blockquote>
I should have said - pretty sure this is to do with debug levels and
log4j, but i can't find the culprit that's overriding the standard
log4j.properties file.<br>
<br>
if I set the following line to:<br>
<blockquote cite="mid44B5A833.6020204@rob.manthey.id.au" type="cite">
<pre> step.setWebtestProperty('test_customer_name', testCustomerName, step.PROPERTY_TYPE_ANT)
</pre>
</blockquote>
then this line reports "property not defined" - <br>
<blockquote cite="mid44B5A833.6020204@rob.manthey.id.au" type="cite">
<pre><verifyProperty name="test_customer_name" text="Canoo WebTest Customer 1" />
</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><echo message="Test Customer Name = ${test_customer_name}" /></pre>
</blockquote>
(I read <a class="moz-txt-link-freetext" href="http://webtest.canoo.com/webtest/manual/properties.html">http://webtest.canoo.com/webtest/manual/properties.html</a>
again and it made more sense)<br>
<br>
</body>
</html>
--------------010101000308060700050705--