Hi,

First of all , I would like to say that Canoo Webtest is a really great tool
for automated testing tool. I am currently working in a company and all of
my colleagues are impressed by this tool.

I would like to say that data driven testing has been helping me a lot with
my work as a web tester. I have downloaded the latest version of CAnoo
webtest (Latest build: R_1693) and I am experiencing problem with data
driven from excel. It looks like when one of value in the row fails, any
subsequent rows would fail as well.

For example, I have created a very simple test as per follows:

<dataDriven tableContainer="Example1.xls"  >

        <webtest name="test">

            <invoke url="${URL}"/>


            <verifyXPath xpath="id('content')/h1" text="${Heading}"/>

</webtest>
</dataDriven>

My excel sheet looks like:

  URL Heading
http://searchjobs.careerone.com.au/search/categories/Accounting.html Accounting
Jobss
http://searchjobs.careerone.com.au/search/categories/Administration_-_Secretarial.html
Administration
& Secretarial Jobs

I purposely type the wrong heading i.e. Accounting Jobss so that it will
fail during the testing. The second heading value (Administration &
Secretarial Jobs) is the correct value.

When I run the test, the first URL with the corresponding Heading value
(Accounting Jobss) would fail , however the second URL with its
corresponding Heading value (Administration & Secretarial Jobs)  would also
fail.

The following is the result generated:

expected valueAccounting Jobss  actual valueAdministration & Secretarial
Jobs
You can see that for some reason , the expected value is still the first
Heading Value whereby it should be the second Heading value i.e.
Administration & Secretarial Jobs

Please assist to solve this puzzle for me.

Thanks

Reply via email to