Development Book V17: Client-Side Test Cases

Client-side test cases can be executed directly from the UI in Odoo. You can observe how each test case step behaves by executing the case through the user interface. You can be certain that your UI test cases function as intended in this fashion.

Both QUnit test cases and Tours test cases can be run from the UI. Python test cases run server-side and cannot be run from the UI. Developer mode must be enabled to see options for running test cases through the user interface.

Running QUnit test cases from the UI

Enable developer mode, click the bug icon, and click the Run JS Tests option


This will open the QUnit suite and run the test cases one by one, as shown in the screenshot below. By default, only failed test cases are shown. To see all passed test cases, clear the Hide passed tests check box, as shown in the screenshot below.


Running tours from the UI

Turn on developer mode, select Start Tour after clicking the bug icon.


As seen in the screenshot below, this will cause a dialog box containing a list of registered tours to open. To begin the tour, click the play icon on the side.



Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635



Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.



Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message