Duration: 2 Days
End to End Testing with Selenium & Cucumber
Most courses are delivered as private, customized, on-site training at our clients' locations worldwide for groups of 3 or more attendees and are custom tailored to their specific needs. Please visit our client list to see organizations for whom we have delivered private in-house training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor's or students' travel expenses. To receive a customized proposal and price quote for private training at your site or online, please contact us. In addition, some courses are available as live, online classes for individuals.
PrerequisitesAll attendees must have substantial prior experience developing with Java. If attendees will not have prior Java experience, we would be delighted to proceed this class with a one- or two-day intensive Java primer.
- Prior testing and/or automation experience
- Good command of the Java language
- Good command of HTML and DOM fundamentals
By the end of this course, the students will be able to:
- Create test scripts using Selenium Builder.
- Know how to use the online documentation, and the WebDriver API.
- Create, debug and maintain Selenium test scripts.
- Understand and be able to communicate the concepts necessary for testing with Selenium.
- Interact and verify web elements using selectors
- Refactor existing scripts to leverage the Page Object Model.
- Use Behavior Driven Development techniques
- Understanding BDD
- Compare BDD with TDD
- Understand that BDD defines specifies requirements
- Be able to classify Selenium vs Cucumber
- Understand Automated Testing
- Acceptance vs Regression Tests
Getting Started with JUnit & Selenium
- Selenium Overview
- Create an new project with JUnit
- Create your first test
- Write assertions & run tests.
- Generate tests with Selenium Builder
- Running Tests & TestSuites
- Refactoring Test Scripts (with IntelliJ)
- Understanding the Web Driver API
- Element IDs & Name Selectors
- CSS & XPath Selectors
- Mouse & Keyboard Input
- Timeouts and Waits
Page Object Model & Page Factory
- Maintaining tests using the Page Object model
- Refactor existing scripts to leverage Page Object Model
- Cucumber Acceptance Tests using Selenium
- Cucumber Overview
- Following the user story style
- Defining Cucumber steps as maintainable functions
- Best practices for creating maintainable test scenarios and step definitions
- Scenario Outlines
WebDriver & Multiple Browsers
- Requirements for running tests in multiple browsers
- Creating test suites for multiple browsers
- Creating portable tests
- Installing and maintaining WebDrivers for multiple browsers
- Best Practices (touched on throughout the course)
- Continuous Integration
- Iterative Development
All attendees receive courseware and the latest/best Selenium textbook as of the date of training.
SOFTWARE NEEDED FOR EACH STUDENT PC
- Firefox & Chrome Browser
- Firebug, Firepath, Selenium Builderr
- Java Development Kit (JDK) 8.x (or 7.x)
- IntelliJ IDE (ideally to take advantage of refactoring tools) or code editor of your choice
- Maven 3.x