• Online, Self-Paced
Course Description

The web2py framework lets you build scalable, secure, and portable web applications. Testing provides a way to mitigate bugs and errors before the release of Python applications. In this course, you will learn about the web2py framework and the testing frameworks included in Python and their use.

Learning Objectives

The web2py Framework for Python

  • Start the course
  • describe the key features of the web2py framework
  • explore the core concepts of web2py
  • demonstrate the use of Views in a web2py application
  • describe how to use the database abstraction layer in a web application
  • incorporate forms and form validation into a web2py application
  • send email with web2py
  • implement authentication and authorization in a web2py application
  • create and run some basic web2py services

Python Testing Frameworks

  • provide an overview of testing in Python
  • describe the key features of the doctest module
  • embed a basic doctest in a docstring
  • use doctest directives and handle raised exceptions in a doctest test
  • provide an overview of unit testing in Python

Unit Testing in Python

  • install Python Mocker and use it in a unit test
  • use the unittest framework to run tests on Python code
  • create and use a unittest test fixture
  • use the subtest() context manager to distinguish unittest test iterations
  • use nose to run unit tests on Python application code
  • perform unit testing of a project with pytest
  • describe the key features of the Robot framework
  • perform web automation testing using Robot with the Selenium 2 test library

Practice: Working with Testing

  • use unittest module to write and run tests on Python code

Framework Connections

The materials within this course focus on the NICE Framework Task, Knowledge, and Skill statements identified within the indicated NICE Framework component(s):

Specialty Areas

  • Software Development
  • Test and Evaluation