Presentation is loading. Please wait.

Presentation is loading. Please wait.

End-to-end Web Testing with Selenium ● Stefan Priebsch, e-novative GmbH ● ZendCon 2008, Santa Clara, CA.

Similar presentations


Presentation on theme: "End-to-end Web Testing with Selenium ● Stefan Priebsch, e-novative GmbH ● ZendCon 2008, Santa Clara, CA."— Presentation transcript:

1 End-to-end Web Testing with Selenium ● Stefan Priebsch, e-novative GmbH ● ZendCon 2008, Santa Clara, CA

2 How do you test web applications?

3 Testing in a Nutshell ● Compare calculation result with expected value ● Automate it ● Repeat it (often)

4 Types of Tests ● Unit Tests ● System Tests ● Acceptance Tests ● Integration Tests ● Performance Tests ● Load Tests ● Usability Tests ●... and don't forget security!

5 System Tests

6 The Request Cycle ● Browser requests URL ● PHP generates HTML page ● Browser creates DOM tree ● Browser renders page ● Javascript transforms DOM tree ● Browser re-renders page ● Action triggers new request

7 Selenium IDE ● Capture & Replay Tool ● IDE for tests ● Firefox plugin ● http://selenium-ide.openqa.org/

8 Live Demo

9 Selenium RC ● Browser Remote Control ● Supports most current browsers ● Java Proxy ● http://selenium-rc.openqa.org/

10

11 PHPUnit Integration ● http://www.phpunit.de ● pear channel-discover pear.phpunit.de ● pear install phpunit/phpunit ● PHPUnit_Extensions_SeleniumTestCase

12 Live Demo

13 Continuous Integration ● CruiseControl, Continuum, Xinc ● http://cruisecontrol.sourceforge.net/ ● PHPUnderControl ● http://www.phpundercontrol.org

14

15

16 Virtual Machines ● XEN, KVM, VirtualBox, VMware ● Test automation requires ● Snapshot Management ● Scripting (VM start and stop)

17 Putting It Together ● setUp() ● Start virtual machine ● Install application ● Run test ● tearDown() ● Shutdown virtual machine ● Rollback to latest snapshot

18 This Gives You ● A flexible low-cost test lab to test your web application ● against different browsers ● against different operating systems ● against different databases ● in different configurations ● different application versions

19 Thank you.

20 http://inside.e-novative.de (en) http://www.priebsch.de (de) stefan.priebsch@e-novative.de

21


Download ppt "End-to-end Web Testing with Selenium ● Stefan Priebsch, e-novative GmbH ● ZendCon 2008, Santa Clara, CA."

Similar presentations


Ads by Google