beat / joomla-browser

An extended Webdriver Browser to navigate through Joomla sites with Codeception

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joomla Browser (Codeception Module)

Latest Stable Version Total Downloads Latest Unstable Version License

Table of Contents

The Joomla Browser

Joomla Browser with Codeception Module Functionality

Using Instructions

Update Composer.json file in your project, adding

Download

"require" :  "joomla-projects/joomla-browser": "dev-develop"

then do a

composer update 

Loading the Module in Codeception

Finally Make changes in Acceptance.suite.yml add JoomlaBrowser as a Module

Your original acceptance.suite.ymlprobably looks like:

modules:
    enabled:
        - WebDriver
        - AcceptanceHelper
    config:
        WebDriver:
            url: 'http://localhost/joomla-cms3/'     # the url that points to the joomla cms
            browser: 'firefox'
            window_size: 1024x768
            capabilities:
              unexpectedAlertBehaviour: 'accept'
        AcceptanceHelper:
            ...

You are asked to remove WebDriver module and change it by the JoomlaBrowser module:

    config:
        JoomlaBrowser:
            url: 'http://localhost/joomla-cms/'     # the url that points to the joomla installation at /tests/system/joomla-cms
            browser: 'firefox'
            window_size: 1024x768
            capabilities:
              unexpectedAlertBehaviour: 'accept'
            username: 'admin'
            password: 'admin'
            database host: 'localhost'             # place where the Application is Hosted #server Address
            database user: 'root'                  # MySQL Server user ID, usually root
            database password: '1234'                  # MySQL Server password, usually empty or root
            database name: 'dbname'            # DB Name, at the Server
            database type: 'mysqli'                # type in lowercase one of the options: MySQL\MySQLi\PDO
            database prefix: 'jos_'                # DB Prefix for tables
            install sample data: 'Yes'              # Do you want to Download the Sample Data Along with Joomla Installation, then keep it Yes
            sample data: 'Default English (GB) Sample Data'    # Default Sample Data
            admin email: 'admin@mydomain.com'      # email Id of the Admin
            language: 'English (United Kingdom)'   # Language in which you want the Application to be Installed
            joomla folder: '/home/.../path to Joomla Folder' # Path to Joomla installation where we execute the tests
        AcceptanceHelper:
            ...

About

An extended Webdriver Browser to navigate through Joomla sites with Codeception

License:GNU General Public License v2.0


Languages

Language:PHP 100.0%