Community mailing list archives

community@mail.odoo.com

Re: Browser Testing with Selenium

by
Andreas Stauder
- 09/06/2015 10:44:58
Hi Nils and David

@Nils: Thank you very much for this nice article! 

@David: It's definitifly possible to record the tests with SeleniumBuilder directly in the browser and save them as RobotFramework script. But it's not possible to playback them directly in SeleniumBuilder. 

Regards
Andreas

Am 06.09.2015 um 16:34 schrieb David Arnold <dar@devco.co>:

Thanks Nils!

That's an article of outstanding usefulness to me! One question remains in my mind (maybe for a "Conclusion" Section):
At the end, are your testers using robot code or does is it aimed to work with selenium IDE?

Because there is definitely a (huge) difference in usability for the none coders. It would be like not bridging the last mile. However, at the end, it was not clear to me, what has been achieved.

Nevertheless, thank you very much! I will definitely read over this article a couple of times!

Best, David

Nils Hamerlinck <nils@trobz.com> schrieb am So., 6. Sep. 2015 um 09:17:
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
 

_______________________________________________




--
Stauder Andreas  | Consultant und Projektleiter 

lic. Jurist
brain-tec AG | Technoparkstrassse 1, CH-8005 Zürich 



--


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

     

_______________________________________________
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