Test your Django views and forms using Selenium

提供方
Coursera Project Network
在此指导项目中,您将:

learn how to setup Selenium for Django testing

test the Django view for the presence of HTML components

test whether a hyperlink and a form submit button work

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this 2-hour long project-based course, you will learn how Selenium can be integrated with your Django project. Selenium is quite fun to learn and use: it can make your python program pretend it is an actual user browsing a website, so it is ideal for testing web application. You will use Selenium to test various aspects of a sample Django project. After understanding how the sample project works, your will write Selenium test functions to test the views of the project apps. In particular, you will learn how to test the presence of certain strings in a web page, the presence of form elements, whether a link successfully navigates to the right page, and whether a form is successfully submitted. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

  • Django development
  • Python Testing
  • Unit Testing
  • Selenium testing
  • Django forms

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Understand the sample Django project and its apps

  2. Setup the project for Selenium testing

  3. Perform basic tests on the view

  4. Test the form elements and links

  5. Test the form submission

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心