Hi,
  
Thanks for replying
I tried giving it in test file(flow.xml).But got error as nested loop.
So I tried connecting by including inside steps as


<steps>
<sql driver="sql.Driver"
url="sql.url "
userid="sql.user" password="sql.pwd">
<stmt>statement</stmt> 
</sql>
</steps>

Got Error message as

C:\Program Files\webtest\test1: Unexpected exception caug
ht: org.apache.tools.ant.UnsupportedElementException

Can you tell me the reason of not getting connected.
Thanks in Advance
Lavanya
 
 






 



________________________________
From: Hitesh Gupta <[email protected]>
To: [email protected]; lavanya palaniswamy <[email protected]>
Sent: Thursday, 12 February, 2009 9:10:13 AM
Subject: Re: [Webtest] Problem in SQL unit integration with Canoo webtest

these steps should be included in your test file (flow1.xml)


On Wed, Feb 11, 2009 at 7:07 PM, lavanya palaniswamy <[email protected]> 
wrote:

Hi All,
I am new to sqlunit5.0.I have issues in integrating sql unit with webtest
In "SQL Unit Integration" under Canoo webtest manual following script is given.
Can any one help me on where i need to include these scripts.
That is either in  webtest.xml or in the test file(flow1.xml).


Script:
<taskdef name="sqlunit" classname="net.sourceforge.sqlunit.ant.SqlunitTask"/>
...
<-- Testing SQLUnit using flat form of sqlunit call -->
<target name="sqlunit-flat">
   <sqlunit testfile="${testfile}" haltOnFailure="true" debug="${debug}"
         logfile="${result.file}" logformat="${log.format}" />
</target>

<-- Testing SQLUnit using nested form of sqlunit call -->
<target name="sqlunit-nested">
   <sqlunit haltOnFailure="false" debug="${debug}"
         logfile="${result.file}" logformat="${log.format}">
      <fileset dir="${test.dir}/${testdir}">
         <include name="**/*.xml" />
      </fileset>
    </sqlunit>
</target>
...
<-- reporting -->
<target name="canoo2html">
   <delete file="${output.dir}/${output.file}.html" />
   <xslt in="${result.file}"
         out="${output.dir}/${output.file}.html"
         style="${etc.dir}/${webtest.style}.xsl" />
</target>



Thanks in Advance
Lavanya
...


________________________________
Add more friends to your messenger and enjoy! Invite them now.



      Get perfect Email ID for your Resume. Grab now 
http://in.promos.yahoo.com/address

Reply via email to