© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Project 1 Introduction to HTML.
Introduction Testing is examining the project performance according to the specifications that have been agreed. This will include the robustness of the.
Server-Side vs. Client-Side Scripting Languages
Lecture 6: Testing/Quality Assurance Damien Markey.
Copyright © 2001 Bolton Institute Dept. of Computing and Electronics – MIA module Lecture 10: Testing/Quality Assurance Damien Markey.
Semester 2, 2003 Week 7 CSE9020 / 1 Software Testing and Quality Assurance With thanks to Shonali Krishnaswamy and Sylvia Tucker.
1st Project Introduction to HTML.
Topics in Website Testing [Reading assignment: Chapter 14, pp ]
What Is A Web Page? An Introduction to the Internet.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Topics in Testing Software Documentation [Reading assignment: Chapter 12, pp ]
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
Linux Operations and Administration
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
Dr Walid M. Aly Illuminating Computer Science CCIT 4-6Sep 1.
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
Mr C Johnston ICT Teacher
CHAPTER 2 Communications, Networks, the Internet, and the World Wide Web.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Semester 1, 2003 Week 7 CSE9020 / 1 Software Testing and Quality Assurance With thanks to Shonali Krishnaswamy and Sylvia Tucker.
Software Quality Assurance Lecture #8 By: Faraz Ahmed.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
© 2011 Delmar, Cengage Learning Chapter 7 Managing a Web Server and Files.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
FrontPage Introduction Presented by: Audrey Marshall for Interactive Multimedia Design.
CP3024 Lecture 12 Setting up a World Wide Web Site.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
Microsoft Internet Explorer and the Internet Using Microsoft Explorer 5.
Web Programming : Building Internet Applications Chris Bates CSE :
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
76 © 1998, 1999, 2000 David T. Gray, Howard Duncan, Jane Kernan Frames When displaying information in a browser, it is sometimes useful to divide the display.
WEP Presentation for non-IT Steps and roles in software development 2. Skills developed in 1 st year 3. What can do a student in 1 st internship.
Software. A web site is a collection of web pages on a particular topic. A web page is a document written in HTML code. Web pages are linked together.
Producing a high-impact web experience by integrate Macromedia Flash and ASP By Katie Tuttle CS 330: Internet Architecture and Programming Project.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Oman College of Management and Technology Course – MM Topic 7 Production and Distribution of Multimedia Titles CS/MIS Department.
XP Tutorial 8 Adding Interactivity with ActionScript.
Learning Aim C.  Once the website is complete, you should test it using the test plan you created at the design stage.
Learning Aim B.  In this section, you will consider the resources necessary for designing your website.  You will also think about any constraints that.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
Introduction. Internet Worldwide collection of computers and computer networks that link people to businesses, governmental agencies, educational institutions,
Dynamic Black-Box Testing Part 1 What is dynamic black-box testing? How to reduce the number of test cases using: Equivalence partitioning Boundary value.
Web Page Programming Terms. Chapter 1 Objectives Describe Internet and Understand Key terms Describe World Wide Web and its Key terms Identify types and.
Testing and delivery Web design principles. Web development is software development.
Web Programming Language
Pre-Production Meet with the client to create a project plan:
Project 1 Introduction to HTML.
Project Objectives Publish to a remote server
Chapter 1 Introduction to HTML.
Warm Handshake with Websites, Servers and Web Servers:
Software testing
Project 1 Introduction to HTML.
Introducing the World Wide Web
Introduction to Programming the WWW I
Maintainability What is the primary task for the maintainability of a web site? Web sites designers must be aware that during the lifetime of a site one.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
About Multimedia Files
Presentation transcript:

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University of the West Indies Session 2 – An Introduction to Web-based Testing Summer 2008

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Objectives  In this session the student will: Discuss infamous software error case studies Describe black-box, white-box and gray-box testing Defend testing axioms Analyse testing approaches Plan the testing process Test websites

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Why do we need to test software? (Patton 2006)  Case studies: Disney Lion King, (p. 10) NASA Mars Polar Lander, 1999 (p. 11)

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott What do Testers do? Find bugs as early as possible and get them fixed!

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott What are the characteristics of a good Tester?  They are explorers  They are troubleshooters  They are relentless  They are creative  They are perfectionists  They exercise good judgment  They are tactful and diplomatic  They are persuasive (Patton 2006, p. 21)

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing axioms  It is impossible to test a program completely Large number of inputs & outputs  “Testing is a risk-based exercise (p. 39)” Because you do not test everything  Testing does not reveal that bugs do not exist

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing axioms cont’d  You do not fix all the bugs you find  The software tester tends not to be the most popular members of the project team

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Debate  Create two teams and debate, for and against the following “If you find a lot of bugs that means that there are many more”

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches  Three types of testing approaches are: White box Black box Gray-box Testing

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Black Box Testing (functional testing)  The tester treats the system as a black box Predefined inputs should have predefined outputs

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d White Box Testing (clear box testing)  The tester examines the program code for clues which helps him to test effectively  Static white box testing methods includes: Peer reviews Walkthroughs Inspections

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Gray Box Testing (clear box testing)  Utilises the black-box approach with clues gained from looking at the code (white box). Unlike white box, the full set of code is not examined

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Test to Pass  When a new system has been created, use a minimum set of test to determine whether the system does what it is supposed to In use case analysis this would be the main success scenario

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Test to Fail  This is when you attempt to break the software In use case analysis these will be the extensions

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Test Boundary Conditions  When testing boundaries look for data types Numeric Character Position Quantity Speed Location Size

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Test Boundary Conditions  Consider the following characteristics of these types: First/Last Min/Max Start/Finish Over/Under Empty/Full Shortest/longest, and so on

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Data Entry Testing  Data input boxes should be able to handle: Defaults Empty Blank Null Zero None

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Testing approaches cont’d Data Entry Testing  Data input boxes should be able to handle: Invalid data Wrong data Incorrect data Garbage data

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing  A web page comprises of (Patton 2006, p.212): Text Graphics and photos Hyperlinked text and graphics Rotating advertisements Fields in which users enter data

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d  Treat the website like a black box and test: Test the text (documentation)  Audience  Terminology  Content and subject matter  Correctness Test the hyperlinks Test the graphics  Do they load properly  IS formatting consistent on a browser resize Change size of text

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d Test the forms  Just like testing fields in other software Include boundary conditions testing Test other objects on the page  Flash movies – play, stop, previous, next  Hit counters  Site searches

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d  Treat the website like a gray box Look at the HTML code

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Activity  Select a website and perform black box and gray box testing

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d  Treat the website like a white box. Look at: Dynamic content Database-driven Web pages Programmatically created web pages Server performance and loading  Tools such as Apache’s ab can be used

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Activity  Install the Apache server  Use the ab utility to performance benchmark a web server (located in the bin directory of the Apache installation) ab –n 1000 –c 5  N – number of requests sent  C – the number of concurrent requests

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d Configuration testing  It is important to consider the hardware and software platforms that will be used: Hardware  PC, Mac, and so on Browser software and version Browser plug-ins Browser options  For example, security options – enabling scripts

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d Configuration testing Video resolution and colour depth Text size Internet connection speeds

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d Usability testing There are many things that may be considered in usability testing. These include:  Scrolling text, marquees and constantly running animations  Long scrolling pages  Non-standard link colours  Outdated information

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Website testing cont’d Usability testing  Overly long download times  Lack of navigational support  Orphan pages Purpose of page should be clear and should link back to the home page  Complex web addresses  Using frames For a complementary treatment of usability, look at ses/comp ses/comp3210

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Test Planning  The purpose of a test plan is: To prescribe the scope, approach, resources, and schedule of the testing activities. To identify the items being tested, the features to be tested, the testing tasks to be performed, the personnel responsible for each task, and the risks associated with the plan. IEEE Standard for Software Test Documentation

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Test Requirements  A test requirement identifies what needs to be tested Each test requirement has one or more test cases

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Test Cases  A Test case comprise of a: Pre-condition Test Post condition  For further information on testing see (Patton 2006)

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott Conclusion  In this session The importance of testing was emphasised Testing axioms were presented Different approaches to testing analysed, and Methods of testing websites were detailed

© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott References Patton, R., “Software Testing”, Second Edition, Sams Publishing, 2006