PAL Session 18 - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

PAL Session 18

Description:

Verifying the integration and interfaces between program units. Regression testing ... Click everything clickable, does the right thing happen? ... – PowerPoint PPT presentation

Number of Views:496
Avg rating:3.0/5.0
Slides: 12
Provided by: mattma7
Category:
Tags: pal | clickable | session

less

Transcript and Presenter's Notes

Title: PAL Session 18


1
PAL Session 18
  • Session Overview
  • Testing your website
  • XHTML 1.0

2
Testing types
  • Unit testing
  • Testing and verifying program units
  • Integration testing
  • Verifying the integration and interfaces between
    program units
  • Regression testing
  • Ensuring changes made do not affect other parts
    of the system
  • Systems testing
  • Ensuring the system meets its objectives
  • Acceptance testing
  • Making sure the system meets the user
    requirements

3
Testing methods
  • Black box testing
  • Adding and input and making sure the system gives
    the corresponding output
  • Does not require knowledge of the system code
  • White box testing
  • Analysing the code to make sure the program does
    what it is supposed to do
  • Requires intimate knowledge of the system code

4
Testing your website
  • On all pages
  • Check links do they all work?
  • Click everything clickable, does the right thing
    happen?
  • Navigation links/buttons do you end up where
    you were supposed to?
  • Images do they all appear and appear correctly?
  • Animations do they work correctly and at the
    correct speed?
  • Dead ends do you have any pages that cause the
    user to get lost, or become unable to navigate to
    other areas of the site?

5
Testing your website
  • On forms
  • Use clear buttons
  • All forms should have a cancel button, that allow
    the user to start again
  • Error messages should occur when the user does
    something wrong/misses out information
  • Putting in the wrong type of data
  • Missing out information
  • Submitting a blank form
  • Test zero values
  • Test very large values
  • Emailing does it work correctly (you may need
    to set up your email details)

6
Testing strategy
7
Unbiased testing
  • Its a good idea to get someone not involved with
    the project to use and try to break your website.
  • This method may indicate bugs you may have
    missed, due to familiarity with the site/code
    etc.
  • This is the concept of beta testing

8
Exercise
  • Breaking your website

9
XHTML
  • You can try writing your pages in XHTML the
    newer version of HTML
  • XHTML is essentially the same as HTML it is
    just much cleaner and stricter
  • Declare as XHTML
  • lt?xml version"1.0" encoding"UTF-8"gt
  • Include a DTD
  • lt!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Strict//EN "DTD/xhtml1-transitional.dtd"gt
  • Keep the HTML tag
  • lthtml mlns"http//www.w3.org/1999/xhtml"
    xmllang"en" lang"en"gt
  • Some tags are now deprecated
  • ltigt ltbgt ltugt ltfontgt

10
XHTML continued
  • Tags remain the same as in HTML
  • ltimggt ltagt lth1gt etc
  • All tags MUST be in lower case
  • ltimggt ltagt lth1gt
  • All tags MUST be closed or self closed
  • lth1gtHellolt/h1gt ltbr /gt
  • All tags MUST be properly nested
  • ltpgtlth1gtltstronggtHellolt/stronggtlt/h1gtlt/pgt
  • All attributes MUST be quoted
  • ltimg srcpic.gif altpicturegt

11
Summary
  • Make sure you test all aspects of your site as
    fully as you can
  • Create a test strategy (see slide 6) so you dont
    miss anything
  • Ask someone to play with your website, and
    ultimately try to break it. This may uncover
    errors you may have missed
  • For more on XHTML, see http//www.w3schools.com/xh
    tml/
Write a Comment
User Comments (0)
About PowerShow.com