[Vtigercrm-developers] Test Automation of Vtiger

Sutharsan J ajstharsan at gmail.com
Thu Jul 11 09:04:23 GMT 2024


Hi

I may not be aware of any test automation available for vtiger CE.

We recently started using CodeCeption to automate unit, function &
Acceptance testing.  Below is a code snippet from login acceptance.
Ofcourse, it needs more asserts.

class VtigerLoginCest
{
/**
*
* @param AcceptanceTester $I
* @author Sutharsan Jeganthan (sutharsan at radus28.com)
* @internal Asserting vtiger login page
*/
public function loginpage(AcceptanceTester $I)
{
$I->amOnPage('/');
$I->see('Password');
}

/**
*
* @param AcceptanceTester $I
* @author Sutharsan Jeganthan (sutharsan at radus28.com)
* @internal Testing Sign in function of vtiger
*/
public function signin(AcceptanceTester $I)
{
$I->amOnPage('/');
$I->fillField('username', 'admin');
$I->fillField('password', 'admin');
$I->click('Sign in');
$I->see('My Dashboard');
}

/**
*
* @param AcceptanceTester $I
* @internal Asserting logout
*/
public function signout(AcceptanceTester $I)
{
$I->amOnPage('/index.php?module=Users&action=Logout');
$I->see('Password');
}

...

If there is no other solution, I am happy to start a fork if the community
is interested to contribute.

Thanks
Sutharsan Jeganathan
-- 
Development Manager
Radus28 Software Solution
[image: Radus28 Software Solution]
123, Level 2, Mc Larens Building
Baudhaloka Mw.
Colombo 04
Sri Lanka
M : +94773795291
E  : sutharsan at radus28.com
W : www.radus28.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20240711/fd802da2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_web.png
Type: image/png
Size: 15612 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20240711/fd802da2/attachment-0001.png>


More information about the vtigercrm-developers mailing list