deltron / veosan

2 stars 1 forks source link

Find a client-side unit test framework #3

Open deltron opened 12 years ago

deltron commented 12 years ago

Like the old HttpUnit

That will go through every page/workflow (submit an appointment, etc.) to make sure everything runs properly before deployment

deltron commented 12 years ago

3 leading frameworks for Python are :

Lettuce http://lettuce.it/

Freshen https://github.com/rlisagor/freshen

Pyccuracy https://github.com/heynemann/pyccuracy/wiki/Overview

phiiil commented 12 years ago

Will use this in the dev environment for unit tests: http://webapp-improved.appspot.com/guide/testing.html

deltron commented 12 years ago

this is good for the basics (ie. test not error 500) but we need a better way to parse through the response page, set checkboxes, fill out forms, etc.

I like the look of these tests from Pyccuracy:

A typical Pyccuracy test would be something like:

As a Google User I want to search Google So that I can test Pyccuracy

Scenario 1 - Searching for Hello World Given I go to "http://www.google.com" When I fill "q" textbox with "Hello World" And I click "btnG" button and wait Then I see "Hello World - Google Search" title

On Mon, Mar 26, 2012 at 9:33 AM, phiiil < reply@reply.github.com

wrote:

Will use this in the dev environment for unit tests: http://webapp-improved.appspot.com/guide/testing.html


Reply to this email directly or view it on GitHub: https://github.com/im-patient/cliksante/issues/3#issuecomment-4694025

phiiil commented 12 years ago

Exactly. We need unit tests with the one I posted, and workflow tests with lettuce, freshen or pyccuracy.

On Mon, Mar 26, 2012 at 10:34 AM, deltron reply@reply.github.com wrote:

this is good for the basics (ie. test not error 500) but we need a better way to parse through the response page, set checkboxes, fill out forms, etc.

I like the look of these tests from Pyccuracy:

A typical Pyccuracy test would be something like:

As a Google User I want to search Google So that I can test Pyccuracy

Scenario 1 - Searching for Hello World Given    I go to "http://www.google.com" When    I fill "q" textbox with "Hello World"    And I click "btnG" button and wait Then    I see "Hello World - Google Search" title

On Mon, Mar 26, 2012 at 9:33 AM, phiiil < reply@reply.github.com

wrote:

Will use this in the dev environment for unit tests: http://webapp-improved.appspot.com/guide/testing.html


Reply to this email directly or view it on GitHub: https://github.com/im-patient/cliksante/issues/3#issuecomment-4694025


Reply to this email directly or view it on GitHub: https://github.com/im-patient/cliksante/issues/3#issuecomment-4695296

deltron commented 12 years ago

Agreed. Let's keep the discipline with testing, it's going to save a lot of headaches later... I'll write a few high level tests tonight to complement the webapp tests

On 2012-03-26, at 1:49 PM, phiiilreply@reply.github.com wrote:

Exactly. We need unit tests with the one I posted, and workflow tests with lettuce, freshen or pyccuracy.

On Mon, Mar 26, 2012 at 10:34 AM, deltron reply@reply.github.com wrote:

this is good for the basics (ie. test not error 500) but we need a better way to parse through the response page, set checkboxes, fill out forms, etc.

I like the look of these tests from Pyccuracy:

A typical Pyccuracy test would be something like:

As a Google User I want to search Google So that I can test Pyccuracy

Scenario 1 - Searching for Hello World Given I go to "http://www.google.com" When I fill "q" textbox with "Hello World" And I click "btnG" button and wait Then I see "Hello World - Google Search" title

On Mon, Mar 26, 2012 at 9:33 AM, phiiil < reply@reply.github.com

wrote:

Will use this in the dev environment for unit tests: http://webapp-improved.appspot.com/guide/testing.html


Reply to this email directly or view it on GitHub: https://github.com/im-patient/cliksante/issues/3#issuecomment-4694025


Reply to this email directly or view it on GitHub: https://github.com/im-patient/cliksante/issues/3#issuecomment-4695296


Reply to this email directly or view it on GitHub: https://github.com/im-patient/cliksante/issues/3#issuecomment-4699873

deltron commented 12 years ago

both Lettuce & Pyccuracy are based on user stories. Lettuce isn't designed specifically for web-based testing, Pyccuracy is but not sure how actively developed.

It might be better to drop the user story part and focus on web testing frameworks. This one seems to be the best :

http://seleniumhq.org/docs/01_introducing_selenium.html