Workflows testing

Author Message

Sébastien Morele

Monday 04 July 2011 1:54:49 am

Hi there,

is there a way to test worflows beeing out of context? The main idea is to launch a worflow after user registration, but testing with many user registration is so boring ....

Thanks !

Thiago Campos Viana

Monday 11 July 2011 12:27:03 pm

Maybe calling eZOperationHandler::execute and passing the right parametes, just do a quick search and check how this function is called in user/register or user/activate views, something like:

$publishResult = eZOperationHandler::execute( 'user' , 'register', array( 'user_id'=> $userID ) );

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Quoc Huy Nguyen Dinh

Monday 11 July 2011 3:18:41 pm

Or make in context testing less boring by developping a test suite with Selenium RC that click on the register link, fill the form with random data and email filled to [email protected] (where XX is dynamically generated numbers), php imap to check and click email validation link, loggin in cms and approve/deny registration, try to login as user for each scenario.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.