You are on page 1of 4

Test Levels for

Web-based applications

By G. Bazzana, F. Basili, E. Fagnoni

To date, we can say that Web-based appli- normal way to set-up “live” specifica-
The last years have seen an explosive cations deserve a high level of all soft- tions
growth in the WWW. Currently the Web ware quality characteristics defined in the ‹Limited formalisation of analysis and

is the most popular and fastest growing ISO 9126 standard, namely: design automatically implies that usage
information system deployed on the of defect prevention techniques can only
‹Functionality: Verified content of Web be marginal: most of things to be checked
Internet, representing more than 80% of
its traffic. must be ensured as well as fitness for are thus let to dynamic testing
intended purpose ‹Round-trip engineering is followed, by
‹Reliability: Security and availability are which we do not have a waterfall model
Additional trends are:
‹Interaction of Web-based solutions with of utmost importance especially for but rather we: “design a little, implement
large DBMS; applications that required trusted transac- a little, test a little” several times on
‹Web-portals;
tions or that must exclude the possibility incremental versions;
‹ Usage of Web-based interfaces for
that information is tampered
‹Efficiency: Response times are one of Such characteristics have marked the suc-
‹ Intranet/ Extranet applications that
directly interface the company legacy the success criteria for on-line services cess of the Web; hence we do not think
‹Usability: High user satisfaction is the that Web development has to be adjusted
system;
‹Usage of Web-based approaches for
basis for success in order to fulfil traditional software engi-
‹ Portability: Platform independence neering practices, but rather testing tech-
critical applications (e.g.: on-line trading)
‹Access to the Web by different media
must be ensured at client level niques and tools have to be capable of
‹Maintainability: High evolution speed operating within such innovative
(e.g.: mobile phones, TV)
‹Need to allow equal opportunities to
of services (a “Web Year” normally lasts approach.
Web access also for impaired or disabled a couple of months) requires that applica-
people, in order not to exclude them from tions can be evolved very quickly. The following aspects further complicate
the new “Information Society”. the picture:
In the experiences of the authors, Web- ‹Designers are often not professional

This has increased the complexity and based applications are characterised by software developers or at least are not
criticality of applications, requiring the the following project management pecu- aligned with conventional software engi-
adoption of systematic testing activities liarities: neering practices;
‹Development is managed in accordance ‹The turnaround of people involved in
also in the Web-based realm that is far too
often wrongly considered an application with Rapid Application Development Web projects is extremely high
domain populated mostly by hackers. (RAD) approach; ‹Compressed deadlines for services are
‹This implies that analysis and design normal considering the pace of innova-
The increasing importance and reliance are scarce when compared to “standard” tion in the field;
of Web applications ask therefore for applications: the goal is to sketch-out an ‹Evolutionary maintenance is a must; we

more and more testing levels to be innovative idea into a service, rather than can say that Web-based products seldom
applied, as highlighted in the lower part to build a product starting from very pre- reach a mature status, since they are
of the picture. cise specifications and architectural replaced by newer version when they still
design are beta-tested;
‹Proof of concept presentations are the ‹Underpinning technologies are chang-
site are in relative forms (e.g. applicable both to tables and forms), ‹HTML Tidy, a free utility for correcting
../images/image.gif),...). ‹portability problems (17 tests includ- HTML syntax automatically and produc-
ing: accessibility by various browsers and ing clean mark-up. Tidy can be used to
3. Usability tests are concerning with the platforms, mark-up inside comments, use convert existing HTML content into
following aspects with respect to normal of single quotation marks for attribute compliant XML
behavior, destructive behavior, and inex- value, use of specific mark-up not sup-
perienced users: ported by all browsers, liberal usage of All W3C software is Open Source and
‹Coherence of look and feel file naming, etc.), can be retrieved from http://www.w3.org/
‹navigational aids; ‹structural integrity problems (4 tests
‹user interactions; including: no index file for a directory, Doctor HTML
‹help messages; dead links, limbo pages, etc.),
‹security problems (7 tests including: no Doctor HTML is a Web site analysis
4. Fast loading/link tests are concerning confidential data passed through form product, whose main features are:
with the following problems: without SSL, no user form field exposed ‹Check the document for spelling errors:
‹home page weight should be less to shell in CGI programs, etc.) This test looks for spelling errors in the
than 45k; The adoption of supporting tools can document. This is very helpful because it
‹every page weight should be less allow for setting up a test factory and thus removes HTML directives and accented
than 50k; run almost automatically a large propor- text before running the document through
‹every web-site should have a fast tion of the defined tests. a spelling checker, eliminating most of
loading abstract/index; the false alarms;
‹every IMG tags must have WIDTH Tools for Testing Static Web ‹Perform an analysis of the images: This
and HEIGHT attribute. section loads all the images in a docu-
Applications ment and determines a few important
Fast loading test is very important if we properties of each image. The most
consider that 85% of Web Users indicate In this section, the most known tools for important information is the bandwidth
slow loading times as the reason for Testing Web Static Applications are consumed by each image, and roughly
avoiding further visits to Web Sites. quickly examined. how long it will take to download over a
Moreover, a survey made by Zona 14.4kbps modem (now the most common
Research Inc. in April 1999 highlighted This does not imply any endorsement by speed for dial-up access users). Excessive
very high bail-out rates for pages with a the authors of any of the listed tools. load times for individual images are high-
weight resulting in more than 8 seconds Information on listed tools might not be lighted. The program also reports the size
to wait;1 second load-time improvement always fully aligned with their latest ver- and number of colors in the image, which
brought to a reduction in bail-out rates sion, owing to the fast evolution pace. In has a direct bearing on how much band-
from 30% to 7% ! general we can say that no one tool is width the image consumes;
fully comprehensive in its coverage, and ‹Test the document structure: This fea-
ONION static testing checklist is best used in combination with addi- ture tests the main document structure
tional tools. For most tools, coverage (excluding tables, which are dealt with
In order to have a pragmatic approach to improves with every release separately). The test looks for unclosed
Web syntactic testing, a standard check- HTML codes that may cause problems on
list, containing more than 100 checks, The World-Wide Web Consortium some browsers. When used in conjunc-
was devised by ONION to be applied (W3C), hosted by MIT, INRIA and tion with other features, this can be help-
both for acceptance purposes and for University of Keyo, has been committed ful in hunting down extra HTML tags;
regression testing activities. This check- from its beginning, under the leadership ‹Look at image syntax: This test deals
list covers the following aspects (for each of Tim Berners-Lee, the inventor of the with one of the most common mistakes in
class the number of tests is given, togeth- WWW, to developing a neutral, open HTML coding: overlooked image com-
er with some of the aspects checked): forum for the evolution of Web mand tags. Specifically, it checks each
‹stylistic problems (9 tests, including: Technology. image command for HEIGHT, WIDTH
spelling errors, particular tags, use of and ALT tags, and reports if they are
obsolete mark-up, particular content-free Like its partner standard body, the absent. These tags are important for quick
expression, empty container elements, Internet Engineering Task Force (IETF) image loading and page formatting, as
etc.), W3C is committed to developing open, well as providing information for
‹lexical problems (5 tests, including: use technically sound specifications, backed browsers lacking images;
of character sets, formatting-related prob- by running sample code. As a conse- ‹Examine table structure: This feature
lems, using white spaces around element quence W3C has developed various tools tests the table structure on the page. It
tags, etc.), for Web Testing including: specifically looks for unclosed TR, TH
‹syntax problems (12 tests, including: and TD tags inside a properly defined
illegal elements, illegal attributes, ‹ An HTML Validator, which allows table (e.g.: one which has both an open
unclosed container elements, malformed HTML documents to be validated against and close table tag). It also reports on TR,
URLs and attribute values, etc.), the DTDs for HTML, including HTML TH and TD tags that appear outside of
‹fast loading related problems (26 tests, 4.0 any properly defined table, since these
including: bandwidth consumption, ‹A CSS Validator, which allows the user may cause formatting errors on some
images syntax, etc.), to validate the CSS style sheets used by browsers;
‹document structure problems (4 tests HTML and XML pages ‹Verify that all hyper-links are valid:
long time on the market for C language.
Among the various development/ test
Browser
environments offering such features it is WEB SERVER
worth remembering at least: SUN’s Java
Test Tools, TCAT for Java, White Box Server
Deep Cover for Java and RST Test tools Extension MIS
(inclusive of: Deep Cover for coverage
analysis; Assert Mate for pre-conditions,
post-conditions and data assertions test-
ing; Total Metric for static analysis).

Testing of dynamic Web- Transaction


DBM CGI Mng
based applications
Figure 2: Architecture & Challenges of Dynamic Web Applications
Module testing
Testing of Dynamic Web-based applica- more than 90% of the software is out of be read back from the browser. This is
tions deserves much of the challenges of the developers’ control, being re-used useful for having the browser remember
client-server applications, with additional from other sources. some specific information. The problems
constraints posed by the underlying related with testing are that cookies
architecture, which can be summarised as Special care has to be devoted to the fol- expire and that users can disable them in
represented by Figure 2. lowing aspects: browser.
‹Focus on usability test.
Dynamic WWW development can be ‹Focus on performance test. Besides the basic Security checking per-
done, at the current level of technology, ‹Focus on load-stress. formed during the previous test level,
with two main approaches: CGI ‹Focus on installation test if special specific security testing has to be per-
Programming (Perl, C, TCL..) or Server plug-ins are present formed when Web applications make
Extension Programming (ASP, PHP, ‹Perform well-managed beta test. usage of sensitive data.
Apache Server API, Netscape Server
API, ..) It has to be noted that the risk First of all it shall be clear that on the
level associated to the two techniques is
Integration/ Security
WWW there is no silver bullet for
utterly different, as clearly highlighted by Testing absolute security, likewise in real life,
Figures 3 and 4. and that security techniques and checks
Integration/Security tests are concerned shall be tailored depending on the value
In fact, whereas when a CGI calls fail just with to be protected.
a program fails, when a server extension ‹Included components
fails, the whole server might crash! ‹Cookies Moreover, it is important to underline
‹Proxies/ caching that security enforcing involves both
For Testing Server Side, an approach ‹Frames organisational and technical issues;
similar to client-server testing has to be namely organisational issues are often
taken, covering both GUI and HTTP test- A peculiar aspect of the testing of dynam- much more important than technical
ing, as shown in Figures 5 and 6. ic WWW applications is testing of cook- ones, at least in Intranet and Extranet
ies. The web is a memory-less system, applications.
Besides the well known techniques for with no concept of session. To overcome
client-server testing, you should beware these issues you can use cookies: a small In such cases, the approach is to define a
of complexity from included software piece of information sent by a web server “Security Policy” at company level and
layers; it has to be remembered that often to store on a web browser so it can later
Figure 3: CGI Programming Figure 4: Server Extension Programming

HTTP SERVER

CGI interface

CGI PROGRAM

DB LEGACY
APPLICATION
virtual users; HTTP requests can be edit- Tool providers are performing certified
ed, changed or parameterised integration with ERP systems.
‹Web Scenario Wizard: orchestrates vir-
tual users into a multi-user scenario; up to Future challenges
4.3 million hits per day like real users
surfing Future challenges are related to the evo-
‹Visual Load Testing Controller: drives,
lution of the WWW, namely:
monitors and synchronises interactions ‹ New Generation HTTP Protocol
(HTTP-NG)
Data analysis statistics include number of ‹Integration between TV and the Web
virtual users, transaction performance, ‹Emergence of XML
completed transactions per sec., connec- ‹New references for User Interfaces:
tions per sec., and throughput. evolution of HTML (for publishing docu-
ments), on MathML (for publishing
Web-specific supporting features include: Math), on SMIL (for multimedia presen-
cookies, proxy servers, user authentica- tation), on SVG (for publishing diagrams
tion, session Ids, CGI scripts, API calls, and vector-based graphics)
and HTML forms. ‹Mobile access to the WWW as well as
techniques for using voice interaction for
The tool can be integrated with Astra Site accessing the Web
Manager and SSL Plug-in Pack. ‹Privacy issues
‹Digital signatures
Testing ERP and WWW ‹Micro-payments

integration
These emerging technologies and servic-
Future Intranet/ Extranet applications es will require Internet testing approach-
will require more significant work and es to be continually fine-tuned, to guaran-
more sophisticated skill set. In fact, tee the reliability and quality of service
Intranets will evolve into a component of required by the global Information
the IT infrastructure making distributed Society.
computing more open, simpler and more
manageable. This will make possible the ONION S.p.A.
delivery of more flexible, manageable Via L. Gussalli, 9 - 25131 BRESCIA
distributed business processes. (Italy)
E-mail: info@onion.it - Web:
From a technical point of view, Web- http://net.onion.it/
enabled business applications will be
based on transaction-oriented business
processes; hence Intranet based applica-
tions will merge with Extranet-based
business-to-business transactions, EDI
and electronic commerce transactions.

Already today, to multiply benefits, com-


panies need to integrate Web technology
with transaction-oriented business appli-
cations, group-ware and infrastructure
services, integrating Web-based applica-
tion and MIS and setting-up simple,
cross-platform applications on top of a
simple-to-manage and more centralised
IT infrastructure.

As far as testing is concerned, challenges


are on:
‹security,
‹load testing
‹User authentication
‹Server authentication
‹Connection privacy
‹Message Integrity
‹Payment security.

You might also like