In this video, Meaghan Lewis writes a test for a sample blog application using Selenium WebDriver. Learn about the step-by-step process to make test-writing a breeze.
- [Instructor] Having the knowledge of how to use…and navigate the API makes test writing a breeze.…Now, it's time to apply that knowledge…of the web driver API to write a test.…When I decide it's time to write new Selenium tests,…I like to do some planning upfront.…There are three steps I take before I start coding.…Number one, it's all about deciding…what features to automate.…This requires having knowledge…of the application under test…and all of the available functionality.…Number two, outline the scenarios that will be automated,…and the steps of each test.…
Be aware of what the inputs and outputs will be,…and the value each scenario implemented will provide.…Number three, find the web elements…that will be needed for testing.…It's important to figure out what elements…are going to be used in the tests upfront.…This will make test writing much easier,…faster, and smoother.…So to begin, let's look at the exercise file…for this video in the text editor.…I've created a test called blog-test.rb…in which we will write tests for a sample…
Find out how to set up the test-writing framework, WebDriver, and Selenium Grid, which allows you to distribute the testing load and run tests against a remote server. Learn best practices to write effective tests using variables and functions, and to organize tests into suites that can scale over time. Instructor Meaghan Lewis—a QA engineer at GitHub—also explains the test pyramid paradigm, which details an ideal way to balance unit, integration, and UI testing.
- Setting up Selenium WebDriver
- Using the Selenium grid to distribute the testing load
- Setting up a hub and nodes
- Writing clean test code
- Organizing a test suite