Testing AJAX Applications with Selenium Patrick Lightbody Gomez, Inc. Agenda • Four demos: basic Selenium, Google Maps, Dojo, and Scriptaculous • Learn to speak Selenese • Testing AJAX • Selenium Remote Control • Tips & Tricks Quick Poll • Audience: Testers? Developers? Managers? Mix? • Continuous integration: Yes? No? Compile only? Unit tests? Functional tests? • Toolkit: Home-brewed? Using a framework? Using multiple frameworks? A Growing Problem • Browser fragmentation • Application fragmentation • Functionality impact • Performance impact About Selenium • A cross-platform browser automation tool. • Written primarily in JavaScript. • Supports tests written in JavaScript, “Selenese”, or just about any programming language. • Has several sub-projects (Core, IDE, RC, Rails, etc) • Is part of OpenQA, the home of many other open source QA tools. Crash Course • Best way to get started with Selenium is to use it... DEMO Getting Fluent in Selenese Selenese Language • A simple language that is structured like Fit. • Has three core components • Actions - the things that actually control the browser • Accessors - how you work with data in the browser • Element Locators - how you identify data in the browser • Has limited support for variables, but no control structure.
Description: