Manifest Academy

Home › Curriculum › Odoo Developer › Automated tests: TransactionCase, Form, HttpCase and tours

Testing, quality and performance · 16 min · 17–20

Automated tests: TransactionCase, Form, HttpCase and tours

Writing and running Odoo tests: test classes, tags, setup, Form emulation, HTTP and tour tests.

In this lesson

Key points

Real-world example

A credit-block module passed manual testing but failed when sales orders were confirmed from the website. A TransactionCase test confirming an order as the public user reproduced it; the fix (checking the commercial partner) and the test now protect every release.

Questions and answers

How do you run only your module's tests?

--test-tags /module_name

What does Form() give you over create()?

It runs onchanges, defaults and UI logic like a user would.

Read the full lesson, worked example and quiz