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

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心