[Webtest] Dynamic field naming
Fri, 22 Mar 2002 06:11:03 -0800 (PST)
I agree w/ Dierk about using the language that is
closest to the program / programmer for unit testing.
I see tools like WebTest being more and more used by
the customer to define their acceptance/functional
tests. (Of course this is called a wish, but who
knows it might come true :)
On my project I'm going to try and integrate
Ant/WebTest into out bug reporting system. My project
is a maintance release, so the core web interface has
been established for quite sometime, that's not always
good. However, it allows me to quickly create an
interface for our users to enter some of the critical
pieces of data and the expected results and outputting
a WebTest xml file, that will be added to the
acceptance testing suites. Currently as problems come
in I'm writting a WebTest for it and I'm finding, for
my app, that there is quite a recognizable pattern
forming. (I just thought of the idea in the shower
this morning so we'll have to see if I can do it.)
In the future, for web apps, I think it might be
possible for the customer to use a nice GUI to define
some of this Input, Expected Output kinds of
acceptance tests and tools like Ant and WebTest would
be the engines that execute it. Again it might just
be a wish, but wishes can come true!
> > By the way, has anyone investigated the use of
> this sort of
> > Ant-based, XML-specified architecture for doing
> unit testing? If
> > WebTest were to expose more of the functionality
> in the HttpUnit API, it
> > might be able to handle both types of testing!
> This would probably
> > require a more heirarchical schema for the task
> definition, however.
> There is a tool from some guys in Australia or New
> Zealand that I saw a
> presentation of at OOPSLA 99. It captures Unit Tests
> in XML, executes them
> and reports execution. (it is called JUnitX or so)
> It is my considered opinion that Unit tests need to
> be expressed in your
> programming language and that they need to go with
> your code without
> any barrier. I need to switch smoothly between Unit
> Tests and production
> code minute-by-minute. My Unit Tests capture the
> design, and the api, both
> in syntax and semantic. To do this in my programming
> language comes most
> natural to me.
> Why then putting the functional tests in XML/ANT?
> They belong to the customer. He needs to understand
> and maintain it.
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®