PHP code example of joomla-projects / joomla-testing-robo

1. Go to this page and download the library: Download joomla-projects/joomla-testing-robo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

joomla-projects / joomla-testing-robo example snippets


$this->taskSeleniumStandaloneServer()
    ->setBinary('<path>/selenium-server-standalone')

    ->runSelenium()
    ->waitForSelenium()

    ->run()
    ->stopOnFail();

$this->taskSeleniumStandaloneServer()

    ->killSelenium()

    ->run();

$this->taskCMSSetup()
    ->setBaseTestsPath(__DIR__ . '/tests')

    ->cloneCMSRepository()
    ->setupCMSPath()

    ->run()
    ->stopOnFail();

$this->taskApplicationSetup()

    ->packageApplication()

    ->run()
    ->stopOnFail();