Grokbase
Topics Posts Groups | in
x
[ help ]

Re: hmm..testing with mod_perl and lwp

View PostFlat  Thread  Threaded | < Prev
Michael Peters Re: hmm..testing with mod_perl and lwp
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Greger wrote:
> Okey so this is the situation I have right now:
> 0)mysql based application
> 1)server with mod_perl
> 2)client is browser for time being, might be a mobile terminal or "custom
> client application" in the future
> 3)testing ( with perl-unit )

I usually use Test::Class and Test::More, but that's my preference.

> 3.1)testing package method functionality separately from the ui
> 3.2)testing web interface of the entire application with LWP::UserAgent and
> XML::XPath

Again, I use WWW::Mechanize, Test::WWW::Mechanize and maybe Test::HTML::Content

> The thing is:I'd like to discuss the issues that might arise as the
> development goes on further with this way of working. As for now, I am happy
> with what I am doing, it feels quite good and correct:but=>if anyone has
> experience working this way I'd like to know what you/they have experienced.

One of the main irritants in testing the UI of a web application is that it can
change quite frequently. Now changing your tests when the program changes is to
be somewhat expected, but depending on the changes, it can get annoying. I would
recommend against testing for a specific structure and just testing for the
data. But hopefully most of the markup is abstracted enough that most UI changes
are done in the style sheets. Even with this irritant, these kind of tests have
caught many bugs for me that straight unit-testing would not have found.

--
Michael Peters
Developer
Plus Three, LP

Thread : hmm..testing with mod_perl and lwp
1)
Greger Okey so this is the situation I have right now: 0)mysql based application 1)server with mod_perl...
2)
Michael Peters I usually use Test::Class and Test::More, but that's my preference. Again, I use WWW::Mechanize,...
spacer
View PostFlat  Thread  Threaded | < Prev