Course Summary
Learn to automate the testing of your web applications using Selenium tools. In this Selenium training course, you will learn how to use twill and Selenium to script your web application testing and run your tests automatically. Selenium is quickly becoming the open-source standard for web test automation. It handles both server-side testing as well as client JavaScript testing for your application.
Duration
1 day.
Objectives
Through this Selenium training course, you will learn to:
- How to use twill to write simple scripts to test your application at the HTTP protocol level
- Use Selenium and Selenium IDE to write full test cases, both for client-side JavaScript as well as server-side features
- Write complete test suite for a sample application using twill and Selenium, run the tests and analyze the results
Audience
Selenium training course is for web developers as well as QA professionals looking to automate the testing of their web apps. This course doesn't assume any specific testing or programming knowledge.
Instructors
In addition to web sites, GUI applications, and mobile device software, Adam has also built high-volume middleware for one of the world's largest banks, and produced a new, modern integration to a 1960s-vintage mainframe app for one of the world's largest airlines.
Adam focuses on designing and coding systems in a way that yields predictable results, leverages best practices and high-productivity tools, minimizes excess code, and is fun to do. He has also spoken at tech conferencs, written articles and skill assessments, and produced an open source tool for software development. Adam has enjoyed teaching large and small groups, covering topics from nuts-and-bolts Java programming to merging ideal process with real-world constraints in an organization. More about Adam Breindel...
Outline
Functional Web Testing with twill
- Overview and setup of twill
- Basic twill
- Working with forms
- Cookies and twill
- Working with variables
- Using the shell
- twill command line
- Scripting twill
- Advanced twill
- Running other Python scripts using runfile and run
- Handling strings and arguments
- Debugging options
- Output control
- HTTP/Browser issues
- Organizing your twill tests
- Using testing frameworks
- Recording test WITH scotch
- twill Extensions
- check_links for link checking
- require for assertions about pages
- csv_iterate for using CSV values in tests
- argparse for command-line arguments
- dirstack for changing directories
- formfill for easy form management
- twill and Python
- Extending twill
- Writing twill extension modules
- Creating domain-specific languages in twill
Functional Web Testing with Selenium
- Overview of Selenium
- Intro to Selenium Core
- Building a test suite in Selenium
- Deploying and running tests
- Recording tests with Selenium IDE
- Selenium commands
- Opening URLs
- Clicking on links
- Submitting forms
- Checking checkboxes
- Entering text in input fields
- Selecting values in pull-downs
- Verifying application state
- Using variables
- Using XPath Checker to locate page elements
- Selenium and JavaScript
- Selenium and Ajax
Testing Sample Application with twill and Selenium
- Sample application overview
- First step: charting test path
- Second step: building test script
- Third step: controlling the environment
- Using Fixtures and Tests with unittest
- Testing admin interface
- Recording Selenium tests with Selenium IDE
- Adding Test Conditions