Odoo Experience 2019
Record Automated Integration Tests Through the UI
Developer
Lieu : Martin's / Vitality - 04/10/2019 13:15 - 04/10/2019 13:35 (Europe/Brussels) (20 minutes)
Record Automated Integration Tests Through the UI
Stanislas Sobieski, Developer - Odoo
Stanislas Sobieski, Developer - Odoo

Stanislas is a client solution developer, and has been developing on Odoo for the last 4 years, specifically on customer projects. He has been the technical lead on Odoo's biggest customer project for the last 2 years with a team of 5 developers. Before working at Odoo, he taught for 7 years at the university level.


This talk will introduce a tool we've developed for big custom projects to record functional flows and create automated integration tests by using the standard unit tests making the most of your run bot.   

This tool allows us to record a business flow made through the UI, generating the equivalent server side code in the database. Using that code allows us to quickly create integration tests with few modifications for the checks that need to be made. The tool tries to be smart to find the best fit for the records used in the flow by automatically generating external identifiers or finding a link to a previously existing record.    

Due to the nature of the tool, the tests are generated after developing the features so it's a great tool to avoid regressions with future developments.   Having your functional team or your customer recording the flow and recording what tests need to be done limits the work on the developer's side while making your code more robust. A few thousand lines of codes of testing can be done in a few hours.