Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 98565 invoked from network); 13 Jun 2007 18:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 18:34:10 -0000 Received: (qmail 43481 invoked by uid 500); 13 Jun 2007 18:34:13 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 43473 invoked by uid 500); 13 Jun 2007 18:34:13 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 43464 invoked by uid 99); 13 Jun 2007 18:34:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 11:34:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.189.62.25] (HELO servprise.com) (66.189.62.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 11:34:08 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Unit testing web apps Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Jun 2007 14:33:47 -0400 Message-ID: <384329B8D7108B45A3064FB38FCF267B07C5F0@aristotle.servprise.office> In-Reply-To: <525d8e10706121847q821799ct164fd5270ab948ce@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Unit testing web apps thread-index: AcetXM+tYSi7MdnLTkC2yacnr0KnAAAjEJWQ References: <9236FF55-C693-45B5-AD9D-27724BEEB03A@objectstyle.org> <35E28EDE-AB5E-4390-AE9E-592E7235A544@objectstyle.org> <8f985b960706121233h44f4d2a6g98e7c31632b4ca7e@mail.gmail.com> <6E6CDD89-633A-4F87-9DD2-96371C6484A0@objectstyle.org> <525d8e10706121847q821799ct164fd5270ab948ce@mail.gmail.com> From: "Kevin Menard" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Malcolm Edgar [mailto:malcolm.edgar@gmail.com]=20 > Sent: Tuesday, June 12, 2007 9:47 PM > To: user@cayenne.apache.org > Subject: Re: Unit testing web apps >=20 > I think writing unit tests for DAO/Service classes is OK, but=20 > going up to the UI tier is not worth the effort. This is due=20 > to the amount of change you see in UI's and the effort it=20 > takes to write and maintain these tests. I have to disagree here. While they are a pain in the neck to maintain, our selenium tests have turned up numerous problems. Just recently we discovered a problem with using a shared data cache on certain objects. It also helps tests session-bound contexts. Since Selenium uses an XPath-like syntax for DOM navigation, you can write tests that generally work even after UI changes. --=20 Kevin