[Webtest] Unconditionally executing some steps

Curelea, Alexandru webtest@lists.canoo.com
Thu, 5 Jan 2006 14:25:48 -0500


Hi Colin,

Thanks for the reply!

I can't use a property file, because the values are different for each =
test, and are generated at runtime.  You were on the right track though =
- I tried storing the information I need in an "ant-type" property =
(${id} instead of #{id}) and this does exactly what I needed - the value =
is available in the second webtest.=20

Thanks!

Alex

-----Original Message-----
From: webtest-admin@gate2.canoo.com
[mailto:webtest-admin@gate2.canoo.com]On Behalf Of Colin O'Brien
Sent: Thursday, January 05, 2006 1:03 PM
To: webtest@gate2.canoo.com
Subject: RE: [Webtest] Unconditionally executing some steps


Hi Alex,

You could use an ANT property file defined as shown below in your test
suite, this would then make all properties defined in this file =
available
globally to all your use cases...

<property =
file=3D"${propertiesDir}\RB_TC468_Vanilla_TAP3.11_2.6.0.0.prop"/>

Hope this helps.

Cheers,
Colin


-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Curelea, Alexandru
Sent: 05 January 2006 17:00
To: webtest@gate2.canoo.com
Subject: [Webtest] Unconditionally executing some steps


Hi all,

First, to the developers, thank you for an excellent tool.

I'm running into the following difficulty using Webtest.  Each of my =
tests
has a few clean-up steps at the end, which delete data that was created
during the test.  If this data isn't removed, any tests that follow will
most likely fail due to conflicts.  The data involves IDs generated at
runtime, which I'm capturing, storing and using as dynamic properties.

My problem is that if any of the steps in the test fail, the cleanup =
steps
don't get executed.  The "haltonerror" and "haltonfailure" config =
options
don't seem to help, because on a failure the execution still stops =
during
the current webtest.  I've tried putting the cleanup steps in a separate
webtest and even in a separate target, but in these cases I can't seem =
to
access the values of the dynamic properties (unless I'm doing something
wrong?)

Does anyone know how I could get this to work?  It is the only problem =
I've
had with Webtest so far, but unfortunately it would effectively prevent =
us
from running test suites, since the first failure would indirectly cause =
all
the following tests to fail.

Thanks for any ideas.

Alex
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest




_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest