Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2014-05-26 00:15:06

peter.kehl
Membre
Lieu : Sydney, NSW Australia
Inscription : 2014-05-25
Site Web

Automated testing of Dotclear

Hello Dotclear developers,

If you'd like automated browser-based functional/regression testing of Dotclear, you may be interested in SeLite. It extends Selenium IDE. It allows your tests to access (read and write to) a test DB (isolated from the DB of the tested application). It's open source.

It could work very well for you, especially since Dotclear can have its data in an SQLite DB. Since SeLite uses a (separate) SQLite DB for test data, your test data lifecycle would be very easy. However, you can benefit from SeLite even if your test instance of Dotclear uses other type of DB.

Creating tests in Selenium IDE is convenient and highly productive. It doesn't require low-level programming skills, so even users/designers could contribute new tests. Tests can be maintained in Mercurial. See https://code.google.com/p/selite/wiki/ProjectHome.

There's an example for Serendipity at https://code.google.com/p/selite/wiki/S … yFramework. It logs in as an admin and posts and validates random content. It creates a user with random details and password. However, it also stores those values in the test DB, so it can validate the login process as that user anytime later. It randomly sets some settings of the user  (e.g. preference for wysiwyg) and it validates that those settings apply to the behaviour of the application.

I could create a test framework for Dotclear and provide some basic examples of tests. Would there be any interest on your side?

Hors ligne

#2 2014-05-26 10:22:31

Philippe
Stagiaire
Lieu : Toulon
Inscription : 2004-06-13
Site Web

Re : Automated testing of Dotclear

peter.kehl a écrit :

Would there be any interest on your side?

I think it is interesting, and I have signaled this post on the dev mailing list, stay tuned ;)

Hors ligne

#3 2014-05-26 12:35:18

nikrou
Membre
Inscription : 2007-10-02
Site Web

Re : Automated testing of Dotclear

Hi Peter,

I agree Philippe. It seems very interesting.

It would be great if you could provide us some basic examples of tests. Don't hesitate if you need help from us.


Je préfère être atteint de parkinson plutôt qu'alzheimer : je prefère renverser un peu de ma bière plutôt qu'oublier de la boire !

Présentez vos photos simplement avec Phyxo !

Hors ligne

#4 2014-05-28 06:55:08

peter.kehl
Membre
Lieu : Sydney, NSW Australia
Inscription : 2014-05-25
Site Web

Re : Automated testing of Dotclear

Hi Philippe and Nikrou,

I'm working on the test framework for Dotclear 2.6.3. It's at https://code.google.com/p/selite/wiki/DotclearFramework. For now it logs in/out and it posts some random content.

I need some help:

1. About WYSIWYG preference: In /admin/preferences.php#user-options > I've checked 'Enable WYSIWYG mode'. However, I don't see any effect on /admin/post.php. I get the same editor - no WYSIWYG, only with buttons that generate wiki-like code. Where or how does it work?

http://dotclear.org/documentation/2.0/u … wyg-editor says that 'This mode is only available for XHTML syntax and does not work in all browsers. It may be disabled.' But how do I find that out? And what browsers - should it work in Firefox 19? When I edit options of my blog - http://localhost/dotclear/admin/blog.php?id=default - I don't see any option to enable/disable WYSIWYG or XHTML.

2. Can I get email notifications from this thread somehow? I haven't got any email about your replies. As I'm posting this reply, I don't see any option to ask for email notifications. I can't see any option for that in my profile either (http://forum.dotclear.org/profile.php?id=70349).

Hors ligne

#5 2014-05-28 08:20:36

Philippe
Stagiaire
Lieu : Toulon
Inscription : 2004-06-13
Site Web

Re : Automated testing of Dotclear

For question 1, there is a sidebar menu in post edition page that allows to change format from wiki to XHTML or even other syntaxes such as Markdown. If you are presented with wiki syntax in your post, it may be because you have not chosen XHTML as prefered syntax in your user preferences.

As to your second question, this forum does not send email notifications, but you may subscribe to one of its RSS feeds.

Hors ligne

#6 2014-06-04 05:02:43

peter.kehl
Membre
Lieu : Sydney, NSW Australia
Inscription : 2014-05-25
Site Web

Re : Automated testing of Dotclear

This is being blocked by http://dev.dotclear.org/2.0/ticket/1956. Until that ticket is fixed, the test framework can only automate posting as a selected user. It can't automate creating new users, changing their preferences etc.

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map