For functional tests, you need a way to simulate a browser. In this video, install Selenium to simulate a browser.
- [Instructor] Functional tests are all about testing … things that a user would actually do with our project. … So in order to test that we need a tool … that will simulate what a user would do. … And there's no better tool than Selenium. … Selenium is awesome because it allows you … to actually pull up a real browser like Chrome or Firefox … and actually simulate what someone would do … with your website. … So let's go ahead and talk about how we can … get this installed on our own computer. … Make sure that you are in a place … that you'd like to save some code. … We're going to make like a python file … and a Django project. … So personally I'm going to move over to my desktop. … And the first thing that we need to do … is create a virtual environment. … And we have to make sure that we have a virtual environment … installed via Pip Three. … So let's go ahead and do Pip Three … install virtual environment. … Okay, once you have that in place … we're going to say virtual environment. …
- TDD philosophy
- Comparing functional and unit tests
- Writing a test in Selenium
- Writing a unit test
- Testing page data
- Hash testing
- Writing a test for user input
- Testing a POST request
- AJAX implementation
- TDD vs. testing after
Skill Level Intermediate
Deploying Django Apps: Make Your Site Go Livewith Nick Walter2h 43m Intermediate
Building RESTful Web APIs with Djangowith Rudolf Olah1h 9m Intermediate
What you should know1m 9s
1. Functional Tests
2. Unit Tests
3. Advanced Testing
Next steps1m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.