In this video, Meaghan Lewis completes the setup of geckodriver and demonstrates running Selenium WebDriver tests with the test runner RSpec. Meaghan also touches on running tests with dynamic data.
- [Instructor] It's best to run test often.…This way there is feedback that everything…is working as expected, and there aren't any problems…within the test code.…Now that I have one complete test for signing up…a new user, I will execute it to see how the test runs.…To execute the test, I will open up the terminal…and go to the location for the exercise files…for this video.…01_06 and go inside the Start directory.…Once there, I will type rspec blog-test.rb.…
This tells the test runner, rspec core,…to run each Ch block within the test file.…After in entered this command,…I sit back and wait for the results.…Luckily, I don't have to wait long,…because in just a few seconds I see that there is an error…where Selenium WebDriver is telling me…thatit isn't able to find Mozilla geckodriver,…and that it must be placed somewhere in your path.…If you remember from earlier on in the course,…I downloaded the geckodriver and just left it…in the Downloads directory.…
But now I need to make sure that it is somewhere…on the path, so that it can be located at run time.…
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