Functional testing of phpMyFAQ

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
peter.kehl
Posts: 5
Joined: Wed May 28, 2014 3:48 am
Location: Sydney, Australia
Contact:

Functional testing of phpMyFAQ

Post by peter.kehl » Mon Jun 09, 2014 1:19 am

Hello phpMyFAQ developers.

I see that you use PHPUnit with phpMyFAQ. However, if you'd like browser-based functional/regression testing of phpMyFAQ, you may be interested in SeLite. It extends Selenium IDE and it uses a test DB (isolated from the DB of the tested application).

It could work well for you especially because phpMyFAQ can have its data in an SQLite DB. Since SeLite uses SQLite for test data, your test data lifecycle would be very easy. But you can benefit from SeLite even if your test instance of phpMyFAQ 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 kept in git. See https://code.google.com/p/selite/wiki/ProjectHome.

There are examples for Drupal, Serendipity and FUDforum at https://code.google.com/p/selite/wiki/S ... Frameworks. They log in as an admin and create a use with random details and password. The test fameworks also store those values in the test DB, so that they can re-test the login process anytime later. They post random content as those new users and they validate it.

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

Florian
Posts: 3
Joined: Sun Sep 23, 2012 1:51 pm

Re: Functional testing of phpMyFAQ

Post by Florian » Tue Jun 10, 2014 9:46 am

Hi Peter,
thanks for your post.

Thorsten's not available for a week, and I can't say much there.

I've had some mixed results with Selenium in the past, basically the more you change your frontend, the sooner you spend more time fixing your tests than developing.

But phpMyFAQ is relatively stable in that regard, so it might be great. We'll get back to you :)

Thorsten
Posts: 14434
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Functional testing of phpMyFAQ

Post by Thorsten » Thu Jun 19, 2014 5:08 pm

Hi Peter,

we're highly interested! :-)

If these tests then would also run in Travis CI, it would be awesome!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

peter.kehl
Posts: 5
Joined: Wed May 28, 2014 3:48 am
Location: Sydney, Australia
Contact:

Re: Functional testing of phpMyFAQ

Post by peter.kehl » Sat Jun 21, 2014 1:41 am

Hi Thorsten,

SeLite works with Selenium IDE but not with Selenium webdriver. So it only works with Firefox and it can't be triggered from CI (unless someone implements that).

Does that put it still within your radar?
-Peter

Thorsten
Posts: 14434
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Functional testing of phpMyFAQ

Post by Thorsten » Sat Jun 21, 2014 6:42 pm

Hi,

for sure! Automated functional testing can be a second step!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

peter.kehl
Posts: 5
Joined: Wed May 28, 2014 3:48 am
Location: Sydney, Australia
Contact:

Will do eventually: Functional testing of phpMyFAQ

Post by peter.kehl » Wed Aug 20, 2014 8:59 am

Hi Thorsten and Florian,

This is high on my list, but it will have to wait for about a month.

-Peter

Thorsten
Posts: 14434
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Functional testing of phpMyFAQ

Post by Thorsten » Wed Aug 20, 2014 7:15 pm

Hi Peter,

kein Problem, vielen Dank schonmal soweit mit der Hilfe bei den SQLite3 fixes.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

aron123
Posts: 1
Joined: Thu Oct 02, 2014 7:20 am

Re: Functional testing of phpMyFAQ

Post by aron123 » Thu Oct 02, 2014 7:23 am

Thanks for share...


The Testking C4090-959 study pack includes Loyola University Maryland and ICDL practice exam so you will pass real exam on first try.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest