Odoo Experience 2017
Record / Playback Tests Directly in Odoo
Developer
Location: Aula Magna / Lauzelle - 10/5/17, 11:00 AM - 10/5/17, 11:20 AM (Europe/Brussels) (20 minutes)
Record / Playback Tests Directly in Odoo
Andreas Stauder
Andreas Stauder

Consultant and Head of development in brain-tec I am responsible for the Quality Management. Before joining brain-tec I run my own company I started with colleagues after finishing my studies in computer science and law.


People will learn how to record a test case directly in the browser while operating Odoo as usual on Odoo 10 enterprise. Then saving the test case and playing it back in an automated way.


Whereas existing solutions only record where you clicked (recording the xpath) in the interface, our solution records WHAT you did. Changing the city of a partner, would be recorded e.g. as Char res.partner city Paris


This makes it not only possible to record tests that are easy to read. It is also possible to run the very same test in a completely changed user interface. The presented solution even runs (mostly) after changing Odoo to a different language. Our goal was to make recording a test case so easy that a secretary without any technical background can do it. To record a test you just operate your Odoo as you normally do. Everything will be recorded in another browser window where you can delete or move steps easily. Playing back the tests is nothing more than saving the test in a file, providing the login credentials for your Odoo user and executing the command. A browser window opens and executes exactly the same steps you did just before, but fully automated and in perfect speed. 

What is the structure of the talk: We will start with an introduction to show what the problem is recording test cases in Odoo with standard selenium. Then a live demo followed by some talk about the technical components of the implementation. The idea is to leave quite some time for a Q&A session to learn how people in the audience solved their challenges.