Technical Name |
odoo_tests_selenium_test_mode |
License | See License tab |
Website | https://www.atingo.pl |
Also available in version | v 15.0 v 9.0 v 10.0 v 13.0 v 11.0 v 12.0 v 14.0 |
Technical Name |
odoo_tests_selenium_test_mode |
License | See License tab |
Website | https://www.atingo.pl |
Also available in version | v 15.0 v 9.0 v 10.0 v 13.0 v 11.0 v 12.0 v 14.0 |

Odoo Tests Selenium Test Mode
With this module you can enter Test Mode. With Test Mode enabled, all changes on the database won't be commited. Leaving the Test Mode will rollback all changes, so the database won't be affected by your test. This module works well with Selenium IDE. It affects all users! In Test Mode bus.bus and emails are blocked. Be responsible and use it on test instances ONLY!
Use Case
User can register an action in Selenium IDE, for example creation of a new user. It is impossible to run the registered test, because odoo won't create user with the same login. With Test Mode Selenium can always be ran, because test data will be rollbacked. Restaring odoo server will automatically leave the test mode and rollback database.
Example
User opens odoo in debug mode and select Enter Test Mode

After clicking this menu item all users will be notified, that Test Mode is enabled. New bar will be shown on the top.

Now user can change any data in the system. It will be stored until leaving the Test Mode. User can refresh the website, or even close it. In this example the name of the user is changed and browser is refreshed.

In the next step user exits the Test Mode.

All database changes are rollbacked. Previous user's name is restored

Check out my youtube channel to learn more!
In case of any questions don't hesitate to email me: tadeusz.karpinski@gmail.com
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module