testing-presentation

testing-presentation - PHPUnit and Selenium For Component...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
PHPUnit and Selenium For Component and System Testing of Web Applications
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Objectives Today we’ll cover: Component testing with PHPUnit System testing with Selenium
Background image of page 2
Example Application
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introducing eCoffee A web interface to your coffee machine! Includes only log in/log out functionality (so far. ..) For simplicity, database is simulated
Background image of page 4
eCoffee Design
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Motivation Why deal with the extra work of creating automated tests? Regression testing! Removes ambiguity Tests can serve as ‘developer documentation’
Background image of page 6
PHPUnit
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PHPUnit Overview Designed to test classes as opposed to scripts Targeted at testing individual classes in isolation Useful for automating tests in general
Background image of page 8
PHPUnit Overview Tests are grouped into TestCases Careful! PHP TestCase = test set as defined in class A TestCase comprises many test methods, an optional setUp method, and an optional tearDown method setUp / tearDown executed before/after each test method Why not once before/after all test methods?
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
PHPUnit Overview Expected results specified with assertions assertTrue/assertFalse assertEquals assertNull/assertNotNull and others. ..
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/25/2008 for the course CSE 435 taught by Professor Cheng during the Fall '07 term at Michigan State University.

Page1 / 28

testing-presentation - PHPUnit and Selenium For Component...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online