Community mailing list archives

community@mail.odoo.com

Re: Browser Testing with Selenium

by
nils
- 09/06/2015 10:13:26
Hi all,

Here's a blog post explaining how to use and extend the great work of Andreas: http://nils.hamerlinck.fr/blog/2015/09/06/odoo-automation-for-quality-testing/

Here's a video showing what you can achieve: https://youtu.be/PH-n5jXdHZY

Br,

On Tue, Jun 23, 2015 at 3:44 PM, Andreas Stauder <andreas.stauder@braintec-group.com> wrote:
Hello David

I used the Se-Builder ( http://seleniumbuilder.github.io/se-builder/ ) to record the teststeps in the Browser. The problem is, that Odoo set's dynamically HTML-IDs that change whenever you open the next view.

I programmed a Odoo addon (1), that provides some additional information in the HTML, a extended Se-Builder (2) and a extension to the robot-framework (3) to play back the recorded case.

All that is working only for a few many cases, like menu, text, date, many2one, one2many fields. Only the very very basic stuff. But it is possible to extend it.

When you are interested in that, I will try to make a video demonstrating it and provide a install manual for all components.

Regards
Andreas


On Tue, Jun 23, 2015 at 7:44 AM, Nhomar Hernández <nhomar@gmail.com> wrote:

2015-06-22 23:44 GMT-05:00 David Arnold <dar@devco.co>:
So I would be interested in an opinion on how far Selenium could replace the existing approaches and if it is a viable suggestion for effectively increasing e2e test coverage and foster explorative testing?

Did you read about phantomjs?[] (which is the actual model)

Basically is create a no-frontend browser and run a set of steps on json, such tests can be changed/improved in a convenient way.

The issue as usual with actual approach is the absolute leak of documentation, if odoo dedicate some time to explain for idiots some great ideas a lot of people should impact better in the community.

IMHO selenium is great, and it does the job perfectly, but I prefer a solution embeded in the system with no graphical needs.

If I personally dedicate something to odoo it should be in create more tests, and improve the output of actual ones (which are very cryptical first times).

My 2 cents.
[1] http://phantomjs.org/


--
--------------------
Saludos Cordiales

CEO at Vauxoo Odoo's Gold Partner.
 
--
Nhomar Hernandez
 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--


Nils Hamerlinck
Project Manager

Trobz - Open Source Solutions for the Enterprise
4th floor, 47/2/57 Bui Dinh Tuy street, Binh Thanh district, HCMC, Vietnam
Mobile: +84 (0) 125 323 2332 / Office: +84 (0) 862 737 605
nils@trobz.com / trobz.com / Skype: nils.hamerlinck